Changes grit_info.py to respect target_platform when generating output lists.

Patch from issue 22923027, by rohitrao@chromium.org

Review URL: https://codereview.chromium.org/23102022

git-svn-id: http://grit-i18n.googlecode.com/svn/trunk@134 7262f16d-afe8-6277-6482-052fa10e57b1
diff --git a/grit_info.py b/grit_info.py
index 9449c48..c9ccfd1 100755
--- a/grit_info.py
+++ b/grit_info.py
@@ -18,10 +18,10 @@
   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 @@
 
     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.")