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

Unified Diff: grit_info.py

Issue 23102022: Changes grit_info.py to respect target_platform when generating output lists. (Closed) Base URL: https://grit-i18n.googlecode.com/svn/trunk
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit_info.py
diff --git a/grit_info.py b/grit_info.py
index 9449c48c4ebf4c71c61636fe150b94057a1f6e61..c9ccfd1243c1adae6d5c9d0b1ccf9a2dc41a5bb8 100755
--- a/grit_info.py
+++ b/grit_info.py
@@ -18,10 +18,10 @@ class WrongNumberOfArguments(Exception):
pass
-def Outputs(filename, defines, ids_file):
+def Outputs(filename, defines, ids_file, target_platform):
grd = grd_reader.Parse(
filename, defines=defines, tags_to_ignore=set(['messages']),
- first_ids_file=ids_file)
+ first_ids_file=ids_file, target_platform=target_platform)
target = []
lang_folders = {}
@@ -155,7 +155,8 @@ def DoMain(argv):
prefix, filename = args
outputs = [posixpath.join(prefix, f)
- for f in Outputs(filename, defines, options.ids_file)]
+ for f in Outputs(filename, defines,
+ options.ids_file, options.target_platform)]
return '\n'.join(outputs)
else:
raise WrongNumberOfArguments("Expected --inputs or --outputs.")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698