summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 22:22:15 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 22:22:15 +0000
commit27b687ec44525121b545a2fa4158738453e2493b (patch)
treecc483266d738b772c3e5bc7ea999a0005d98e722 /build
parent11f515acdda3473200ff0cc4106a0020a7d4dc74 (diff)
downloadchromium_src-27b687ec44525121b545a2fa4158738453e2493b.zip
chromium_src-27b687ec44525121b545a2fa4158738453e2493b.tar.gz
chromium_src-27b687ec44525121b545a2fa4158738453e2493b.tar.bz2
Add gyp variable mac_strip_release to set the target_defaults variable mac_strip.
This allows you to do `GYP_DEFINES='mac_strip_release=0' gclient sync` to produce Release binaries that are not run through strip_from_xcode. BUG=none TEST=none Review URL: http://codereview.chromium.org/9855027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi
index c90d15b..65b8dad 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -543,6 +543,10 @@
'mac_sdk%': '10.5',
'mac_deployment_target%': '10.5',
+ # The default value for mac_strip in target_defaults. This cannot be
+ # set there, per the comment about variable% in a target_defaults.
+ 'mac_strip_release%': 1,
+
# Set to 1 to enable code coverage. In addition to build changes
# (e.g. extra CFLAGS), also creates a new target in the src/chrome
# project file called "coverage".
@@ -2394,7 +2398,8 @@
# different targets, like these.
'mac_pie': 1, # Most executables can be position-independent.
'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
- 'mac_strip': 1, # Strip debugging symbols from the target.
+ # Strip debugging symbols from the target.
+ 'mac_strip': '<(mac_strip_release)',
},
'mac_bundle': 0,
'xcode_settings': {