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
c6be52a7
Commit
c6be52a7
authored
Feb 06, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Generator::XCConfig] Include the values of the specifications.
parent
ad7f1e6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
xcconfig.rb
lib/cocoapods/generator/xcconfig.rb
+8
-1
xcconfig_spec.rb
spec/unit/generator/xcconfig_spec.rb
+20
-0
No files found.
lib/cocoapods/generator/xcconfig.rb
View file @
c6be52a7
...
@@ -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
...
...
spec/unit/generator/xcconfig_spec.rb
View file @
c6be52a7
...
@@ -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
...
...
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