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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } | 814 } |
815 | 815 |
816 group(target_name) { | 816 group(target_name) { |
| 817 if (defined(invoker.visibility)) { |
| 818 visibility = invoker.visibility |
| 819 } |
817 deps = _final_deps | 820 deps = _final_deps |
818 datadeps = _final_datadeps | 821 datadeps = _final_datadeps |
819 } | 822 } |
820 } | 823 } |
821 | 824 |
822 | 825 |
823 # Runs process_resources.py | 826 # Runs process_resources.py |
824 template("process_resources") { | 827 template("process_resources") { |
825 if (defined(invoker.testonly)) { testonly = invoker.testonly } | 828 if (defined(invoker.testonly)) { testonly = invoker.testonly } |
826 | 829 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 | 941 |
939 if (defined(invoker.clear_dir) && invoker.clear_dir) { | 942 if (defined(invoker.clear_dir) && invoker.clear_dir) { |
940 args += ["--clear"] | 943 args += ["--clear"] |
941 } | 944 } |
942 | 945 |
943 if (defined(invoker.args)) { | 946 if (defined(invoker.args)) { |
944 args += invoker.args | 947 args += invoker.args |
945 } | 948 } |
946 } | 949 } |
947 } | 950 } |
OLD | NEW |