Index: build/android/gyp/process_resources.py |
diff --git a/build/android/gyp/process_resources.py b/build/android/gyp/process_resources.py |
index f368d0d6c6009f3fee4a99ee2bb0696c50706ec4..0fe02dfa84877a41a354526da0eaf635ecf3774b 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) |