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

Unified Diff: build/android/process_resources.py

Issue 12259017: Maintain Android strings in grd files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | build/java.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/process_resources.py
diff --git a/build/android/process_resources.py b/build/android/process_resources.py
index b0a04af22869c5588f512a9667d7844da5dfb09f..afdbdce20b7781406f9f204a377db6886a4db5e0 100755
--- a/build/android/process_resources.py
+++ b/build/android/process_resources.py
@@ -27,7 +27,7 @@ def ParseArgs():
parser.add_option('--R-package', help='Java package for generated R.java')
parser.add_option('--R-dir', help='directory to hold generated R.java')
parser.add_option('--res-dir', help='directory containing resources')
- parser.add_option('--crunched-res-dir',
+ parser.add_option('--out-res-dir',
help='directory to hold crunched resources')
(options, args) = parser.parse_args()
@@ -36,7 +36,7 @@ def ParseArgs():
# Check that required options have been provided.
required_options = ('android_sdk', 'android_sdk_tools', 'R_package',
- 'R_dir', 'res_dir', 'crunched_res_dir')
+ 'R_dir', 'res_dir', 'out_res_dir')
for option_name in required_options:
if getattr(options, option_name) is None:
parser.error('--%s is required' % option_name.replace('_', '-'))
@@ -62,6 +62,8 @@ def main():
'--custom-package', options.R_package,
'-M', dummy_manifest,
'-S', options.res_dir,
+ '-S', options.out_res_dir,
+ '--auto-add-overlay',
cjhopman 2013/02/19 22:57:15 what's --auto-add-overlay?
newt (away) 2013/02/20 01:19:36 According to aapt: "Automatically add resources th
'-I', android_jar,
'--output-text-symbols', options.R_dir,
'-J', options.R_dir])
@@ -71,7 +73,7 @@ def main():
subprocess.check_call([aapt,
'crunch',
'-S', options.res_dir,
- '-C', options.crunched_res_dir])
+ '-C', options.out_res_dir])
if __name__ == '__main__':
« no previous file with comments | « no previous file | build/java.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698