Skip to content

Commit

Permalink
[libdwarf] embed dSYM into Extension app according to configuration o…
Browse files Browse the repository at this point in the history
…f container app
  • Loading branch information
Watson1978 committed Mar 19, 2015
1 parent e87332c commit f109ac1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/motion/project/target.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def environment_variables
"RM_TARGET_HOST_APP_PATH" => File.expand_path(@config.project_dir),
"RM_TARGET_BUILD" => '1',
"RM_TARGET_ARCHS" => @config.archs.inspect,
"RM_TARGET_EMBED_DSYM" => @config.embed_dsym.inspect,
}
env["BUNDLE_GEMFILE"] = gemfile_path if use_gemfile?
ENV.to_hash.merge(env)
Expand Down
13 changes: 13 additions & 0 deletions lib/motion/project/xcode_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,19 @@ def arch_flags(platform)
archs[platform].map { |x| "-arch #{x}" }.join(' ')
end

def embed_dsym
if ENV['RM_TARGET_EMBED_DSYM']
ENV['RM_TARGET_EMBED_DSYM'] == "true" ? true : false
else
@embed_dsym
end
end

def embed_dsym=(boolean)
ENV.delete('RM_TARGET_EMBED_DSYM')
@embed_dsym = boolean
end

def common_flags(platform)
"#{arch_flags(platform)} -isysroot \"#{unescape_path(sdk(platform))}\" -F#{sdk(platform)}/System/Library/Frameworks"
end
Expand Down

0 comments on commit f109ac1

Please sign in to comment.