Index: build/android/gyp/process_resources.py |
diff --git a/build/android/gyp/process_resources.py b/build/android/gyp/process_resources.py |
index 6bf71f35f9445c31dc3158149ec150891bbe6228..45b0947f5b43b7b9a2950a9cb1f20e8e063da2bd 100755 |
--- a/build/android/gyp/process_resources.py |
+++ b/build/android/gyp/process_resources.py |
@@ -38,6 +38,11 @@ def ParseArgs(args): |
parser.add_option('--android-manifest', help='AndroidManifest.xml path') |
parser.add_option('--custom-package', help='Java package for R.java') |
+ parser.add_option( |
+ '--shared-resources', |
+ action='store_true', |
+ help='Make a resource package that can be loaded by a different' |
+ 'application at runtime to access the package\'s resources.') |
parser.add_option('--resource-dirs', |
help='Directories containing resources of this target.') |
@@ -236,6 +241,8 @@ def main(): |
package_command += ['--custom-package', options.custom_package] |
if options.proguard_file: |
package_command += ['-G', options.proguard_file] |
+ if options.shared_resources: |
+ package_command.append('--shared-lib') |
build_utils.CheckOutput(package_command, print_stderr=False) |
if options.extra_res_packages: |