summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.gyp
diff options
context:
space:
mode:
authorofri@google.com <ofri@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 00:01:41 +0000
committerofri@google.com <ofri@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 00:01:41 +0000
commitefa78ee597c14a4525e732f5813ed92ef32e84b2 (patch)
tree7ca702e21cc8147ba1e3279acf8db22ce8d44e7d /chrome/chrome.gyp
parent8c6a5817ff95394bc8549b77876ab879e1f527f3 (diff)
downloadchromium_src-efa78ee597c14a4525e732f5813ed92ef32e84b2.zip
chromium_src-efa78ee597c14a4525e732f5813ed92ef32e84b2.tar.gz
chromium_src-efa78ee597c14a4525e732f5813ed92ef32e84b2.tar.bz2
Generate pseudo locales on Linux
BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7694031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r--chrome/chrome.gyp33
1 files changed, 33 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index a027d2b..42540b1 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -1713,6 +1713,33 @@
'<@(locales)',
],
},
+ {
+ '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))'
+ ],
+ 'outputs': [
+ '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(pseudo_locales))'
+ ],
+ 'action': [
+ '<@(repack_locales_cmd)',
+ '<@(branding_flag)',
+ '-g', '<(grit_out_dir)',
+ '-s', '<(SHARED_INTERMEDIATE_DIR)',
+ '-x', '<(INTERMEDIATE_DIR)',
+ '<@(pseudo_locales)',
+ ],
+ },
],
# We'll install the resource files to the product directory.
'copies': [
@@ -1723,6 +1750,12 @@
],
},
{
+ 'destination': '<(PRODUCT_DIR)/pseudo_locales',
+ 'files': [
+ '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(pseudo_locales))'
+ ],
+ },
+ {
'destination': '<(PRODUCT_DIR)',
'files': [
'<(INTERMEDIATE_DIR)/repack/chrome.pak'