summaryrefslogtreecommitdiffstats
path: root/build/java_apk.gypi
diff options
context:
space:
mode:
authoranton@chromium.org <anton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 16:59:46 +0000
committeranton@chromium.org <anton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 16:59:46 +0000
commit4e4e7ca42413d2f156241df679e52096a318341d (patch)
tree8ff2a02c525ec4577ae42b2ee8ab283d278690ef /build/java_apk.gypi
parentd4f1f47520bebb06f1f55b8256d3a983a9773105 (diff)
downloadchromium_src-4e4e7ca42413d2f156241df679e52096a318341d.zip
chromium_src-4e4e7ca42413d2f156241df679e52096a318341d.tar.gz
chromium_src-4e4e7ca42413d2f156241df679e52096a318341d.tar.bz2
Add support for uncompress library in APK to the build system
BUG= Review URL: https://codereview.chromium.org/334413006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/java_apk.gypi')
-rw-r--r--build/java_apk.gypi22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index 5f3653d..1cb7ebc 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -46,6 +46,8 @@
# By default, the package given in AndroidManifest.xml will be used.
# use_chromium_linker - Enable the content dynamic linker that allows sharing the
# RELRO section of the native libraries between the different processes.
+# load_library_from_zip_file - When using the dynamic linker, load the library
+# directly out of the zip file.
# enable_chromium_linker_tests - Enable the content dynamic linker test support
# code. This allows a test APK to inject a Linker.TestRunner instance at
# runtime. Should only be used by the chromium_linker_test_apk target!!
@@ -124,6 +126,7 @@
'native_lib_target%': '',
'native_lib_version_name%': '',
'use_chromium_linker%' : 0,
+ 'load_library_from_zip_file%' : 0,
'enable_chromium_linker_tests%': 0,
'is_test_apk%': 0,
},
@@ -149,6 +152,7 @@
'native_lib_version_name%': '',
'use_chromium_linker%' : 0,
'enable_chromium_linker_tests%': 0,
+ 'load_library_from_zip_file%' : 0,
'emma_instrument%': '<(emma_instrument)',
'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
@@ -275,6 +279,17 @@
'linker_gcc_preprocess_defines': [],
},
}],
+ ['load_library_from_zip_file == 1', {
+ 'variables': {
+ 'linker_load_from_zip_file_preprocess_defines': [
+ '--defines', 'ENABLE_CHROMIUM_LINKER_LIBRARY_IN_ZIP_FILE',
+ ],
+ }
+ }, {
+ 'variables': {
+ 'linker_load_from_zip_file_preprocess_defines': [],
+ },
+ }],
['enable_chromium_linker_tests == 1', {
'variables': {
'linker_tests_gcc_preprocess_defines': [
@@ -288,6 +303,7 @@
}],
],
'gcc_preprocess_defines': [
+ '<@(linker_load_from_zip_file_preprocess_defines)',
'<@(linker_gcc_preprocess_defines)',
'<@(linker_tests_gcc_preprocess_defines)',
],
@@ -406,6 +422,9 @@
'includes': [ 'android/finalize_apk_action.gypi']
},
],
+ 'dependencies': [
+ '<(DEPTH)/build/android/rezip.gyp:rezip#host',
+ ],
}],
['gyp_managed_install == 1', {
'actions': [
@@ -438,6 +457,9 @@
],
},
],
+ 'dependencies': [
+ '<(DEPTH)/build/android/rezip.gyp:rezip#host',
+ ],
}],
['is_test_apk == 1', {
'dependencies': [