summaryrefslogtreecommitdiffstats
path: root/build/chrome_settings.gypi
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-12 18:34:38 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-12 18:34:38 +0000
commitcdccaa7fcd2db92c939f3d7788d50c9051e47af6 (patch)
treea82e1e30f0eb4ca50b3199ef6916f6fc7f6addef /build/chrome_settings.gypi
parentad9c81b190353e9e47ac4a09af8f685f0f465445 (diff)
downloadchromium_src-cdccaa7fcd2db92c939f3d7788d50c9051e47af6.zip
chromium_src-cdccaa7fcd2db92c939f3d7788d50c9051e47af6.tar.gz
chromium_src-cdccaa7fcd2db92c939f3d7788d50c9051e47af6.tar.bz2
Move mac_bundle_id and other variables from chrome.gyp to build/chrome_settings.gypi.
These variables could be used from any gypi file included from chrome.gyp. However, policy_templates.gypi is moving into components/policy.gypi, which is included from components/components.gyp instead. Moving the variables to build/chrome_settings.gypi enables their use from other gyp files. BUG=271392 Review URL: https://codereview.chromium.org/98363007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240367 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/chrome_settings.gypi')
-rw-r--r--build/chrome_settings.gypi30
1 files changed, 30 insertions, 0 deletions
diff --git a/build/chrome_settings.gypi b/build/chrome_settings.gypi
new file mode 100644
index 0000000..e9c7535
--- /dev/null
+++ b/build/chrome_settings.gypi
@@ -0,0 +1,30 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This file contains settings for ../chrome/chrome.gyp that other gyp files
+# also use.
+{
+ 'variables': {
+ # TODO: remove this helper when we have loops in GYP
+ 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py'],
+
+ 'conditions': [
+ ['OS=="mac"', {
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'mac_bundle_id': 'com.google.Chrome',
+ 'mac_creator': 'rimZ',
+ # The policy .grd file also needs the bundle id.
+ 'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'],
+ }, { # else: branding!="Chrome"
+ 'mac_bundle_id': 'org.chromium.Chromium',
+ 'mac_creator': 'Cr24',
+ # The policy .grd file also needs the bundle id.
+ 'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'],
+ }], # branding
+ ], # conditions
+ }], # OS=="mac"
+ ], # conditions
+ }, # variables
+}