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/zip.gni") | 6 import("//build/config/zip.gni") |
7 import("//third_party/ijar/ijar.gni") | 7 import("//third_party/ijar/ijar.gni") |
8 | 8 |
9 assert(is_android) | 9 assert(is_android) |
10 | 10 |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 _final_datadeps = [] | 1185 _final_datadeps = [] |
1186 if (defined(invoker.datadeps)) { | 1186 if (defined(invoker.datadeps)) { |
1187 _final_datadeps = invoker.datadeps | 1187 _final_datadeps = invoker.datadeps |
1188 } | 1188 } |
1189 | 1189 |
1190 _supports_android = | 1190 _supports_android = |
1191 defined(invoker.supports_android) && invoker.supports_android | 1191 defined(invoker.supports_android) && invoker.supports_android |
1192 _requires_android = | 1192 _requires_android = |
1193 defined(invoker.requires_android) && invoker.requires_android | 1193 defined(invoker.requires_android) && invoker.requires_android |
1194 assert(_requires_android || true) # Mark as used. | 1194 assert(_requires_android || true) # Mark as used. |
| 1195 _android_manifest = "//build/android/AndroidManifest.xml" |
| 1196 if (defined(invoker.android_manifest)) { |
| 1197 _android_manifest = invoker.android_manifest |
| 1198 } |
| 1199 assert(_android_manifest != "") # Mark as used. |
1195 _run_findbugs = defined(invoker.run_findbugs) && invoker.run_findbugs | 1200 _run_findbugs = defined(invoker.run_findbugs) && invoker.run_findbugs |
1196 assert(_run_findbugs || true) # Mark as used. | 1201 assert(_run_findbugs || true) # Mark as used. |
1197 | 1202 |
1198 if (_supports_android) { | 1203 if (_supports_android) { |
1199 _dex_path = _base_path + ".dex.jar" | 1204 _dex_path = _base_path + ".dex.jar" |
1200 if (defined(invoker.dex_path)) { | 1205 if (defined(invoker.dex_path)) { |
1201 _dex_path = invoker.dex_path | 1206 _dex_path = invoker.dex_path |
1202 } | 1207 } |
1203 } | 1208 } |
1204 | 1209 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 ]) | 1314 ]) |
1310 build_config = _build_config | 1315 build_config = _build_config |
1311 jar_path = _jar_path | 1316 jar_path = _jar_path |
1312 script_name = _template_name | 1317 script_name = _template_name |
1313 deps = build_config_deps | 1318 deps = build_config_deps |
1314 } | 1319 } |
1315 } | 1320 } |
1316 | 1321 |
1317 if (_supports_android) { | 1322 if (_supports_android) { |
1318 if (defined(invoker.chromium_code) && invoker.chromium_code) { | 1323 if (defined(invoker.chromium_code) && invoker.chromium_code) { |
1319 _android_manifest = "//build/android/AndroidManifest.xml" | |
1320 if (defined(invoker.android_manifest)) { | |
1321 _android_manifest = invoker.android_manifest | |
1322 } | |
1323 | |
1324 _final_datadeps += [ ":${_template_name}__lint" ] | 1324 _final_datadeps += [ ":${_template_name}__lint" ] |
1325 android_lint("${_template_name}__lint") { | 1325 android_lint("${_template_name}__lint") { |
1326 android_manifest = _android_manifest | 1326 android_manifest = _android_manifest |
1327 jar_path = _jar_path | 1327 jar_path = _jar_path |
1328 java_files = _java_files | 1328 java_files = _java_files |
1329 deps = [ | 1329 deps = [ |
1330 ":$_compile_java_target", | 1330 ":$_compile_java_target", |
1331 ] | 1331 ] |
1332 if (defined(invoker.deps)) { | 1332 if (defined(invoker.deps)) { |
1333 deps += invoker.deps | 1333 deps += invoker.deps |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1644 ] | 1644 ] |
1645 args = [ | 1645 args = [ |
1646 "--depfile", | 1646 "--depfile", |
1647 rebase_path(depfile, root_build_dir), | 1647 rebase_path(depfile, root_build_dir), |
1648 "--script-output-path", | 1648 "--script-output-path", |
1649 rebase_path(generated_script, root_build_dir), | 1649 rebase_path(generated_script, root_build_dir), |
1650 ] | 1650 ] |
1651 args += test_runner_args | 1651 args += test_runner_args |
1652 } | 1652 } |
1653 } | 1653 } |
OLD | NEW |