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 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) | 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 } | 889 } |
890 } | 890 } |
891 | 891 |
892 _final_deps += [ ":${_template_name}__dex" ] | 892 _final_deps += [ ":${_template_name}__dex" ] |
893 dex("${_template_name}__dex") { | 893 dex("${_template_name}__dex") { |
894 sources = [ | 894 sources = [ |
895 _jar_path, | 895 _jar_path, |
896 ] | 896 ] |
897 output = _dex_path | 897 output = _dex_path |
898 } | 898 } |
| 899 |
| 900 if (defined(invoker.standalone_dex_path)) { |
| 901 _final_deps += [ ":${_template_name}__standalone_dex" ] |
| 902 _rebased_build_config = rebase_path(_build_config, root_build_dir) |
| 903 dex("${_template_name}__standalone_dex") { |
| 904 sources = [_jar_path] |
| 905 inputs = [_build_config] |
| 906 output = invoker.standalone_dex_path |
| 907 dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files" |
| 908 args = [ "--inputs=@FileArg($dex_arg_key)" ] |
| 909 } |
| 910 } |
899 } | 911 } |
900 | 912 |
901 group(target_name) { | 913 group(target_name) { |
902 if (defined(invoker.visibility)) { | 914 if (defined(invoker.visibility)) { |
903 visibility = invoker.visibility | 915 visibility = invoker.visibility |
904 } | 916 } |
905 deps = _final_deps | 917 deps = _final_deps |
906 datadeps = _final_datadeps | 918 datadeps = _final_datadeps |
907 } | 919 } |
908 } | 920 } |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 | 1046 |
1035 if (defined(invoker.clear_dir) && invoker.clear_dir) { | 1047 if (defined(invoker.clear_dir) && invoker.clear_dir) { |
1036 args += [ "--clear" ] | 1048 args += [ "--clear" ] |
1037 } | 1049 } |
1038 | 1050 |
1039 if (defined(invoker.args)) { | 1051 if (defined(invoker.args)) { |
1040 args += invoker.args | 1052 args += invoker.args |
1041 } | 1053 } |
1042 } | 1054 } |
1043 } | 1055 } |
OLD | NEW |