[libdwarf] embed dSYM into extension app

This commit is contained in:
Watson
2015-02-23 10:48:03 +09:00
parent 11d81ea612
commit dd1c095720

View File

@@ -502,6 +502,10 @@ EOS
if !File.exist?(dsym_path) or File.mtime(main_exec) > File.mtime(dsym_path)
App.info "Create", relative_path(dsym_path)
sh "/usr/bin/dsymutil \"#{main_exec}\" -o \"#{dsym_path}\""
# TODO only in debug mode
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
copy_resource(dsym_path, dest_path)
end
# Strip all symbols. Only in distribution mode.