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
b44c0e10
Commit
b44c0e10
authored
Nov 10, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link frameworks from pod target
parent
51daf755
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
private_pod_xcconfig.rb
lib/cocoapods/generator/xcconfig/private_pod_xcconfig.rb
+2
-0
pod_target.rb
lib/cocoapods/target/pod_target.rb
+7
-0
pod_target_spec.rb
spec/unit/target/pod_target_spec.rb
+5
-0
No files found.
lib/cocoapods/generator/xcconfig/private_pod_xcconfig.rb
View file @
b44c0e10
...
...
@@ -58,9 +58,11 @@ module Pod
}
if
target
.
requires_framework?
dependencies
=
target
.
module_dependencies
.
reject
{
|
dep
|
dep
==
target
.
product_module_name
}
build_settings
=
{
'CONFIGURATION_BUILD_DIR'
=>
target
.
configuration_build_dir
,
'FRAMEWORK_SEARCH_PATHS'
=>
XCConfigHelper
.
quote
([
target
.
configuration_build_dir
]),
'OTHER_LDFLAGS'
=>
'$(inherited) '
+
XCConfigHelper
.
quote
(
dependencies
,
'-framework'
)
}
config
.
merge!
(
build_settings
)
end
...
...
lib/cocoapods/target/pod_target.rb
View file @
b44c0e10
...
...
@@ -91,6 +91,13 @@ module Pod
end
.
flatten
end
# @return [Array<String>] The module names of the Pods on which this target
# depends.
#
def
module_dependencies
dependencies
.
map
{
|
dep_name
|
c99ext_identifier
(
dep_name
)
}
end
# Checks if the target should be included in the build configuration with
# the given name.
#
...
...
spec/unit/target/pod_target_spec.rb
View file @
b44c0e10
...
...
@@ -38,6 +38,11 @@ module Pod
@pod_target
.
dependencies
.
should
==
[
'monkey'
]
end
it
'returns the name of the modules of the Pods on which this target depends'
do
@pod_target
.
stubs
(
:dependencies
).
returns
([
'human'
,
'M!lk'
,
'3xP-Blender'
])
@pod_target
.
module_dependencies
.
should
==
%w(human M_lk _3xP_Blender)
end
it
'returns whether it is whitelisted in a build configuration'
do
@target_definition
.
store_pod
(
'BananaLib'
)
@target_definition
.
whitelist_pod_for_configuration
(
'BananaLib'
,
'debug'
)
...
...
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