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
615ca31d
Commit
615ca31d
authored
Dec 30, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Project] Rename to definition_for_build_configuration
parent
d60ec07b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
project.rb
lib/cocoapods/project.rb
+2
-2
No files found.
lib/cocoapods/project.rb
View file @
615ca31d
...
@@ -243,7 +243,7 @@ module Pod
...
@@ -243,7 +243,7 @@ module Pod
build_configuration
=
super
build_configuration
=
super
settings
=
build_configuration
.
build_settings
settings
=
build_configuration
.
build_settings
definitions
=
settings
[
'GCC_PREPROCESSOR_DEFINITIONS'
]
||
[
'$(inherited)'
]
definitions
=
settings
[
'GCC_PREPROCESSOR_DEFINITIONS'
]
||
[
'$(inherited)'
]
defines
=
[
defin
e
_for_build_configuration
(
name
)]
defines
=
[
defin
inition
_for_build_configuration
(
name
)]
defines
<<
'DEBUG'
if
type
==
:debug
defines
<<
'DEBUG'
if
type
==
:debug
defines
.
each
do
|
define
|
defines
.
each
do
|
define
|
value
=
"
#{
define
}
=1"
value
=
"
#{
define
}
=1"
...
@@ -260,7 +260,7 @@ module Pod
...
@@ -260,7 +260,7 @@ module Pod
#
#
# @return [String] The preprocessor definition to set for the configuration.
# @return [String] The preprocessor definition to set for the configuration.
#
#
def
defin
e
_for_build_configuration
(
name
)
def
defin
inition
_for_build_configuration
(
name
)
"POD_CONFIGURATION_
#{
name
.
underscore
}
"
.
gsub
(
/[^a-zA-Z0-9_]/
,
'_'
).
upcase
"POD_CONFIGURATION_
#{
name
.
underscore
}
"
.
gsub
(
/[^a-zA-Z0-9_]/
,
'_'
).
upcase
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