Skip to content

Commit

Permalink
[libdwarf] introduce "app.embed_dsym" in order to enable/disable embe…
Browse files Browse the repository at this point in the history
…dding dSYM into app
  • Loading branch information
Watson1978 committed Mar 19, 2015
1 parent 8dedfda commit b6bcd38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/motion/project/builder.rb
Expand Up @@ -488,7 +488,7 @@ def build(config, platform, opts)
# 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.
Expand Down
2 changes: 1 addition & 1 deletion lib/motion/project/template/ios-extension-builder.rb
Expand Up @@ -506,7 +506,7 @@ def build(config, platform, opts)
# 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.
Expand Down
3 changes: 2 additions & 1 deletion lib/motion/project/xcode_config.rb
Expand Up @@ -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)
Expand All @@ -49,6 +49,7 @@ def initialize(project_dir, build_mode)
@entitlements = {}
@delegate_class = 'AppDelegate'
@spec_mode = false
@embed_dsym = true
@vendor_projects = []
@version = '1.0'
end
Expand Down

0 comments on commit b6bcd38

Please sign in to comment.