Commit 649a1350 authored by Boris Bügling's avatar Boris Bügling

Improve naming to `should_build?`

parent e5bf93c4
...@@ -73,7 +73,7 @@ module Pod ...@@ -73,7 +73,7 @@ module Pod
# Add pod static lib to list of libraries that are to be linked with # Add pod static lib to list of libraries that are to be linked with
# the user’s project. # the user’s project.
next unless pod_target.should_build next unless pod_target.should_build?
@xcconfig.merge!('OTHER_LDFLAGS' => %(-l "#{pod_target.name}")) @xcconfig.merge!('OTHER_LDFLAGS' => %(-l "#{pod_target.name}"))
end end
......
...@@ -435,7 +435,7 @@ module Pod ...@@ -435,7 +435,7 @@ module Pod
pod_targets.sort_by(&:name).each do |pod_target| pod_targets.sort_by(&:name).each do |pod_target|
pod_target.file_accessors.each do |file_accessor| pod_target.file_accessors.each do |file_accessor|
file_accessor.spec_consumer.frameworks.each do |framework| file_accessor.spec_consumer.frameworks.each do |framework|
if pod_target.should_build if pod_target.should_build?
pod_target.native_target.add_system_framework(framework) pod_target.native_target.add_system_framework(framework)
end end
end end
...@@ -447,7 +447,7 @@ module Pod ...@@ -447,7 +447,7 @@ module Pod
def set_target_dependencies def set_target_dependencies
aggregate_targets.each do |aggregate_target| aggregate_targets.each do |aggregate_target|
aggregate_target.pod_targets.each do |pod_target| aggregate_target.pod_targets.each do |pod_target|
next unless pod_target.should_build next unless pod_target.should_build?
aggregate_target.native_target.add_dependency(pod_target.native_target) aggregate_target.native_target.add_dependency(pod_target.native_target)
pod_target.dependencies.each do |dep| pod_target.dependencies.each do |dep|
......
...@@ -9,7 +9,7 @@ module Pod ...@@ -9,7 +9,7 @@ module Pod
# @return [void] # @return [void]
# #
def install! def install!
return unless target.should_build return unless target.should_build?
UI.message "- Installing target `#{target.name}` #{target.platform}" do UI.message "- Installing target `#{target.name}` #{target.platform}" do
add_target add_target
......
...@@ -38,7 +38,7 @@ module Pod ...@@ -38,7 +38,7 @@ module Pod
# #
# A target should not be build if it has no source files. # A target should not be build if it has no source files.
# #
def should_build def should_build?
file_accessors.map do |fa| file_accessors.map do |fa|
fa.source_files.count fa.source_files.count
end.inject(0, :+) > 0 end.inject(0, :+) > 0
......
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