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
6bbbdbac
Commit
6bbbdbac
authored
May 14, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevernt Xcodeproj from generating unecessary whitespace
- #add_libraries - #add_frameworks
parent
462d6a13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
specification.rb
lib/cocoapods/specification.rb
+9
-8
No files found.
lib/cocoapods/specification.rb
View file @
6bbbdbac
...
@@ -226,15 +226,17 @@ module Pod
...
@@ -226,15 +226,17 @@ module Pod
end
end
def
add_libraries
(
libraries
)
def
add_libraries
(
libraries
)
flags
=
[
@attributes
[
'OTHER_LDFLAGS'
]
]
return
if
libraries
.
nil?
||
libraries
.
empty?
flags
<<
"-l
#{
libraries
.
join
(
' -l'
).
strip
}
"
if
libraries
&&
!
libraries
.
empty?
flags
=
[
@attributes
[
'OTHER_LDFLAGS'
]
]
||
[]
@attributes
[
'OTHER_LDFLAGS'
]
=
flags
.
compact
.
join
(
' '
)
flags
<<
"-l
#{
libraries
.
join
(
' -l'
)
}
"
@attributes
[
'OTHER_LDFLAGS'
]
=
flags
.
compact
.
map
(
&
:strip
).
join
(
' '
)
end
end
def
add_frameworks
(
frameworks
)
def
add_frameworks
(
frameworks
)
flags
=
[
@attributes
[
'OTHER_LDFLAGS'
]
]
return
if
frameworks
.
nil?
||
frameworks
.
empty?
flags
<<
"-framework
#{
frameworks
.
join
(
' -framework '
).
strip
}
"
if
frameworks
&&
!
frameworks
.
empty?
flags
=
[
@attributes
[
'OTHER_LDFLAGS'
]
]
||
[]
@attributes
[
'OTHER_LDFLAGS'
]
=
flags
.
compact
.
join
(
' '
)
flags
<<
"-framework
#{
frameworks
.
join
(
' -framework '
)
}
"
@attributes
[
'OTHER_LDFLAGS'
]
=
flags
.
compact
.
map
(
&
:strip
).
join
(
' '
)
end
end
def
dup
def
dup
...
@@ -294,7 +296,6 @@ module Pod
...
@@ -294,7 +296,6 @@ module Pod
external_dependencies
+
subspec_dependencies
external_dependencies
+
subspec_dependencies
end
end
include
Config
::
Mixin
include
Config
::
Mixin
def
top_level_parent
def
top_level_parent
...
@@ -449,7 +450,7 @@ module Pod
...
@@ -449,7 +450,7 @@ module Pod
# @visibility private
# @visibility private
#
#
# This
deployment_target is multi
platform and to support
# This
is multi-
platform and to support
# subspecs with different platforms is is resolved as the
# subspecs with different platforms is is resolved as the
# first non nil value accross the chain.
# first non nil value accross the chain.
def
deployment_target
=
(
version
)
def
deployment_target
=
(
version
)
...
...
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