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..b6aae4bea2708f7da34bdca943380ca59a44d77d 100755 |
--- a/build/android/gyp/process_resources.py |
+++ b/build/android/gyp/process_resources.py |
@@ -38,6 +38,10 @@ 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='Generate shared library resources compatible R.java files.') |
cjhopman
2014/11/06 21:45:56
I would try to word the places where you say "shar
mkosiba (inactive)
2014/11/06 22:11:37
I can take the docs from aapt:
Make a resource pa
|
parser.add_option('--resource-dirs', |
help='Directories containing resources of this target.') |
@@ -236,6 +240,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') |
cjhopman
2014/11/06 21:45:56
s/shared-lib/shared-resources
mkosiba (inactive)
2014/11/06 22:11:37
sorry, that's the name of the argument that aapt t
|
build_utils.CheckOutput(package_command, print_stderr=False) |
if options.extra_res_packages: |