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
daa67520
Commit
daa67520
authored
May 07, 2013
by
Jeremy Slater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure integration targets without specs
parent
df7a0272
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
26 deletions
+16
-26
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+16
-26
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
daa67520
...
@@ -164,25 +164,9 @@ module Pod
...
@@ -164,25 +164,9 @@ module Pod
def
generate_targets
def
generate_targets
targets
=
[]
targets
=
[]
result
.
specs_by_target
.
each
do
|
target_definition
,
specs
|
result
.
specs_by_target
.
each
do
|
target_definition
,
specs
|
libs_by_name
=
{}
target
=
Target
.
new
(
target_definition
,
sandbox
)
target
=
Target
.
new
(
target_definition
,
sandbox
)
targets
<<
target
targets
<<
target
specs
.
each
do
|
spec
|
lib_target
=
Podfile
::
TargetDefinition
.
from_hash
(
target_definition
.
to_hash
,
target_definition
.
parent
)
if
target_definition
.
name
==
'Pods'
lib_target
.
name
=
spec
.
name
.
gsub
(
'/'
,
'-'
)
else
lib_target
.
name
=
"
#{
target_definition
.
name
}
-
#{
spec
.
name
.
gsub
(
'/'
,
'-'
)
}
"
end
lib
=
Target
.
new
(
lib_target
,
sandbox
)
libs_by_name
[
spec
.
name
]
=
lib
lib
.
support_files_root
=
sandbox
.
library_support_files_dir
(
lib
.
name
)
lib
.
platform
=
target_definition
.
platform
lib
.
spec
=
spec
target
.
support_files_root
=
sandbox
.
library_support_files_dir
(
target
.
name
)
target
.
support_files_root
=
sandbox
.
library_support_files_dir
(
target
.
name
)
target
.
platform
=
target_definition
.
platform
target
.
platform
=
target_definition
.
platform
...
@@ -191,27 +175,33 @@ module Pod
...
@@ -191,27 +175,33 @@ module Pod
user_project
=
Xcodeproj
::
Project
.
new
(
project_path
)
user_project
=
Xcodeproj
::
Project
.
new
(
project_path
)
native_targets
=
compute_user_project_targets
(
target_definition
,
user_project
)
native_targets
=
compute_user_project_targets
(
target_definition
,
user_project
)
lib
.
user_project_path
=
project_path
lib
.
client_root
=
project_path
.
dirname
lib
.
user_build_configurations
=
compute_user_build_configurations
(
target_definition
,
native_targets
)
target
.
user_project_path
=
project_path
target
.
user_project_path
=
project_path
target
.
client_root
=
project_path
.
dirname
target
.
client_root
=
project_path
.
dirname
target
.
user_target_uuids
=
native_targets
.
map
(
&
:uuid
)
target
.
user_target_uuids
=
native_targets
.
map
(
&
:uuid
)
target
.
user_build_configurations
=
compute_user_build_configurations
(
target_definition
,
native_targets
)
target
.
user_build_configurations
=
compute_user_build_configurations
(
target_definition
,
native_targets
)
else
else
lib
.
client_root
=
config
.
installation_root
lib
.
user_target_uuids
=
[]
lib
.
user_build_configurations
=
{}
target
.
client_root
=
config
.
installation_root
target
.
client_root
=
config
.
installation_root
target
.
user_target_uuids
=
[]
target
.
user_target_uuids
=
[]
target
.
user_build_configurations
=
{}
target
.
user_build_configurations
=
{}
end
end
target
.
libraries
<<
lib
specs
.
each
do
|
spec
|
lib_target
=
Podfile
::
TargetDefinition
.
from_hash
(
target_definition
.
to_hash
,
target_definition
.
parent
)
if
target_definition
.
name
==
'Pods'
lib_target
.
name
=
spec
.
name
.
gsub
(
'/'
,
'-'
)
else
lib_target
.
name
=
"
#{
target_definition
.
name
}
-
#{
spec
.
name
.
gsub
(
'/'
,
'-'
)
}
"
end
end
target
.
libraries
.
each
do
|
library
|
lib
=
Target
.
new
(
lib_target
,
sandbox
)
library
.
libraries
=
library
.
spec
.
dependencies
(
library
.
platform
).
map
{
|
dep
|
libs_by_name
[
dep
.
name
]
}
lib
.
spec
=
spec
lib
.
support_files_root
=
target
.
support_files_root
lib
.
platform
=
target
.
platform
lib
.
user_project_path
=
target
.
user_project_path
lib
.
client_root
=
target
.
client_root
lib
.
user_build_configurations
=
target
.
user_build_configurations
target
.
libraries
<<
lib
end
end
end
end
targets
targets
...
...
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