[libdwarf] introduce "app.embed_dsym" in order to enable/disable embedding dSYM into app

This commit is contained in:
Watson
2015-02-23 16:35:40 +09:00
parent 8dedfda2ae
commit b6bcd38e19
3 changed files with 4 additions and 3 deletions

View File

@@ -488,7 +488,7 @@ EOS
# TODO only in debug mode
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
FileUtils.rm_rf(dest_path)
copy_resource(dsym_path, dest_path)
copy_resource(dsym_path, dest_path) if config.embed_dsym
end
# Strip all symbols. Only in distribution mode.

View File

@@ -506,7 +506,7 @@ EOS
# TODO only in debug mode
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
FileUtils.rm_rf(dest_path)
copy_resource(dsym_path, dest_path)
copy_resource(dsym_path, dest_path) if config.embed_dsym
end
# Strip all symbols. Only in distribution mode.

View File

@@ -31,7 +31,7 @@ module Motion; module Project;
class XcodeConfig < Config
variable :xcode_dir, :sdk_version, :deployment_target, :frameworks,
:weak_frameworks, :embedded_frameworks, :external_frameworks, :framework_search_paths,
:libs, :identifier, :codesign_certificate, :short_version, :entitlements, :delegate_class,
:libs, :identifier, :codesign_certificate, :short_version, :entitlements, :delegate_class, :embed_dsym
:version
def initialize(project_dir, build_mode)
@@ -49,6 +49,7 @@ module Motion; module Project;
@entitlements = {}
@delegate_class = 'AppDelegate'
@spec_mode = false
@embed_dsym = true
@vendor_projects = []
@version = '1.0'
end