Index: chrome/tools/build/repack_locales.py |
diff --git a/chrome/tools/build/repack_locales.py b/chrome/tools/build/repack_locales.py |
index 96f47eb7df93110591e9871636151788020c6862..75a1e0f626a5fb62a3e50928a9861ba9f4534ced 100755 |
--- a/chrome/tools/build/repack_locales.py |
+++ b/chrome/tools/build/repack_locales.py |
@@ -31,6 +31,8 @@ OS = None |
USE_ASH = False |
+WHITELIST = None |
+ |
# Extra input files. |
EXTRA_INPUT_FILES = [] |
@@ -153,7 +155,7 @@ def repack_locales(locales): |
inputs = [] |
inputs += calc_inputs(locale) |
output = calc_output(locale) |
- data_pack.DataPack.RePack(output, inputs) |
+ data_pack.DataPack.RePack(output, inputs, whitelist_file=WHITELIST) |
def DoMain(argv): |
@@ -163,6 +165,7 @@ def DoMain(argv): |
global INT_DIR |
global OS |
global USE_ASH |
+ global WHITELIST |
global EXTRA_INPUT_FILES |
parser = optparse.OptionParser("usage: %prog [options] locales") |
@@ -185,6 +188,9 @@ 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("--whitelist", action="store", dest="whitelist", |
+ default=None, help="Full path to the whitelist used to\ |
+ filter output pak file resource IDs") |
newt (away)
2014/03/31 17:45:14
nit: use implicit line joining instead of \ to co
aurimas (slooooooooow)
2014/03/31 17:54:21
Done.
|
options, locales = parser.parse_args(argv) |
if not locales: |
@@ -199,6 +205,7 @@ def DoMain(argv): |
EXTRA_INPUT_FILES = options.extra_input |
OS = options.os |
USE_ASH = options.use_ash == '1' |
+ WHITELIST = options.whitelist |
if not OS: |
if sys.platform == 'darwin': |