| 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 | 6 |
| 7 assert(is_android) | 7 assert(is_android) |
| 8 | 8 |
| 9 | 9 |
| 10 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 10 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 args += [ | 206 args += [ |
| 207 "--dex-path", rebase_path(invoker.dex_path, root_build_dir), | 207 "--dex-path", rebase_path(invoker.dex_path, root_build_dir), |
| 208 ] | 208 ] |
| 209 } | 209 } |
| 210 if (supports_android) { | 210 if (supports_android) { |
| 211 args += [ "--supports-android" ] | 211 args += [ "--supports-android" ] |
| 212 } | 212 } |
| 213 if (requires_android) { | 213 if (requires_android) { |
| 214 args += [ "--requires-android" ] | 214 args += [ "--requires-android" ] |
| 215 } | 215 } |
| 216 if (defined(invoker.bypass_platform_checks) && |
| 217 invoker.bypass_platform_checks) { |
| 218 args += [ "--bypass-platform-checks" ] |
| 219 } |
| 216 | 220 |
| 217 if (is_android_resources || is_apk) { | 221 if (is_android_resources || is_apk) { |
| 218 assert(defined(invoker.resources_zip)) | 222 assert(defined(invoker.resources_zip)) |
| 219 args += [ | 223 args += [ |
| 220 "--resources-zip", rebase_path(invoker.resources_zip, root_build_dir), | 224 "--resources-zip", rebase_path(invoker.resources_zip, root_build_dir), |
| 221 ] | 225 ] |
| 222 if (defined(invoker.android_manifest)) { | 226 if (defined(invoker.android_manifest)) { |
| 223 inputs += [ | 227 inputs += [ |
| 224 invoker.android_manifest | 228 invoker.android_manifest |
| 225 ] | 229 ] |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 | 696 |
| 693 if (defined(invoker.override_build_config)) { | 697 if (defined(invoker.override_build_config)) { |
| 694 _build_config = invoker.override_build_config | 698 _build_config = invoker.override_build_config |
| 695 } else { | 699 } else { |
| 696 _build_config = _base_path + ".build_config" | 700 _build_config = _base_path + ".build_config" |
| 697 _final_deps += [ ":${_template_name}__build_config" ] | 701 _final_deps += [ ":${_template_name}__build_config" ] |
| 698 write_build_config("${_template_name}__build_config") { | 702 write_build_config("${_template_name}__build_config") { |
| 699 type = "java_library" | 703 type = "java_library" |
| 700 supports_android = _supports_android | 704 supports_android = _supports_android |
| 701 requires_android = _requires_android | 705 requires_android = _requires_android |
| 706 bypass_platform_checks = (defined(invoker.bypass_platform_checks) && |
| 707 invoker.bypass_platform_checks) |
| 702 | 708 |
| 703 deps = [] | 709 deps = [] |
| 704 if (defined(invoker.deps)) { | 710 if (defined(invoker.deps)) { |
| 705 deps += invoker.deps | 711 deps += invoker.deps |
| 706 } | 712 } |
| 707 | 713 |
| 708 build_config = _build_config | 714 build_config = _build_config |
| 709 jar_path = _jar_path | 715 jar_path = _jar_path |
| 710 if (_supports_android) { | 716 if (_supports_android) { |
| 711 dex_path = _dex_path | 717 dex_path = _dex_path |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 | 945 |
| 940 if (defined(invoker.clear_dir) && invoker.clear_dir) { | 946 if (defined(invoker.clear_dir) && invoker.clear_dir) { |
| 941 args += ["--clear"] | 947 args += ["--clear"] |
| 942 } | 948 } |
| 943 | 949 |
| 944 if (defined(invoker.args)) { | 950 if (defined(invoker.args)) { |
| 945 args += invoker.args | 951 args += invoker.args |
| 946 } | 952 } |
| 947 } | 953 } |
| 948 } | 954 } |
| OLD | NEW |