summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_webapp.gypi
diff options
context:
space:
mode:
authorgarykac <garykac@chromium.org>2015-02-05 19:44:35 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-06 03:46:14 +0000
commit87430f2e66bd1e83d0a5c5ed2192b40717d5e0de (patch)
tree712fb7a3ddf71401187b5870ab05a7d5f5b65b62 /remoting/remoting_webapp.gypi
parent7602e721b8718fd828ee8286bfed941f17fc695d (diff)
downloadchromium_src-87430f2e66bd1e83d0a5c5ed2192b40717d5e0de.zip
chromium_src-87430f2e66bd1e83d0a5c5ed2192b40717d5e0de.tar.gz
chromium_src-87430f2e66bd1e83d0a5c5ed2192b40717d5e0de.tar.bz2
[Chromoting] Pass list of locale files into build-webapp in a single file.
Previously each locale filename was passed separately on the command line. This causes problems on Windows because of the 8K command line limit. A follow-up cl will move the webapp filenames into separate files to reduce the liklihood that we'll encounter this limit in the future. BUG= Review URL: https://codereview.chromium.org/905553002 Cr-Commit-Position: refs/heads/master@{#314966}
Diffstat (limited to 'remoting/remoting_webapp.gypi')
-rw-r--r--remoting/remoting_webapp.gypi22
1 files changed, 21 insertions, 1 deletions
diff --git a/remoting/remoting_webapp.gypi b/remoting/remoting_webapp.gypi
index 0ad3fe6..2c767fd 100644
--- a/remoting/remoting_webapp.gypi
+++ b/remoting/remoting_webapp.gypi
@@ -13,6 +13,7 @@
'<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
'<(SHARED_INTERMEDIATE_DIR)/background.html',
],
+ 'dr_webapp_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)_locales.txt',
},
'dependencies': [
'remoting_resources',
@@ -47,12 +48,30 @@
],
'actions': [
{
+ 'action_name': 'Build Remoting locales listfile',
+ 'inputs': [
+ '<(remoting_localize_path)',
+ ],
+ 'outputs': [
+ '<(dr_webapp_locales_listfile)',
+ ],
+ 'action': [
+ 'python', '<(remoting_localize_path)',
+ '--locale_output',
+ '"<(webapp_locale_dir)/@{json_suffix}/messages.json"',
+ '--locales_listfile',
+ '<(dr_webapp_locales_listfile)',
+ '<@(remoting_locales)',
+ ],
+ },
+ {
'action_name': 'Build Remoting WebApp',
'inputs': [
'webapp/build-webapp.py',
'webapp/crd/manifest.json.jinja2',
'<(chrome_version_path)',
'<(remoting_version_path)',
+ '<(dr_webapp_locales_listfile)',
'<@(generated_html_files)',
'<@(remoting_webapp_crd_files)',
'<@(remoting_webapp_locale_files)',
@@ -73,7 +92,8 @@
'<@(generated_html_files)',
'<@(remoting_webapp_crd_files)',
'<@(extra_files)',
- '--locales', '<@(remoting_webapp_locale_files)',
+ '--locales_listfile',
+ '<(dr_webapp_locales_listfile)',
],
},
],