SCsub 474 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. import os
  3. Import('env')
  4. def make_debug(target, source, env):
  5. os.system('dsymutil %s -o %s.dSYM' % (target[0], target[0]))
  6. files = [
  7. 'crash_handler_osx.mm',
  8. 'os_osx.mm',
  9. 'godot_main_osx.mm',
  10. 'sem_osx.cpp',
  11. 'dir_access_osx.mm',
  12. 'joypad_osx.cpp',
  13. 'power_osx.cpp',
  14. ]
  15. binary = env.Program('#bin/godot', files)
  16. if env["debug_symbols"] == "full" or env["debug_symbols"] == "yes":
  17. env.AddPostAction(binary, make_debug)