Commit d59e40f6 authored by Joachim Bengtsson's avatar Joachim Bengtsson Committed by Eloy Durán

[pod_target] Ask the targdef about config inclusion

https://github.com/lookback/Core/commit/affbeae85bd179c5e9a9a927a80f2aacc4d7cf7c
defines a new ":configurations" option for a pod, and exposes the corresponding
API. Using that API in include_in_build_config now lets aggregate_xcconfig
only include the build flags for the libraries that are used.

Next step is to make CocoaPods link using build flags, so that linking
can be disabled with an xcconfig.
parent 2087db1f
......@@ -66,8 +66,8 @@ module Pod
# @param [String] build_config Name of the build configuration that caller is unsure if this target should
# be linked with.
def include_in_build_config? build_config
true
def include_in_build_config?(build_config)
@target_definition.is_pod_whitelisted_for_configuration?(@specs[0].name, build_config)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment