diff options
author | garykac <garykac@chromium.org> | 2015-01-27 08:21:01 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-27 16:21:48 +0000 |
commit | 9ab9df492a3b66d4b509edf528ae8a3776f8f081 (patch) | |
tree | 4704c78d8367e0658b4d1cb9275e3a6f5a6e96a1 /remoting/remoting_locales.gypi | |
parent | d394b56ede9cb55021c470e54df830db940c271a (diff) | |
download | chromium_src-9ab9df492a3b66d4b509edf528ae8a3776f8f081.zip chromium_src-9ab9df492a3b66d4b509edf528ae8a3776f8f081.tar.gz chromium_src-9ab9df492a3b66d4b509edf528ae8a3776f8f081.tar.bz2 |
[Chromoting] Include AppRemoting HTML/JS files in the localization check.
Move duplicate locale-related gyp vars into a separate .gypi.
Add gyp vars that contain the set of localizable html/js files.
Remove remoting_host_locale_files since it is not used anywhere.
BUG=
Review URL: https://codereview.chromium.org/875083004
Cr-Commit-Position: refs/heads/master@{#313284}
Diffstat (limited to 'remoting/remoting_locales.gypi')
-rw-r--r-- | remoting/remoting_locales.gypi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/remoting/remoting_locales.gypi b/remoting/remoting_locales.gypi new file mode 100644 index 0000000..28c84f3 --- /dev/null +++ b/remoting/remoting_locales.gypi @@ -0,0 +1,26 @@ +# Copyright 2015 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. + +{ + 'variables': { + 'remoting_localize_path': 'tools/build/remoting_localize.py', + + 'webapp_locale_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/webapp/_locales', + + 'remoting_locales': [ + # Note: list duplicated in GN build. See //remoting/resources/BUILD.gn + 'ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es', + 'es-419', 'et', 'fi', 'fil', 'fr', 'he', 'hi', 'hr', 'hu', 'id', + 'it', 'ja', 'ko', 'lt', 'lv', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', + 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'th', 'tr', 'uk', 'vi', + 'zh-CN', 'zh-TW', + ], + 'remoting_webapp_locale_files': [ + # Build the list of .json files generated from remoting_strings.grd. + '<!@pymod_do_main(remoting_localize --locale_output ' + '"<(webapp_locale_dir)/@{json_suffix}/messages.json" ' + '--print_only <(remoting_locales))', + ], + }, # variables +} |