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