forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chromoting] Include AppRemoting HTML/JS files in the localization ch…
…eck. 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}
- Loading branch information
Showing
6 changed files
with
126 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# 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': { | ||
'ar_shared_resource_files': [ | ||
'webapp/app_remoting/html/ar_dialog.css', | ||
'webapp/app_remoting/html/feedback_consent.css', | ||
'webapp/app_remoting/html/feedback_consent.html', | ||
'webapp/app_remoting/html/context_menu.css', | ||
'resources/drag.webp', | ||
'<@(remoting_webapp_resource_files)', | ||
], | ||
|
||
# Variables for main.html. | ||
# These template files are used to construct the webapp html files. | ||
'ar_main_template': | ||
'<(DEPTH)/remoting/webapp/app_remoting/html/template_lg.html', | ||
'ar_main_template_files': [ | ||
'webapp/base/html/client_plugin.html', | ||
'webapp/base/html/dialog_auth.html', | ||
'webapp/app_remoting/html/context_menu.html', | ||
'webapp/app_remoting/html/idle_dialog.html', | ||
], | ||
'ar_main_js_files': [ | ||
'webapp/app_remoting/js/application_context_menu.js', | ||
'webapp/app_remoting/js/app_remoting.js', | ||
'webapp/app_remoting/js/ar_main.js', | ||
'webapp/app_remoting/js/context_menu_adapter.js', | ||
'webapp/app_remoting/js/context_menu_chrome.js', | ||
'webapp/app_remoting/js/context_menu_dom.js', | ||
'webapp/app_remoting/js/drag_and_drop.js', | ||
'webapp/app_remoting/js/idle_detector.js', | ||
'webapp/app_remoting/js/keyboard_layouts_menu.js', | ||
'webapp/app_remoting/js/loading_window.js', | ||
'webapp/app_remoting/js/submenu_manager.js', | ||
'webapp/app_remoting/js/window_activation_menu.js', | ||
'webapp/base/js/application.js', | ||
'webapp/base/js/auth_dialog.js', | ||
'webapp/base/js/base.js', | ||
'webapp/base/js/message_window_helper.js', | ||
'webapp/base/js/message_window_manager.js', | ||
'<@(remoting_webapp_js_auth_client2host_files)', | ||
'<@(remoting_webapp_js_auth_google_files)', | ||
'<@(remoting_webapp_js_cast_extension_files)', | ||
'<@(remoting_webapp_js_client_files)', | ||
'<@(remoting_webapp_js_core_files)', | ||
'<@(remoting_webapp_js_gnubby_auth_files)', | ||
'<@(remoting_webapp_js_host_files)', | ||
'<@(remoting_webapp_js_logging_files)', | ||
'<@(remoting_webapp_js_signaling_files)', | ||
'<@(remoting_webapp_js_ui_files)', | ||
], | ||
|
||
'ar_background_js_files': [ | ||
'webapp/app_remoting/js/ar_background.js', | ||
'webapp/base/js/platform.js', | ||
], | ||
|
||
'ar_all_js_files': [ | ||
'<@(ar_main_js_files)', | ||
# Referenced from wcs_sandbox.html. | ||
'<@(remoting_webapp_js_wcs_sandbox_files)', | ||
# Referenced from the manifest. | ||
'<@(ar_background_js_files)', | ||
# Referenced from feedback_consent.html. | ||
'webapp/app_remoting/js/feedback_consent.js', | ||
# Referenced from message_window.html. | ||
'webapp/base/js/message_window.js', | ||
], | ||
|
||
# Files that contain localizable strings. | ||
'app_remoting_webapp_localizable_files': [ | ||
'<(ar_main_template)', | ||
'<@(ar_main_template_files)', | ||
'webapp/app_remoting/html/feedback_consent.html', | ||
'<@(ar_all_js_files)', | ||
], | ||
|
||
}, # end of variables | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters