summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_repack_pseudo_locales.gypi
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 19:27:33 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 19:27:33 +0000
commitebee6770f6478f1248330661908f2d15b1476ede (patch)
tree0d6d31136a269b8ffd71a1c9c706ff59b7bbb7ba /chrome/chrome_repack_pseudo_locales.gypi
parentd11a4b41d90a2e393fa5908419cf3d97a7d3064b (diff)
downloadchromium_src-ebee6770f6478f1248330661908f2d15b1476ede.zip
chromium_src-ebee6770f6478f1248330661908f2d15b1476ede.tar.gz
chromium_src-ebee6770f6478f1248330661908f2d15b1476ede.tar.bz2
Introduces chromium_resources.gyp to factor out Chrome resource generation
1. Factors out Chrome/Chromium resource generation into a separate chrome_resources.gyp file. 2. Eliminates repetition between Mac and other platforms. 3. Breaks long "repack" actions out into separate files for greater readability. 4. Eliminates circular dependencies in the Aura shell, the Views components, and the compositor when utilizing Chrome resources. BUG=none TEST=try bots run gyps and build correctly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107967 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108466 Review URL: http://codereview.chromium.org/8425002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_repack_pseudo_locales.gypi')
-rw-r--r--chrome/chrome_repack_pseudo_locales.gypi38
1 files changed, 38 insertions, 0 deletions
diff --git a/chrome/chrome_repack_pseudo_locales.gypi b/chrome/chrome_repack_pseudo_locales.gypi
new file mode 100644
index 0000000..90753b7
--- /dev/null
+++ b/chrome/chrome_repack_pseudo_locales.gypi
@@ -0,0 +1,38 @@
+# Copyright (c) 2011 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.
+{
+ 'action_name': 'repack_pseudo_locales',
+ 'variables': {
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'branding_flag': ['-b', 'google_chrome',],
+ }, { # else: branding!="Chrome"
+ 'branding_flag': ['-b', 'chromium',],
+ }],
+ ]
+ },
+ 'inputs': [
+ 'tools/build/repack_locales.py',
+ '<!@pymod_do_main(repack_locales -i <(branding_flag) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(pseudo_locales))'
+ ],
+ 'conditions': [
+ ['OS == "mac"', {
+ 'outputs': [
+ '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
+ ],
+ }, { # else 'OS != "mac"'
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/<(pseudo_locales).pak'
+ ],
+ }],
+ ],
+ 'action': [
+ '<@(repack_locales_cmd)',
+ '<@(branding_flag)',
+ '-g', '<(grit_out_dir)',
+ '-s', '<(SHARED_INTERMEDIATE_DIR)',
+ '-x', '<(SHARED_INTERMEDIATE_DIR)/.',
+ '<@(pseudo_locales)',
+ ],
+}