summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_dll.gypi
diff options
context:
space:
mode:
authorofri@google.com <ofri@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-24 09:29:19 +0000
committerofri@google.com <ofri@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-24 09:29:19 +0000
commitcc0322decce8b3cd28de46d702e465fe877ebaa0 (patch)
tree776f2dde25544602c20fc8752d2f867686df8ec4 /chrome/chrome_dll.gypi
parent19aad26ece19f8d87b7f591889e883099df37c94 (diff)
downloadchromium_src-cc0322decce8b3cd28de46d702e465fe877ebaa0.zip
chromium_src-cc0322decce8b3cd28de46d702e465fe877ebaa0.tar.gz
chromium_src-cc0322decce8b3cd28de46d702e465fe877ebaa0.tar.bz2
Adding fake bidi generation
BUG=73052 TEST=NONE Review URL: http://codereview.chromium.org/7246008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_dll.gypi')
-rw-r--r--chrome/chrome_dll.gypi45
1 files changed, 45 insertions, 0 deletions
diff --git a/chrome/chrome_dll.gypi b/chrome/chrome_dll.gypi
index 3c234ca..4a41d6f 100644
--- a/chrome/chrome_dll.gypi
+++ b/chrome/chrome_dll.gypi
@@ -390,6 +390,45 @@
],
},
{
+ # This is an exact copy of the above phase, except for two
+ # changes:
+ # 1. process_outputs_as_mac_bundle_resources is omitted.
+ # 2. We pass 'pseudo_locales' instead of 'locales' wherever
+ # 'locales' is used.
+ # The result is a build phase that builds all pseudo locales
+ # but doesn't copy them to the final dll/framework.
+ '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',
+ # NOTE: Ideally the common command args would be shared
+ # amongst inputs/outputs/action, but the args include shell
+ # variables which need to be passed intact, and command
+ # expansion wants to expand the shell variables. Adding the
+ # explicit quoting here was the only way it seemed to work.
+ '>!@(<(repack_locales_cmd) -i <(branding_flag) -g \'<(grit_out_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(pseudo_locales))',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/<(pseudo_locales).pak'
+ ],
+ 'action': [
+ '<@(repack_locales_cmd)',
+ '<@(branding_flag)',
+ '-g', '<(grit_out_dir)',
+ '-s', '<(SHARED_INTERMEDIATE_DIR)',
+ '-x', '<(INTERMEDIATE_DIR)',
+ '<@(pseudo_locales)',
+ ],
+ },
+ {
'action_name': 'repack_resources',
'variables': {
'pak_inputs': [
@@ -497,6 +536,12 @@
],
},
{
+ 'destination': '<(PRODUCT_DIR)/pseudo_locales',
+ 'files': [
+ '<(INTERMEDIATE_DIR)/<(pseudo_locales).pak'
+ ],
+ },
+ {
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/resources',
'files': [],
'conditions': [