Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2112)

Unified Diff: chromecast/chromecast_locales.gyp

Issue 467043002: Adds locale strings to Chromecast build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/chromecast_locales.gyp
diff --git a/chromecast/chromecast_locales.gyp b/chromecast/chromecast_locales.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..ebcd4d225a22892c6eb1ca71f2f9a30baa7e01ae
--- /dev/null
+++ b/chromecast/chromecast_locales.gyp
@@ -0,0 +1,69 @@
+# Copyright 2014 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': {
+ 'chromecast_branding%': 'Chromium',
+ 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast_strings',
+ },
+ 'targets': [
+ {
+ 'target_name': 'chromecast_settings',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'chromecast_settings',
+ 'variables': {
+ 'grit_grd_file': 'shell/settings/chromecast_settings.grd',
+ 'grit_resource_ids': 'shell/browser/resources/resource_ids',
+ },
+ 'includes': [ '../build/grit_action.gypi' ],
+ },
+ ],
+ 'includes': [ '../build/grit_target.gypi' ],
+ },
+ {
+ 'target_name': 'chromecast_locales_pak',
+ 'type': 'none',
+ 'dependencies': [
+ 'chromecast_settings',
+ ],
+ 'conditions': [
+ ['chromecast_branding=="Chrome"', {
+ 'dependencies': [
+ 'internal/chromecast_locales.gyp:chromecast_app_strings',
+ ],
+ }],
+ ],
+ 'actions': [
+ {
+ 'action_name': 'repack_locales',
+ 'message': 'Packing locale-specific resources',
+ 'variables': {
+ 'repack_python_cmd': '<(DEPTH)/chromecast/tools/build/chromecast_repack_locales.py',
+ 'repack_output_dir': '<(PRODUCT_DIR)/chromecast_locales',
+ 'repack_locales_cmd': [
+ 'python',
+ '<(repack_python_cmd)'
+ ],
+ },
+ 'inputs': [
+ '<(repack_python_cmd)',
+ '<!@pymod_do_main(chromecast_repack_locales -i -b <(chromecast_branding) -g <(grit_out_dir) -x <(repack_output_dir) <(locales))'
+ ],
+ 'outputs': [
+ '<!@pymod_do_main(chromecast_repack_locales -o -b <(chromecast_branding) -g <(grit_out_dir) -x <(repack_output_dir) <(locales))'
+ ],
+ 'action': [
+ '<@(repack_locales_cmd)',
+ '-b', '<(chromecast_branding)',
+ '-g', '<(grit_out_dir)',
+ '-x', '<(repack_output_dir)/.',
+ '<@(locales)',
+ ],
+ },
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698