Index: build/java_apk.gypi |
diff --git a/build/java_apk.gypi b/build/java_apk.gypi |
index 518421886dcead14c8b90eee60440fc2d2b0b523..424355433d5bb42c7535bd07d4a7fc3749f82df9 100644 |
--- a/build/java_apk.gypi |
+++ b/build/java_apk.gypi |
@@ -831,10 +831,16 @@ |
'action_name': 'package_resources', |
'message': 'packaging resources for <(_target_name)', |
'variables': { |
+ 'package_resources_options': [], |
'package_resource_zip_input_paths': [ |
'<(resource_zip_path)', |
'>@(dependencies_res_zip_paths)', |
], |
+ 'conditions': [ |
+ ['shared_resources == 1', { |
+ 'package_resources_options+': ['--shared-resources'] |
+ }], |
+ ], |
}, |
'conditions': [ |
['is_test_apk == 1', { |
@@ -874,6 +880,8 @@ |
'--no-compress', '<(extensions_to_not_compress)', |
'--apk-path', '<(resource_packaged_apk_path)', |
+ |
+ '<@(package_resources_options)', |
], |
}, |
{ |