Chromium Code Reviews| 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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 804 jar_path = _jar_path | 804 jar_path = _jar_path |
| 805 java_files = _java_files | 805 java_files = _java_files |
| 806 } | 806 } |
| 807 } | 807 } |
| 808 | 808 |
| 809 _final_deps += [ ":${_template_name}__dex" ] | 809 _final_deps += [ ":${_template_name}__dex" ] |
| 810 dex("${_template_name}__dex") { | 810 dex("${_template_name}__dex") { |
| 811 sources = [_jar_path] | 811 sources = [_jar_path] |
| 812 output = _dex_path | 812 output = _dex_path |
| 813 } | 813 } |
| 814 | |
| 815 if (defined(invoker.standalone_dex_path)) { | |
| 816 _final_deps += [ ":${_template_name}__standalone_dex" ] | |
| 817 _rebased_build_config = rebase_path(_build_config, root_build_dir) | |
| 818 dex("${_template_name}__standalone_dex") { | |
| 819 sources = [_jar_path] | |
|
cjhopman
2014/12/01 21:47:07
add:
inputs = [ _build_config ]
ppi
2014/12/02 16:28:17
Done.
| |
| 820 output = invoker.standalone_dex_path | |
| 821 dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files" | |
| 822 args = [ "--inputs=@FileArg($dex_arg_key)" ] | |
| 823 } | |
| 824 } | |
| 814 } | 825 } |
| 815 | 826 |
| 816 group(target_name) { | 827 group(target_name) { |
| 817 if (defined(invoker.visibility)) { | 828 if (defined(invoker.visibility)) { |
| 818 visibility = invoker.visibility | 829 visibility = invoker.visibility |
| 819 } | 830 } |
| 820 deps = _final_deps | 831 deps = _final_deps |
| 821 datadeps = _final_datadeps | 832 datadeps = _final_datadeps |
| 822 } | 833 } |
| 823 } | 834 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 941 | 952 |
| 942 if (defined(invoker.clear_dir) && invoker.clear_dir) { | 953 if (defined(invoker.clear_dir) && invoker.clear_dir) { |
| 943 args += ["--clear"] | 954 args += ["--clear"] |
| 944 } | 955 } |
| 945 | 956 |
| 946 if (defined(invoker.args)) { | 957 if (defined(invoker.args)) { |
| 947 args += invoker.args | 958 args += invoker.args |
| 948 } | 959 } |
| 949 } | 960 } |
| 950 } | 961 } |
| OLD | NEW |