diff options
author | cjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-05 19:55:07 +0000 |
---|---|---|
committer | cjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-05 19:55:07 +0000 |
commit | df40c2d975341751b4f17e2f94e1368b3751e62b (patch) | |
tree | 79ce2192a5e002887331c93e0c43d7abb552ad9d /build/java_apk.gypi | |
parent | 659dbe9bfc34ef620b0c9be3ece9fd14a0cc0b75 (diff) | |
download | chromium_src-df40c2d975341751b4f17e2f94e1368b3751e62b.zip chromium_src-df40c2d975341751b4f17e2f94e1368b3751e62b.tar.gz chromium_src-df40c2d975341751b4f17e2f94e1368b3751e62b.tar.bz2 |
Package correct libraries in apk
With gyp_managed_install no shared libraries should be packaged in the
APK (except gdbserver).
When toggling gyp_managed_install, there may be left over libraries in
<(intermediate_dir)/libs. APK packaging should use a different
directory when doing a managed install, so that it does not include the
library from a non-gyp_managed_install build.
BUG=158821
Review URL: https://chromiumcodereview.appspot.com/13651003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192617 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/java_apk.gypi')
-rw-r--r-- | build/java_apk.gypi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build/java_apk.gypi b/build/java_apk.gypi index 33acb34..f200b16 100644 --- a/build/java_apk.gypi +++ b/build/java_apk.gypi @@ -102,6 +102,7 @@ 'codegen_input_paths': [], 'final_apk_path': '<(PRODUCT_DIR)/apks/<(apk_name).apk', 'apk_install_stamp': '<(intermediate_dir)/apk_install.stamp', + 'apk_package_native_libs_dir': '<(intermediate_dir)/libs', }, # Pass the jar path to the apk's "fake" jar target. This would be better as # direct_dependent_settings, but a variable set by a direct_dependent_settings @@ -219,7 +220,8 @@ 'conditions': [ ['gyp_managed_install == 1', { 'variables': { - 'apk_libraries_dir': '<(intermediate_dir)/lib.stripped/', + 'apk_libraries_dir': '<(intermediate_dir)/lib.stripped/<(android_app_abi)', + 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed', 'device_library_dir': '/data/local/tmp/chromium/lib.stripped/<(_target_name)', }, 'dependencies': [ @@ -270,7 +272,7 @@ }, { # gyp_managed_install != 1 'variables': { - 'apk_libraries_dir': '<(intermediate_dir)/libs/<(android_app_abi)', + 'apk_libraries_dir': '<(apk_package_native_libs_dir)/<(android_app_abi)', 'package_input_paths': [ '<(strip_stamp)' ], }, }], @@ -555,6 +557,7 @@ '-DASSET_DIR=<(asset_location)', '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', '-DKEYSTORE_PATH=<(DEPTH)/build/android/ant/chromium-debug.keystore', + '-DNATIVE_LIBS_DIR=<(apk_package_native_libs_dir)', '-DOUT_DIR=<(intermediate_dir)', '-DRESOURCE_DIR=<(resource_dir)', '-DSOURCE_DIR=<(java_in_dir)/src', |