summaryrefslogtreecommitdiffstats
path: root/build/java_apk.gypi
diff options
context:
space:
mode:
authoraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-10 16:19:22 +0000
committeraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-10 16:19:22 +0000
commit93c9f9b0eaf8be547b33ba59027c44358f6f845a (patch)
tree7e139bb57e6d20f948a8d9acdd3fd3c327b63524 /build/java_apk.gypi
parent62dbdc4b265f5bd273078d92da4d4b003753e0ff (diff)
downloadchromium_src-93c9f9b0eaf8be547b33ba59027c44358f6f845a.zip
chromium_src-93c9f9b0eaf8be547b33ba59027c44358f6f845a.tar.gz
chromium_src-93c9f9b0eaf8be547b33ba59027c44358f6f845a.tar.bz2
Move the android library loader from content to base
The android library loader has no logical connection with content. Mojo shell, which doesn't depend on content, wants to use it. This CL moves it from content to base. BUG=225101 NOTRY=true Review URL: https://codereview.chromium.org/141223002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/java_apk.gypi')
-rw-r--r--build/java_apk.gypi35
1 files changed, 18 insertions, 17 deletions
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index 036d569..499e29b 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -48,11 +48,11 @@
# strings.xml files, if any.
# library_manifest_paths'- Paths to additional AndroidManifest.xml files from
# libraries.
-# use_content_linker - Enable the content dynamic linker that allows sharing the
+# use_chromium_linker - Enable the content dynamic linker that allows sharing the
# RELRO section of the native libraries between the different processes.
-# enable_content_linker_tests - Enable the content dynamic linker test support
+# 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 content_linker_test_apk target!!
+# runtime. Should only be used by the chromium_linker_test_apk target!!
# never_lint - Set to 1 to not run lint on this target.
{
'variables': {
@@ -81,10 +81,7 @@
'compile_input_paths': [],
'package_input_paths': [],
'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json',
- # TODO(cjhopman): build/ shouldn't refer to content/. The libraryloader and
- # nativelibraries template should be moved out of content/ (to base/?).
- # http://crbug.com/225101
- 'native_libraries_template': '<(DEPTH)/content/public/android/java/templates/NativeLibraries.template',
+ 'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLibraries.template',
'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/',
'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries.java',
'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.stamp',
@@ -126,8 +123,11 @@
'variables': {
'native_lib_target%': '',
'native_lib_version_name%': '',
+ # TODO (aberent) remove use_content_linker once downstream Android has
+ # been switched to use_chromium_linker.
'use_content_linker%': 0,
- 'enable_content_linker_tests%': 0,
+ 'use_chromium_linker%' : 0,
+ 'enable_chromium_linker_tests%': 0,
'is_test_apk%': 0,
},
'conditions': [
@@ -151,7 +151,8 @@
'native_lib_target%': '',
'native_lib_version_name%': '',
'use_content_linker%': 0,
- 'enable_content_linker_tests%': 0,
+ 'use_chromium_linker%' : 0,
+ 'enable_chromium_linker_tests%': 0,
'emma_instrument': '<(emma_instrument)',
'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
@@ -185,9 +186,9 @@
'<(DEPTH)/build/android/setup.gyp:copy_system_libraries',
],
}],
- ['use_content_linker == 1', {
+ ['use_content_linker == 1 or use_chromium_linker == 1', {
'dependencies': [
- '<(DEPTH)/content/content.gyp:content_android_linker',
+ '<(DEPTH)/base/base.gyp:chromium_android_linker',
],
}],
['native_lib_target != ""', {
@@ -217,10 +218,10 @@
{
'variables': {
'conditions': [
- ['use_content_linker == 1', {
+ ['use_content_linker == 1 or use_chromium_linker == 1', {
'variables': {
'linker_input_libraries': [
- '<(SHARED_LIB_DIR)/libcontent_android_linker.>(android_product_extension)',
+ '<(SHARED_LIB_DIR)/libchromium_android_linker.>(android_product_extension)',
],
}
}, {
@@ -261,10 +262,10 @@
'action_name': 'native_libraries_<(_target_name)',
'variables': {
'conditions': [
- ['use_content_linker == 1', {
+ ['use_content_linker == 1 or use_chromium_linker == 1', {
'variables': {
'linker_gcc_preprocess_defines': [
- '--defines', 'ENABLE_CONTENT_LINKER',
+ '--defines', 'ENABLE_CHROMIUM_LINKER',
],
}
}, {
@@ -272,10 +273,10 @@
'linker_gcc_preprocess_defines': [],
},
}],
- ['enable_content_linker_tests == 1', {
+ ['enable_chromium_linker_tests == 1', {
'variables': {
'linker_tests_gcc_preprocess_defines': [
- '--defines', 'ENABLE_CONTENT_LINKER_TESTS',
+ '--defines', 'ENABLE_CHROMIUM_LINKER_TESTS',
],
}
}, {