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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1178 _final_datadeps = [] | 1178 _final_datadeps = [] |
1179 if (defined(invoker.datadeps)) { | 1179 if (defined(invoker.datadeps)) { |
1180 _final_datadeps = invoker.datadeps | 1180 _final_datadeps = invoker.datadeps |
1181 } | 1181 } |
1182 | 1182 |
1183 _supports_android = | 1183 _supports_android = |
1184 defined(invoker.supports_android) && invoker.supports_android | 1184 defined(invoker.supports_android) && invoker.supports_android |
1185 _requires_android = | 1185 _requires_android = |
1186 defined(invoker.requires_android) && invoker.requires_android | 1186 defined(invoker.requires_android) && invoker.requires_android |
1187 assert(_requires_android || true) # Mark as used. | 1187 assert(_requires_android || true) # Mark as used. |
1188 _android_manifest = "//build/android/AndroidManifest.xml" | |
1189 if (defined(invoker.android_manifest)) { | |
pasko
2015/09/29 09:38:58
I am not familiar with the concept of invoker, is
pkotwicz
2015/09/29 18:56:32
The GN documentation is checked into the chromium
pasko
2015/09/29 20:14:26
thanks! now clearer
| |
1190 _android_manifest = invoker.android_manifest | |
1191 } | |
1192 assert(_android_manifest != "") # Mark as used. | |
1188 _run_findbugs = defined(invoker.run_findbugs) && invoker.run_findbugs | 1193 _run_findbugs = defined(invoker.run_findbugs) && invoker.run_findbugs |
1189 assert(_run_findbugs || true) # Mark as used. | 1194 assert(_run_findbugs || true) # Mark as used. |
1190 | 1195 |
1191 if (_supports_android) { | 1196 if (_supports_android) { |
1192 _dex_path = _base_path + ".dex.jar" | 1197 _dex_path = _base_path + ".dex.jar" |
1193 if (defined(invoker.dex_path)) { | 1198 if (defined(invoker.dex_path)) { |
1194 _dex_path = invoker.dex_path | 1199 _dex_path = invoker.dex_path |
1195 } | 1200 } |
1196 } | 1201 } |
1197 | 1202 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1301 ]) | 1306 ]) |
1302 build_config = _build_config | 1307 build_config = _build_config |
1303 jar_path = _jar_path | 1308 jar_path = _jar_path |
1304 script_name = _template_name | 1309 script_name = _template_name |
1305 deps = build_config_deps | 1310 deps = build_config_deps |
1306 } | 1311 } |
1307 } | 1312 } |
1308 | 1313 |
1309 if (_supports_android) { | 1314 if (_supports_android) { |
1310 if (defined(invoker.chromium_code) && invoker.chromium_code) { | 1315 if (defined(invoker.chromium_code) && invoker.chromium_code) { |
1311 _android_manifest = "//build/android/AndroidManifest.xml" | |
1312 if (defined(invoker.android_manifest)) { | |
1313 _android_manifest = invoker.android_manifest | |
1314 } | |
1315 | |
1316 _final_datadeps += [ ":${_template_name}__lint" ] | 1316 _final_datadeps += [ ":${_template_name}__lint" ] |
1317 android_lint("${_template_name}__lint") { | 1317 android_lint("${_template_name}__lint") { |
1318 android_manifest = _android_manifest | 1318 android_manifest = _android_manifest |
1319 jar_path = _jar_path | 1319 jar_path = _jar_path |
1320 java_files = _java_files | 1320 java_files = _java_files |
1321 deps = [ | 1321 deps = [ |
1322 ":$_compile_java_target", | 1322 ":$_compile_java_target", |
1323 ] | 1323 ] |
1324 if (defined(invoker.deps)) { | 1324 if (defined(invoker.deps)) { |
1325 deps += invoker.deps | 1325 deps += invoker.deps |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1636 ] | 1636 ] |
1637 args = [ | 1637 args = [ |
1638 "--depfile", | 1638 "--depfile", |
1639 rebase_path(depfile, root_build_dir), | 1639 rebase_path(depfile, root_build_dir), |
1640 "--script-output-path", | 1640 "--script-output-path", |
1641 rebase_path(generated_script, root_build_dir), | 1641 rebase_path(generated_script, root_build_dir), |
1642 ] | 1642 ] |
1643 args += test_runner_args | 1643 args += test_runner_args |
1644 } | 1644 } |
1645 } | 1645 } |
OLD | NEW |