summaryrefslogtreecommitdiffstats
path: root/app/app.gyp
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 19:09:41 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 19:09:41 +0000
commit06e6f87a7d99758524cefbd9d234b0635c420dbc (patch)
treed72cc2e2e116a2f8f77252a5c9510953a7540800 /app/app.gyp
parent58531df60b957442c986f947e6e1566fd9cf6084 (diff)
downloadchromium_src-06e6f87a7d99758524cefbd9d234b0635c420dbc.zip
chromium_src-06e6f87a7d99758524cefbd9d234b0635c420dbc.tar.gz
chromium_src-06e6f87a7d99758524cefbd9d234b0635c420dbc.tar.bz2
Parameterize the Google Update appid at build time instead of hard coding it in the source.
Review URL: http://codereview.chromium.org/178011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25072 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/app.gyp')
-rw-r--r--app/app.gyp47
1 files changed, 46 insertions, 1 deletions
diff --git a/app/app.gyp b/app/app.gyp
index 4422d03..3d027d6 100644
--- a/app/app.gyp
+++ b/app/app.gyp
@@ -297,6 +297,51 @@
'dependencies': ['../build/win/system.gyp:cygwin'],
}],
],
- },
+ },
+ {
+ 'target_name': 'app_id',
+ 'type': 'none',
+ 'msvs_guid': '83100055-172B-49EA-B422-B1A92B627D37',
+ 'conditions': [
+ ['OS=="win"',
+ {
+ 'actions': [
+ {
+ 'action_name': 'appid',
+ 'variables': {
+ 'appid_py': '../chrome/tools/build/appid.py',
+ },
+ 'conditions': [
+ [ 'branding=="Chrome"', {
+ 'variables': {
+ 'appid_value': '<(google_update_appid)',
+ },
+ }, { # else
+ 'variables': {
+ 'appid_value': '',
+ },
+ }],
+ ],
+ 'inputs': [
+ '<(appid_py)',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/chrome/appid.h',
+ 'tools/build/_always_run_appid_py.marker',
+ ],
+ 'action': [
+ 'python',
+ '<(appid_py)',
+ '-a', '<(appid_value)',
+ '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome/appid.h',
+ ],
+ 'process_outputs_as_sources': 1,
+ 'message': 'Generating appid information in <(SHARED_INTERMEDIATE_DIR)/chrome/appid.h'
+ },
+ ],
+ },
+ ],
+ ],
+ },
],
}