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
8870faf4
Commit
8870faf4
authored
Feb 25, 2012
by
Luke Redpath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit more refactoring, brought xcodeproj up to date.
parent
f0bc0a3f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
Xcodeproj
external/Xcodeproj
+1
-1
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+7
-10
project.rb
lib/cocoapods/project.rb
+5
-4
No files found.
Xcodeproj
@
c874b109
Subproject commit
fc2a3c0152605451a67e9ee5f69ea244fd624a68
Subproject commit
c874b109de3523829ef234a0e53a8c7c0ab1fc33
lib/cocoapods/installer/target_installer.rb
View file @
8870faf4
...
...
@@ -76,25 +76,22 @@ module Pod
xcconfig
.
merge!
(
'HEADER_SEARCH_PATHS'
=>
sandbox
.
header_search_paths
.
join
(
" "
))
# Add all the target related support files to the group, even the copy
# resources script although the project doesn't actually use them.
support_files_group
=
@project
.
groups
.
object_named
(
"Targets Support Files"
)
support_files_group
=
support_files_group
.
create_group
(
@target_definition
.
lib_name
)
support_files_group
=
@project
.
group
(
"Targets Support Files"
).
create_group
(
@target_definition
.
lib_name
)
support_files_group
.
add_file_paths
(
target_support_files
)
target_support_files
.
each
do
|
file_path
|
support_files_group
.
create_file
(
file_path
)
xcconfig_file
=
support_files_group
.
file_with_path
(
xcconfig_filename
)
configure_build_configurations
(
xcconfig_filename
)
create_files
(
pods
,
sandbox
)
end
# Assign the xcconfig as the base config of each config.
def
configure_build_configurations
(
xcconfig_file
)
@target
.
buildConfigurations
.
each
do
|
config
|
xcconfig_file
=
support_files_group
.
file_with_path
(
xcconfig_filename
)
config
.
baseConfiguration
=
xcconfig_file
config
.
buildSettings
[
'OTHER_LDFLAGS'
]
=
''
config
.
buildSettings
[
'GCC_PREFIX_HEADER'
]
=
prefix_header_filename
config
.
buildSettings
[
'PODS_ROOT'
]
=
'$(SRCROOT)'
end
create_files
(
pods
,
sandbox
)
end
def
create_files
(
pods
,
sandbox
)
...
...
lib/cocoapods/project.rb
View file @
8870faf4
require
'xcodeproj/project'
require
'xcodeproj/project/object/build_phase'
Xcodeproj
::
Project
::
PBXCopyFilesBuildPhase
.
instance_eval
do
Xcodeproj
::
Project
::
Object
::
PBXCopyFilesBuildPhase
.
instance_eval
do
def
self
.
new_pod_dir
(
project
,
pod_name
,
path
)
new
(
project
,
nil
,
{
"dstPath"
=>
"Pods/
#{
path
}
"
,
...
...
@@ -40,15 +41,15 @@ module Pod
project
.
main_group
<<
products
project
.
root_object
.
products
=
products
project
.
root_object
.
attributes
[
'buildConfigurationList'
]
=
project
.
objects
.
add
(
Xcodeproj
::
Project
::
XCConfigurationList
,
{
project
.
root_object
.
attributes
[
'buildConfigurationList'
]
=
project
.
objects
.
add
(
Xcodeproj
::
Project
::
Object
::
XCConfigurationList
,
{
'defaultConfigurationIsVisible'
=>
'0'
,
'defaultConfigurationName'
=>
'Release'
,
'buildConfigurations'
=>
[
project
.
objects
.
add
(
Xcodeproj
::
Project
::
XCBuildConfiguration
,
{
project
.
objects
.
add
(
Xcodeproj
::
Project
::
Object
::
XCBuildConfiguration
,
{
'name'
=>
'Debug'
,
'buildSettings'
=>
build_settings
(
platform
,
:debug
)
}),
project
.
objects
.
add
(
Xcodeproj
::
Project
::
XCBuildConfiguration
,
{
project
.
objects
.
add
(
Xcodeproj
::
Project
::
Object
::
XCBuildConfiguration
,
{
'name'
=>
'Release'
,
'buildSettings'
=>
build_settings
(
platform
,
:release
)
})
...
...
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