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

Unified Diff: build/java_apk.gypi

Issue 1348893002: Add app-as-shared-library flag in java_apk.gypi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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/android/package_resources_action.gypi ('k') | no next file » | 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 507e0d5786bcd083dbd67cfbdb0abe8607bd0395..992f0cbfb722e190ce78aac4968229667d745563 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -49,6 +49,8 @@
# 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.
+# app_as_shared_library - Make a resource package that can be loaded as shared
+# library.
# 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.
# include_all_resources - Set to 1 to include all resource IDs in all generated
@@ -142,6 +144,7 @@
'link_stamp': '<(intermediate_dir)/link.stamp',
'resource_zip_path': '<(intermediate_dir)/<(_target_name).resources.zip',
'shared_resources%': 0,
+ 'app_as_shared_library%': 0,
'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk',
'final_apk_path_no_extension%': '<(PRODUCT_DIR)/apks/<(apk_name)',
'final_abi_split_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name)-abi-<(android_app_abi).apk',
@@ -793,6 +796,9 @@
['shared_resources == 1', {
'process_resources_options+': ['--shared-resources']
}],
+ ['app_as_shared_library == 1', {
+ 'process_resources_options+': ['--app-as-shared-lib']
+ }],
['R_package != ""', {
'process_resources_options+': ['--custom-package', '<(R_package)']
}],
« no previous file with comments | « build/android/package_resources_action.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698