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

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

Issue 136793004: Only include ash_strings if use_ash==1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed USE_ASH assignment in python Created 6 years, 11 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') | no next file » | 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 a43e17177a8f16037f7a4a8b7e0d41daa9da013a..69ea052082d3abbbc11d941f7fe09c4bdfa1f458 100755
--- a/chrome/tools/build/repack_locales.py
+++ b/chrome/tools/build/repack_locales.py
@@ -29,6 +29,8 @@ INT_DIR = None
# The target platform. If it is not defined, sys.platform will be used.
OS = None
+USE_ASH = False
+
# Extra input files.
EXTRA_INPUT_FILES = []
@@ -74,6 +76,11 @@ def calc_inputs(locale):
inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings',
'component_strings_%s.pak' % locale))
+ if USE_ASH:
+ #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash_strings/ash_strings_da.pak',
+ inputs.append(os.path.join(SHARE_INT_DIR, 'ash_strings',
+ 'ash_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',
@@ -83,10 +90,6 @@ def calc_inputs(locale):
inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings',
'ui_strings_%s.pak' % locale))
- #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash_strings/ash_strings_da.pak',
- inputs.append(os.path.join(SHARE_INT_DIR, 'ash_strings',
- 'ash_strings_%s.pak' % locale))
-
#e.g. '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/
# device_bluetooth_strings_da.pak',
inputs.append(os.path.join(SHARE_INT_DIR, 'device', 'bluetooth', 'strings',
@@ -152,6 +155,7 @@ def DoMain(argv):
global SHARE_INT_DIR
global INT_DIR
global OS
+ global USE_ASH
global EXTRA_INPUT_FILES
parser = optparse.OptionParser("usage: %prog [options] locales")
@@ -172,6 +176,8 @@ def DoMain(argv):
locale suffix and \".pak\" extension.")
parser.add_option("-p", action="store", dest="os",
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")
options, locales = parser.parse_args(argv)
if not locales:
@@ -185,6 +191,7 @@ def DoMain(argv):
BRANDING = options.branding
EXTRA_INPUT_FILES = options.extra_input
OS = options.os
+ USE_ASH = options.use_ash == 1
Nico 2014/01/14 19:14:01 Is this ever true? options are strings, no?
aurimas (slooooooooow) 2014/01/14 19:30:36 Good catch. Fixed.
if not OS:
if sys.platform == 'darwin':
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698