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
a0a9a853
Commit
a0a9a853
authored
Jul 04, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Swift specific settings to the generated xcconfig files if required
parent
816970fc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+2
-0
private_pod_xcconfig.rb
lib/cocoapods/generator/xcconfig/private_pod_xcconfig.rb
+1
-0
xcconfig_helper.rb
lib/cocoapods/generator/xcconfig/xcconfig_helper.rb
+18
-0
No files found.
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
a0a9a853
...
...
@@ -57,6 +57,8 @@ module Pod
'OTHER_CFLAGS'
=>
'$(inherited) '
+
XCConfigHelper
.
quote
(
header_search_path_flags
,
'-isystem'
)
)
XCConfigHelper
.
add_language_specific_settings
(
target
,
@xcconfig
)
target
.
pod_targets
.
each
do
|
pod_target
|
next
unless
pod_target
.
include_in_build_config?
(
@configuration_name
)
...
...
lib/cocoapods/generator/xcconfig/private_pod_xcconfig.rb
View file @
a0a9a853
...
...
@@ -59,6 +59,7 @@ module Pod
xcconfig_hash
=
add_xcconfig_namespaced_keys
(
public_xcconfig
.
to_hash
,
config
,
target
.
xcconfig_prefix
)
@xcconfig
=
Xcodeproj
::
Config
.
new
(
xcconfig_hash
)
XCConfigHelper
.
add_language_specific_settings
(
target
,
@xcconfig
)
@xcconfig
.
includes
=
[
target
.
name
]
@xcconfig
end
...
...
lib/cocoapods/generator/xcconfig/xcconfig_helper.rb
View file @
a0a9a853
...
...
@@ -88,6 +88,24 @@ module Pod
xcconfig
.
merge!
(
build_settings
)
end
# Checks if the given target requires language specific settings and
# configures the given Xcconfig.
#
# @param [Target] target
# The target.
#
# @param [Xcodeproj::Config] xcconfig
# The xcconfig to edit.
#
def
self
.
add_language_specific_settings
(
target
,
xcconfig
)
if
target
.
uses_swift?
build_settings
=
{
'OTHER_SWIFT_FLAGS'
=>
quote
([
'-D COCOAPODS'
]),
}
xcconfig
.
merge!
(
build_settings
)
end
end
# Adds the search paths of the developer frameworks to the specification
# if needed. This is done because the `SenTestingKit` requires them and
# adding them to each specification which requires it is repetitive and
...
...
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