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
3da86eb1
Commit
3da86eb1
authored
Aug 06, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetInstaller] Added PODS_HEADERS_SEARCH_PATHS to xcconfig.
parent
8407dcd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+8
-7
No files found.
lib/cocoapods/installer/target_installer.rb
View file @
3da86eb1
...
@@ -13,9 +13,10 @@ module Pod
...
@@ -13,9 +13,10 @@ module Pod
def
xcconfig
def
xcconfig
@xcconfig
||=
Xcodeproj
::
Config
.
new
({
@xcconfig
||=
Xcodeproj
::
Config
.
new
({
# In a workspace this is where the static library headers should be found.
# In a workspace this is where the static library headers should be found.
'PODS_ROOT'
=>
@target_definition
.
relative_pods_root
,
'PODS_ROOT'
=>
@target_definition
.
relative_pods_root
,
'ALWAYS_SEARCH_USER_PATHS'
=>
'YES'
,
# needed to make EmbedReader build
'PODS_HEADERS_SEARCH_PATHS'
=>
'${PODS_PUBLIC_HEADERS_SEARCH_PATHS}'
,
'OTHER_LDFLAGS'
=>
default_ld_flags
,
'ALWAYS_SEARCH_USER_PATHS'
=>
'YES'
,
# needed to make EmbedReader build
'OTHER_LDFLAGS'
=>
default_ld_flags
,
})
})
end
end
...
@@ -72,9 +73,9 @@ module Pod
...
@@ -72,9 +73,9 @@ module Pod
end
end
@target
.
add_source_files
(
source_file_descriptions
)
@target
.
add_source_files
(
source_file_descriptions
)
xcconfig
.
merge!
(
'HEADER_SEARCH_PATHS'
=>
quoted
(
sandbox
.
build_headers
.
search_paths
).
join
(
" "
)
)
xcconfig
.
merge!
(
'HEADER_SEARCH_PATHS'
=>
'${PODS_HEADERS_SEARCH_PATHS}'
)
# Indirect HEADER_SEARCH_PATHS, so that configure_build_configurations can override it
xcconfig
.
merge!
(
'PODS_BUILD_HEADERS_SEARCH_PATHS'
=>
quoted
(
sandbox
.
build_headers
.
search_paths
).
join
(
" "
))
xcconfig
.
merge!
(
'PODS_
HEADER
_SEARCH_PATHS'
=>
quoted
(
sandbox
.
public_headers
.
search_paths
).
join
(
" "
))
xcconfig
.
merge!
(
'PODS_
PUBLIC_HEADERS
_SEARCH_PATHS'
=>
quoted
(
sandbox
.
public_headers
.
search_paths
).
join
(
" "
))
support_files_group
=
@project
.
group
(
"Targets Support Files"
).
create_group
(
@target_definition
.
label
)
support_files_group
=
@project
.
group
(
"Targets Support Files"
).
create_group
(
@target_definition
.
label
)
support_files_group
.
create_files
(
target_support_files
)
support_files_group
.
create_files
(
target_support_files
)
...
@@ -90,7 +91,7 @@ module Pod
...
@@ -90,7 +91,7 @@ module Pod
config
.
build_settings
[
'OTHER_LDFLAGS'
]
=
''
config
.
build_settings
[
'OTHER_LDFLAGS'
]
=
''
config
.
build_settings
[
'GCC_PREFIX_HEADER'
]
=
@target_definition
.
prefix_header_name
config
.
build_settings
[
'GCC_PREFIX_HEADER'
]
=
@target_definition
.
prefix_header_name
config
.
build_settings
[
'PODS_ROOT'
]
=
'${SRCROOT}'
config
.
build_settings
[
'PODS_ROOT'
]
=
'${SRCROOT}'
config
.
build_settings
[
'PODS_HEADER
_SEARCH_PATHS'
]
=
quoted
(
sandbox
.
build_headers
.
search_paths
).
join
(
" "
)
config
.
build_settings
[
'PODS_HEADER
S_SEARCH_PATHS'
]
=
'${PODS_BUILD_HEADERS_SEARCH_PATHS}'
end
end
end
end
...
...
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