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

Unified Diff: build/java_apk.gypi

Issue 334413006: Add support for uncompress library in APK to the build system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« build/android/gyp/finalize_apk.py ('K') | « build/android/gyp/finalize_apk.py ('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 92c8cfa0b5e29bb8a70644562bc4182a721e1c59..74df7cf072bdf7f007941a1e40d6d962da6ee71a 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.
+# use_library_in_zip_file - When using the dynamic linker, load the library
rmcilroy 2014/06/19 09:46:12 nit - load_library_from_zip_file
Anton 2014/06/19 13:39:45 Done.
+# 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,
+ 'use_library_in_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,
+ 'use_library_in_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)',
@@ -265,6 +269,17 @@
'action_name': 'native_libraries_<(_target_name)',
'variables': {
'conditions': [
+ ['use_chromium_linker == 1 and use_library_in_zip_file == 1', {
+ 'variables': {
+ 'linker_gcc_preprocess_defines': [
+ '--defines', 'ENABLE_CHROMIUM_LINKER_LIBRARY_IN_ZIP_FILE',
rmcilroy 2014/06/19 09:46:12 Does this work? I would have though the linker_gc
Anton 2014/06/19 13:39:45 What you are suggesting does not work. The tool do
+ ],
+ }
+ }, {
+ 'variables': {
+ 'linker_gcc_preprocess_defines': [],
+ },
+ }],
['use_chromium_linker == 1', {
'variables': {
'linker_gcc_preprocess_defines': [
@@ -407,6 +422,9 @@
'includes': [ 'android/finalize_apk_action.gypi']
},
],
+ 'dependencies': [
+ '<(DEPTH)/build/android/rezip.gyp:rezip#host',
+ ],
}],
['gyp_managed_install == 1', {
'actions': [
@@ -439,6 +457,9 @@
],
},
],
+ 'dependencies': [
+ '<(DEPTH)/build/android/rezip.gyp:rezip#host',
+ ],
}],
['is_test_apk == 1', {
'dependencies': [
« build/android/gyp/finalize_apk.py ('K') | « build/android/gyp/finalize_apk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698