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

Unified Diff: build/java_apk.gypi

Issue 13549002: [Android] "Namespace" shared libraries for the component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/common.gypi ('k') | chrome/chrome_android.gypi » ('j') | 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 360b107409e4a0609e406fc56b5619edcacd66c5..ad88d9b95590c8469cfe8636e816a139c5ece5f7 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -38,9 +38,9 @@
# should be filled automatically by depending on the appropriate targets.
# is_test_apk - Set to 1 if building a test apk. This prevents resources from
# dependencies from being re-included.
-# native_libs_paths - The path to any native library to be included in this
-# target. This should be a path in <(SHARED_LIB_DIR). A stripped copy of
-# the library will be included in the apk.
+# native_lib_target - The target_name of the target which generates the final
+# shared library to be included in this apk. A stripped copy of the
+# library will be included in the apk.
# resource_dir - The directory for resources.
# 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.
@@ -60,7 +60,7 @@
'app_manifest_version_code%': '<(android_app_version_code)',
'proguard_enabled%': 'false',
'proguard_flags_paths%': ['<(DEPTH)/build/android/empty_proguard.flags'],
- 'native_libs_paths': [],
+ 'native_lib_target%': '',
'jar_name': 'chromium_apk_<(_target_name).jar',
'resource_dir%':'<(DEPTH)/build/android/ant/empty/res',
'R_package%':'',
@@ -126,15 +126,16 @@
'additional_R_text_files': ['<(PRODUCT_DIR)/<(package_name)/R.txt'],
},
}],
- ['native_libs_paths != [] and component == "shared_library"', {
+ ['native_lib_target != "" and component == "shared_library"', {
'dependencies': [
'<(DEPTH)/build/android/setup.gyp:copy_system_libraries',
]
}],
- ['native_libs_paths != []', {
+ ['native_lib_target != ""', {
'variables': {
'compile_input_paths': [ '<(native_libraries_java_stamp)' ],
'generated_src_dirs': [ '<(native_libraries_java_dir)' ],
+ 'native_libs_paths': ['<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)'],
},
'actions': [
{
@@ -271,7 +272,7 @@
},
}],
],
- }], # native_libs_paths != []
+ }], # native_lib_target != ''
['java_strings_grd != ""', {
'variables': {
'res_grit_dir': '<(SHARED_INTERMEDIATE_DIR)/<(package_name)_apk/res_grit',
« no previous file with comments | « build/common.gypi ('k') | chrome/chrome_android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698