dump_qt_symbols_osx.sh 764 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. rm -rf symbols
  4. mkdir symbols
  5. dylibs=$(find lib plugins -type f -name *.dylib)
  6. frameworks=$(find lib -type d -name *.framework)
  7. echo "Dumping symbols for dylibs..."
  8. for lib in $dylibs; do
  9. libname=$(basename $lib)
  10. echo $libname
  11. dsymutil -o symbols/$libname.dSYM $lib &>/dev/null
  12. ~/dump_syms -g symbols/$libname.dSYM $lib 2> /dev/null | xz -9 -e - 1> symbols/$libname.symbols.xz
  13. done
  14. for f in $frameworks; do
  15. frameworkname=$(basename $f)
  16. frameworkfname="${frameworkname%.*}"
  17. ffname="$f/$frameworkfname"
  18. if [ -e $ffname ]; then
  19. echo $frameworkname
  20. dsymutil -o symbols/$frameworkname.dSYM $ffname
  21. ~/dump_syms -g symbols/$frameworkname.dSYM $ffname 2>/dev/null | xz -9 -e - > symbols/$frameworkname.symbols.xz
  22. fi
  23. done