Make CODE_SIGN gyp var lowercase and 💄 it in Rakefile

This commit is contained in:
Nathan Sobo 2013-04-10 11:57:46 -06:00
parent 2cb18f5855
commit 93cddcf8dc
2 changed files with 6 additions and 4 deletions

View File

@ -16,7 +16,8 @@ task "create-xcode-project" => ["update-cef", "update-node"] do
`rm -rf atom.xcodeproj` `rm -rf atom.xcodeproj`
`script/generate-sources-gypi` `script/generate-sources-gypi`
version = %{-D version="#{ENV['VERSION']}"} if ENV['VERSION'] version = %{-D version="#{ENV['VERSION']}"} if ENV['VERSION']
`gyp --depth=. -D CODE_SIGN="#{ENV['CODE_SIGN']}" #{version} atom.gyp` code_sign = %{-D code_sign="#{ENV['CODE_SIGN']}"} if ENV['CODE_SIGN']
`gyp --depth=. #{code_sign} #{version} atom.gyp`
end end
desc "Update CEF to the latest version specified by the prebuilt-cef submodule" desc "Update CEF to the latest version specified by the prebuilt-cef submodule"

View File

@ -3,6 +3,7 @@
'pkg-config': 'pkg-config', 'pkg-config': 'pkg-config',
'chromium_code': 1, 'chromium_code': 1,
'version%': "<!(git rev-parse --short HEAD)", 'version%': "<!(git rev-parse --short HEAD)",
'code_sign%': 0,
'use_aura%': 0, 'use_aura%': 0,
'conditions': [ 'conditions': [
['OS=="win"', { ['OS=="win"', {
@ -76,8 +77,8 @@
'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../Frameworks', 'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../Frameworks',
}, },
'conditions': [ 'conditions': [
['CODE_SIGN' , { ['code_sign' , {
'xcode_settings': {'CODE_SIGN_IDENTITY': "<(CODE_SIGN)"}, 'xcode_settings': {'CODE_SIGN_IDENTITY': "<(code_sign)"},
}], }],
['OS=="win" and win_use_allocator_shim==1', { ['OS=="win" and win_use_allocator_shim==1', {
'dependencies': [ 'dependencies': [
@ -269,7 +270,7 @@
'native/mac/English.lproj/MainMenu.xib', 'native/mac/English.lproj/MainMenu.xib',
], ],
'conditions': [ 'conditions': [
['CODE_SIGN', { ['code_sign', {
'defines': [ 'defines': [
'CODE_SIGNING_ENABLED=1', 'CODE_SIGNING_ENABLED=1',
], ],