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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
9 import("//third_party/android_platform/config.gni") | 9 import("//third_party/android_platform/config.gni") |
10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 # Declare a java library target for a prebuilt jar | 933 # Declare a java library target for a prebuilt jar |
934 # | 934 # |
935 # Variables | 935 # Variables |
936 # deps: Specifies the dependencies of this target. Java targets in this list | 936 # deps: Specifies the dependencies of this target. Java targets in this list |
937 # will be added to the javac classpath. | 937 # will be added to the javac classpath. |
938 # jar_path: Path to the prebuilt jar. | 938 # jar_path: Path to the prebuilt jar. |
939 # jar_dep: Target that builds jar_path (optional). | 939 # jar_dep: Target that builds jar_path (optional). |
940 # proguard_preprocess: If true, proguard preprocessing will be run. This can | 940 # proguard_preprocess: If true, proguard preprocessing will be run. This can |
941 # be used to remove unwanted parts of the library. | 941 # be used to remove unwanted parts of the library. |
942 # proguard_config: Path to the proguard config for preprocessing. | 942 # proguard_config: Path to the proguard config for preprocessing. |
| 943 # supports_android: If true, Android targets (android_library, android_apk) |
| 944 # may depend on this target. Note: if true, this target must only use the |
| 945 # subset of Java available on Android. |
943 # | 946 # |
944 # Example | 947 # Example |
945 # java_prebuilt("foo_java") { | 948 # java_prebuilt("foo_java") { |
946 # jar_path = "foo.jar" | 949 # jar_path = "foo.jar" |
947 # deps = [ | 950 # deps = [ |
948 # ":foo_resources", | 951 # ":foo_resources", |
949 # ":bar_java" | 952 # ":bar_java" |
950 # ] | 953 # ] |
951 # } | 954 # } |
952 template("java_prebuilt") { | 955 template("java_prebuilt") { |
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 | 1977 |
1975 # TODO(GYP): implement this. | 1978 # TODO(GYP): implement this. |
1976 template("uiautomator_test") { | 1979 template("uiautomator_test") { |
1977 set_sources_assignment_filter([]) | 1980 set_sources_assignment_filter([]) |
1978 forward_variables_from(invoker, [ "testonly" ]) | 1981 forward_variables_from(invoker, [ "testonly" ]) |
1979 assert(target_name != "") | 1982 assert(target_name != "") |
1980 assert(invoker.deps != [] || true) | 1983 assert(invoker.deps != [] || true) |
1981 group(target_name) { | 1984 group(target_name) { |
1982 } | 1985 } |
1983 } | 1986 } |
OLD | NEW |