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

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

Issue 216233012: Add whitelist support for grit repack steps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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_repack_locales.gypi ('k') | tools/resources/find_used_resources.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 96f47eb7df93110591e9871636151788020c6862..6dbcef54a307807cb722c764a20be13cec4cbfd1 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,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("--whitelist", action="store", help="Full path to the "
+ "whitelist used to filter output pak file resource IDs")
options, locales = parser.parse_args(argv)
if not locales:
@@ -199,6 +204,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':
« no previous file with comments | « chrome/chrome_repack_locales.gypi ('k') | tools/resources/find_used_resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698