summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 13:11:19 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 13:11:19 +0000
commit3ac3f51f8261910dbc38ccfa4cdf3d491ba7ecdb (patch)
tree77aacff719d688d1a5247a7210d11415c592154b /chrome
parent2ef9c45408a75573f5e5325ac0cb17798964b67a (diff)
downloadchromium_src-3ac3f51f8261910dbc38ccfa4cdf3d491ba7ecdb.zip
chromium_src-3ac3f51f8261910dbc38ccfa4cdf3d491ba7ecdb.tar.gz
chromium_src-3ac3f51f8261910dbc38ccfa4cdf3d491ba7ecdb.tar.bz2
- Roll DEPS to pick up newer GYP
- Add script for running dump_syms on release builds if breakpad is enabled. - Update the info.plist tweaks to add the breakpad keys if needed - Add a var to check for breakpad support within the chrome.gyp instead of having the knowledge about breakpad being in official builds spread all around. Review URL: http://codereview.chromium.org/113305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/chrome.gyp47
1 files changed, 40 insertions, 7 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 28845f6..3c8c0e7 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -5,6 +5,9 @@
{
'variables': {
'chromium_code': 1,
+ # Mac NOTE: at the start of the conditions block we default some vars
+ # that control features based on the branding, this way each place that
+ # needs to know about the feature isn't hard coded to the branding type.
},
'includes': [
'../build/common.gypi',
@@ -1975,22 +1978,40 @@
'variables': {
'bundle_id': 'com.google.Chrome',
},
+ }, { # else: 'branding!="Chrome"
+ 'mac_bundle_resources': ['app/theme/chromium/app.icns'],
+ 'variables': {
+ 'bundle_id': 'org.chromium.Chromium',
+ },
+ }],
+ ['mac_breakpad==1', {
# Only include breakpad in official builds.
'dependencies': [
'../breakpad/breakpad.gyp:breakpad',
+ '../breakpad/breakpad.gyp:dump_syms',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)/<(branding).app/Contents/Resources/',
'files': ['<(PRODUCT_DIR)/crash_inspector', '<(PRODUCT_DIR)/crash_report_sender.app'],
},
- ]
- }, { # else: branding!="Chrome"
- 'mac_bundle_resources': ['app/theme/chromium/app.icns'],
- 'variables': {
- 'bundle_id': 'org.chromium.Chromium',
- },
- }],
+ ],
+ 'target_conditions': [
+ # We use target_conditions here that is always true to force
+ # this post build to run last. This lets the strip from
+ # common.gypi go ahead of it, so we can always hit the
+ # upstripped app within the fake dSYM.
+ ['1', {
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'Dump Symbols',
+ 'action': ['<(DEPTH)/build/mac/dump_app_syms',
+ '<(branding)'],
+ },
+ ],
+ }],
+ ],
+ }], # mac_breakpad
],
'xcode_settings': {
# chrome/app/app-Info.plist has a CFBundleIdentifier of
@@ -2027,6 +2048,7 @@
'inputs': [],
'outputs': [],
'action': ['<(DEPTH)/build/mac/tweak_app_infoplist',
+ '-b', '<(mac_breakpad)',
'<(branding)'],
},
],
@@ -2970,6 +2992,17 @@
},
],
'conditions': [
+ # We set a few feature variables so the different parts that need to check
+ # for the mac build, check that flag instead of coding it based on branding.
+ ['OS=="mac" and branding=="Chrome"', {
+ 'variables': {
+ 'mac_breakpad%': 1
+ }
+ }, {
+ 'variables': {
+ 'mac_breakpad%': 0
+ }
+ }],
['OS=="linux"', {
'targets': [
{