Index: build/android/gyp/write_build_config.py |
diff --git a/build/android/gyp/write_build_config.py b/build/android/gyp/write_build_config.py |
index 7213240fe79a14702978245d06e4172321b1c430..e0b727b14badf14f147ce5d43146b9ec19854b2c 100755 |
--- a/build/android/gyp/write_build_config.py |
+++ b/build/android/gyp/write_build_config.py |
@@ -376,6 +376,11 @@ def main(argv): |
config['javac']['srcjars'] = [ |
c['srcjar'] for c in direct_resources_deps if 'srcjar' in c] |
+ # Used to strip out R.class for android_prebuilt()s. |
+ if options.type == 'java_library': |
+ config['javac']['resource_packages'] = [ |
+ c['package_name'] for c in all_resources_deps if 'package_name' in c] |
+ |
if options.type == 'android_apk': |
# Apks will get their resources srcjar explicitly passed to the java step. |
config['javac']['srcjars'] = [] |