diff options
Diffstat (limited to 'platform/osx/SCsub')
| -rw-r--r-- | platform/osx/SCsub | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/platform/osx/SCsub b/platform/osx/SCsub index 27117c2e8d..be3950bc6d 100644 --- a/platform/osx/SCsub +++ b/platform/osx/SCsub @@ -1,15 +1,22 @@ #!/usr/bin/env python +import os Import('env') +def make_debug(target, source, env): + os.system('dsymutil %s -o %s.dSYM' % (target[0], target[0])) + files = [ + 'crash_handler_osx.mm', 'os_osx.mm', 'godot_main_osx.mm', - 'audio_driver_osx.cpp', 'sem_osx.cpp', 'dir_access_osx.mm', 'joypad_osx.cpp', 'power_osx.cpp', ] -env.Program('#bin/godot', files) +binary = env.Program('#bin/godot', files) +if env["debug_symbols"] == "full" or env["debug_symbols"] == "yes": + env.AddPostAction(binary, make_debug) + |