Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1270)

Unified Diff: build/java_apk.gypi

Issue 708883003: Add support for shared library resources to java_apk build rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/android/rules.gni ('k') | third_party/android_webview_glue/android_webview_glue_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_apk.gypi
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index 18e6ccfe7b85b2c3c48ebd30c0cf4220f008c961..518421886dcead14c8b90eee60440fc2d2b0b523 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -44,6 +44,8 @@
# shared library to be included in this apk. A stripped copy of the
# library will be included in the apk.
# resource_dir - The directory for resources.
+# shared_resources - Make a resource package that can be loaded by a different
+# application at runtime to access the package's resources.
# R_package - A custom Java package to generate the resource file R.java in.
# By default, the package given in AndroidManifest.xml will be used.
# use_chromium_linker - Enable the content dynamic linker that allows sharing the
@@ -126,6 +128,7 @@
'resource_zip_path': '<(intermediate_dir)/<(_target_name).resources.zip',
'resource_packaged_apk_name': '<(apk_name)-resources.ap_',
'resource_packaged_apk_path': '<(intermediate_dir)/<(resource_packaged_apk_name)',
+ 'shared_resources%': 0,
'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk',
'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk',
'incomplete_apk_path': '<(intermediate_dir)/<(apk_name)-incomplete.apk',
@@ -575,7 +578,10 @@
'additional_res_packages=': [],
}],
['res_v14_verify_only == 1', {
- 'process_resources_options': ['--v14-verify-only']
+ 'process_resources_options+': ['--v14-verify-only']
+ }],
+ ['shared_resources == 1', {
+ 'process_resources_options+': ['--shared-resources']
}],
],
},
« no previous file with comments | « build/config/android/rules.gni ('k') | third_party/android_webview_glue/android_webview_glue_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698