Chromium Code Reviews| Index: build/java_apk.gypi |
| diff --git a/build/java_apk.gypi b/build/java_apk.gypi |
| index 5db4fa9baf9f21d35527a35842fd0a3b74f12dc7..8aaefd8aa36fe0c2d8a044fcb3302ab067738957 100644 |
| --- a/build/java_apk.gypi |
| +++ b/build/java_apk.gypi |
| @@ -107,9 +107,18 @@ |
| 'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk', |
| 'source_dir': '<(java_in_dir)/src', |
| 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp', |
| - 'apk_package_native_libs_dir': '<(intermediate_dir)/libs', |
| 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh', |
| 'symlink_script_device_path': '/data/local/tmp/chromium/<(_target_name)/create_symlinks.sh', |
| + 'variables': { |
| + 'conditions': [ |
| + ['gyp_managed_install == 1', { |
| + 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed', |
| + }, { |
| + 'apk_package_native_libs_dir': '<(intermediate_dir)/libs', |
| + }], |
| + ], |
| + }, |
| + 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', |
| }, |
| # 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 |
| @@ -143,8 +152,24 @@ |
| '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)'], |
| + 'native_libs_paths': [ |
| + '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)' |
| + ], |
| + 'package_input_paths': [ |
| + '<(apk_package_native_libs_dir)/<(android_app_abi)/gdbserver', |
| + ], |
| }, |
| + 'copies': [ |
| + { |
| + # gdbserver is always copied into the APK's native libs dir. The ant |
| + # build scripts (apkbuilder task) will only include it in a debug |
| + # build. |
| + 'destination': '<(apk_package_native_libs_dir)/<(android_app_abi)', |
| + 'files': [ |
| + '<(android_gdbserver)', |
|
shashi
2013/04/23 19:02:48
How does the apkbuilder task know to only include
Yaron
2013/04/23 20:27:58
Same q. From your CLs I take it it's governed by t
|
| + ], |
| + }, |
| + ], |
| 'actions': [ |
| { |
| 'variables': { |
| @@ -202,7 +227,6 @@ |
| ['gyp_managed_install == 1', { |
| 'variables': { |
| 'libraries_source_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': [ |