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

Unified Diff: build/android/gyp/process_resources.py

Issue 379333003: Add beginnings of android_apk and unittest_apk templates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-filearg
Patch Set: 80-column lines Created 6 years, 5 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
Index: build/android/gyp/process_resources.py
diff --git a/build/android/gyp/process_resources.py b/build/android/gyp/process_resources.py
index df3c8e7659d4359239b3770d953021ceb3eb1a2a..68fd3fff3ab3bf72c336258b81afcccddbb6e469 100755
--- a/build/android/gyp/process_resources.py
+++ b/build/android/gyp/process_resources.py
@@ -70,6 +70,11 @@ def ParseArgs(args):
'list of resources to be included in the R.java file in the format '
'generated by aapt')
+ parser.add_option(
+ '--all-resources-zip-out',
+ help='Path for output of all resources. This includes resources in '
+ 'dependencies.')
+
parser.add_option('--stamp', help='File to touch on success')
(options, args) = parser.parse_args(args)
@@ -242,6 +247,10 @@ def main():
ZipResources(zip_resource_dirs, options.resource_zip_out)
+ if options.all_resources_zip_out:
+ ZipResources(
+ zip_resource_dirs + dep_subdirs, options.all_resources_zip_out)
+
if options.R_dir:
build_utils.DeleteDirectory(options.R_dir)
shutil.copytree(gen_dir, options.R_dir)

Powered by Google App Engine
This is Rietveld 408576698