| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/config/zip.gni") | 7 import("//build/config/zip.gni") |
| 8 import("//third_party/ijar/ijar.gni") | 8 import("//third_party/ijar/ijar.gni") |
| 9 | 9 |
| 10 assert(is_android) | 10 assert(is_android) |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 if (invoker.native_libs != []) { | 763 if (invoker.native_libs != []) { |
| 764 _rebased_native_libs = rebase_path(invoker.native_libs, root_build_dir) | 764 _rebased_native_libs = rebase_path(invoker.native_libs, root_build_dir) |
| 765 args += [ "--native-libs=$_rebased_native_libs" ] | 765 args += [ "--native-libs=$_rebased_native_libs" ] |
| 766 } | 766 } |
| 767 if (defined(invoker.native_libs_filearg)) { | 767 if (defined(invoker.native_libs_filearg)) { |
| 768 args += [ "--native-libs=${invoker.native_libs_filearg}" ] | 768 args += [ "--native-libs=${invoker.native_libs_filearg}" ] |
| 769 } | 769 } |
| 770 if (_native_lib_placeholders != []) { | 770 if (_native_lib_placeholders != []) { |
| 771 args += [ "--native-lib-placeholders=$_native_lib_placeholders" ] | 771 args += [ "--native-lib-placeholders=$_native_lib_placeholders" ] |
| 772 } | 772 } |
| 773 if (defined(invoker.secondary_native_libs) && |
| 774 invoker.secondary_native_libs != []) { |
| 775 assert(defined(android_app_secondary_abi)) |
| 776 inputs += invoker.secondary_native_libs |
| 777 _secondary_native_libs = rebase_path(invoker.secondary_native_libs) |
| 778 args += [ |
| 779 "--secondary-native-libs=$_secondary_native_libs", |
| 780 "--secondary-android-abi=$android_app_secondary_abi", |
| 781 ] |
| 782 } |
| 773 | 783 |
| 774 if (defined(invoker.emma_instrument) && invoker.emma_instrument) { | 784 if (defined(invoker.emma_instrument) && invoker.emma_instrument) { |
| 775 _emma_device_jar = "$android_sdk_root/tools/lib/emma_device.jar" | 785 _emma_device_jar = "$android_sdk_root/tools/lib/emma_device.jar" |
| 776 _rebased_emma_device_jar = rebase_path(_emma_device_jar, root_build_dir) | 786 _rebased_emma_device_jar = rebase_path(_emma_device_jar, root_build_dir) |
| 777 args += [ "--emma-device-jar=$_rebased_emma_device_jar" ] | 787 args += [ "--emma-device-jar=$_rebased_emma_device_jar" ] |
| 778 } | 788 } |
| 779 | 789 |
| 780 if (defined(invoker.uncompress_shared_libraries) && | 790 if (defined(invoker.uncompress_shared_libraries) && |
| 781 invoker.uncompress_shared_libraries) { | 791 invoker.uncompress_shared_libraries) { |
| 782 args += [ "--uncompress-shared-libraries" ] | 792 args += [ "--uncompress-shared-libraries" ] |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 } | 1089 } |
| 1080 | 1090 |
| 1081 package_target = "${target_name}__package" | 1091 package_target = "${target_name}__package" |
| 1082 package_apk(package_target) { | 1092 package_apk(package_target) { |
| 1083 forward_variables_from(invoker, | 1093 forward_variables_from(invoker, |
| 1084 [ | 1094 [ |
| 1085 "assets_build_config", | 1095 "assets_build_config", |
| 1086 "emma_instrument", | 1096 "emma_instrument", |
| 1087 "native_lib_placeholders", | 1097 "native_lib_placeholders", |
| 1088 "native_libs_filearg", | 1098 "native_libs_filearg", |
| 1099 "secondary_native_libs", |
| 1089 "uncompress_shared_libraries", | 1100 "uncompress_shared_libraries", |
| 1090 "write_asset_list", | 1101 "write_asset_list", |
| 1091 ]) | 1102 ]) |
| 1092 deps = _deps + [ ":${_package_resources_target_name}" ] | 1103 deps = _deps + [ ":${_package_resources_target_name}" ] |
| 1093 native_libs = _native_libs + _native_libs_even_when_incremental | 1104 native_libs = _native_libs + _native_libs_even_when_incremental |
| 1094 | 1105 |
| 1095 if (defined(_dex_path)) { | 1106 if (defined(_dex_path)) { |
| 1096 dex_path = _dex_path | 1107 dex_path = _dex_path |
| 1097 } | 1108 } |
| 1098 | 1109 |
| 1099 output_apk_path = _packaged_apk_path | 1110 output_apk_path = _packaged_apk_path |
| 1100 resource_packaged_apk_path = _resource_packaged_apk_path | 1111 resource_packaged_apk_path = _resource_packaged_apk_path |
| 1101 } | 1112 } |
| 1102 | 1113 |
| 1103 _incremental_package_target = "${target_name}_incremental__package" | 1114 _incremental_package_target = "${target_name}_incremental__package" |
| 1104 package_apk(_incremental_package_target) { | 1115 package_apk(_incremental_package_target) { |
| 1105 forward_variables_from(invoker, | 1116 forward_variables_from(invoker, |
| 1106 [ | 1117 [ |
| 1107 "assets_build_config", | 1118 "assets_build_config", |
| 1108 "emma_instrument", | 1119 "emma_instrument", |
| 1120 "secondary_native_libs", |
| 1109 "uncompress_shared_libraries", | 1121 "uncompress_shared_libraries", |
| 1110 ]) | 1122 ]) |
| 1111 _dex_target = "//build/android/incremental_install:bootstrap_java__dex" | 1123 _dex_target = "//build/android/incremental_install:bootstrap_java__dex" |
| 1112 deps = _incremental_deps + [ | 1124 deps = _incremental_deps + [ |
| 1113 ":${_incremental_package_resources_target_name}", | 1125 ":${_incremental_package_resources_target_name}", |
| 1114 _dex_target, | 1126 _dex_target, |
| 1115 ] | 1127 ] |
| 1116 | 1128 |
| 1117 if (defined(_dex_path)) { | 1129 if (defined(_dex_path)) { |
| 1118 dex_path = | 1130 dex_path = |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 ] | 2182 ] |
| 2171 args = [ | 2183 args = [ |
| 2172 "--depfile", | 2184 "--depfile", |
| 2173 rebase_path(depfile, root_build_dir), | 2185 rebase_path(depfile, root_build_dir), |
| 2174 "--script-output-path", | 2186 "--script-output-path", |
| 2175 rebase_path(generated_script, root_build_dir), | 2187 rebase_path(generated_script, root_build_dir), |
| 2176 ] | 2188 ] |
| 2177 args += test_runner_args | 2189 args += test_runner_args |
| 2178 } | 2190 } |
| 2179 } | 2191 } |
| OLD | NEW |