Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
649a1350
Commit
649a1350
authored
Dec 08, 2014
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve naming to `should_build?`
parent
e5bf93c4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+1
-1
installer.rb
lib/cocoapods/installer.rb
+2
-2
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+1
-1
pod_target.rb
lib/cocoapods/target/pod_target.rb
+1
-1
No files found.
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
649a1350
...
...
@@ -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
...
...
lib/cocoapods/installer.rb
View file @
649a1350
...
...
@@ -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
|
...
...
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
649a1350
...
...
@@ -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
...
...
lib/cocoapods/target/pod_target.rb
View file @
649a1350
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment