Index: build/java_apk.gypi |
diff --git a/build/java_apk.gypi b/build/java_apk.gypi |
index 036d569a878dd88eafafaaa0f79c462a98ff734e..499e29b29b406ac65bf4e19d20f58b60cdc36d62 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', |
], |
} |
}, { |