Commit c6be52a7 authored by Fabio Pelosin's avatar Fabio Pelosin

[Generator::XCConfig] Include the values of the specifications.

parent ad7f1e6a
...@@ -59,7 +59,14 @@ module Pod ...@@ -59,7 +59,14 @@ module Pod
'PODS_BUILD_HEADERS_SEARCH_PATHS' => quote(sandbox.build_headers.search_paths), 'PODS_BUILD_HEADERS_SEARCH_PATHS' => quote(sandbox.build_headers.search_paths),
'PODS_PUBLIC_HEADERS_SEARCH_PATHS' => quote(sandbox.public_headers.search_paths), 'PODS_PUBLIC_HEADERS_SEARCH_PATHS' => quote(sandbox.public_headers.search_paths),
}) })
spec_consumers.each { |consumers| @xcconfig.merge!(consumers.xcconfig) }
spec_consumers.each do |consumer|
@xcconfig.merge!(consumer.xcconfig);
@xcconfig.libraries.merge(consumer.libraries);
@xcconfig.frameworks.merge(consumer.frameworks);
@xcconfig.weak_frameworks.merge(consumer.weak_frameworks);
end
@xcconfig @xcconfig
end end
......
...@@ -24,6 +24,10 @@ module Pod ...@@ -24,6 +24,10 @@ module Pod
#-----------------------------------------------------------------------# #-----------------------------------------------------------------------#
before do before do
@spec.xcconfig = { 'OTHER_LDFLAGS' => '-no_compact_unwind' }
@spec.frameworks = ['QuartzCore']
@spec.weak_frameworks = ['iAd']
@spec.libraries = ['xml2']
@xcconfig = @generator.generate @xcconfig = @generator.generate
end end
...@@ -71,6 +75,22 @@ module Pod ...@@ -71,6 +75,22 @@ module Pod
@xcconfig.to_hash['PODS_PUBLIC_HEADERS_SEARCH_PATHS'].should == expected @xcconfig.to_hash['PODS_PUBLIC_HEADERS_SEARCH_PATHS'].should == expected
end end
it "includes the xcconfig of the specifications" do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include('-no_compact_unwind')
end
it "includes the libraries for the specifications" do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include('-lxml2')
end
it "includes the frameworks of the specifications" do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include('-framework QuartzCore')
end
it "includes the weak-frameworks of the specifications" do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include('-weak_framework iAd')
end
#-----------------------------------------------------------------------# #-----------------------------------------------------------------------#
it 'returns the settings that the pods project needs to override' do it 'returns the settings that the pods project needs to override' do
......
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