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

Unified Diff: chrome/tools/build/repack_locales.py

Issue 351353004: chromeos: Move some network related UI in ui/chromeos/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-build Created 6 years, 5 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
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | chrome/tools/check_grd_for_unused_strings.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/repack_locales.py
diff --git a/chrome/tools/build/repack_locales.py b/chrome/tools/build/repack_locales.py
index 977d14277c3fa0cf9ff12dec56ff5dd3aafca142..9d3ce20db5fa92698d0a8be5de7b560e45ce22eb 100755
--- a/chrome/tools/build/repack_locales.py
+++ b/chrome/tools/build/repack_locales.py
@@ -29,6 +29,9 @@ INT_DIR = None
# The target platform. If it is not defined, sys.platform will be used.
OS = None
+# Note that OS is normally set to 'linux' when building for chromeos.
+CHROMEOS = False
+
USE_ASH = False
ENABLE_AUTOFILL_DIALOG = False
@@ -84,6 +87,10 @@ def calc_inputs(locale):
inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'strings',
'ash_strings_%s.pak' % locale))
+ if CHROMEOS:
+ inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings',
+ 'ui_chromeos_strings_%s.pak' % locale))
+
if OS != 'ios':
#e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak'
inputs.append(os.path.join(SHARE_INT_DIR, 'webkit',
@@ -171,6 +178,7 @@ def DoMain(argv):
global SHARE_INT_DIR
global INT_DIR
global OS
+ global CHROMEOS
global USE_ASH
global WHITELIST
global ENABLE_AUTOFILL_DIALOG
@@ -196,6 +204,8 @@ def DoMain(argv):
help="The target OS. (e.g. mac, linux, win, etc.)")
parser.add_option("--use-ash", action="store", dest="use_ash",
help="Whether to include ash strings")
+ parser.add_option("--chromeos", action="store",
+ help="Whether building for Chrome OS")
parser.add_option("--whitelist", action="store", help="Full path to the "
"whitelist used to filter output pak file resource IDs")
parser.add_option("--enable-autofill-dialog", action="store",
@@ -214,6 +224,7 @@ def DoMain(argv):
BRANDING = options.branding
EXTRA_INPUT_FILES = options.extra_input
OS = options.os
+ CHROMEOS = options.chromeos == '1'
USE_ASH = options.use_ash == '1'
WHITELIST = options.whitelist
ENABLE_AUTOFILL_DIALOG = options.enable_autofill_dialog == '1'
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | chrome/tools/check_grd_for_unused_strings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698