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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1078 # Declare a java library target for a prebuilt jar | 1078 # Declare a java library target for a prebuilt jar |
1079 # | 1079 # |
1080 # Variables | 1080 # Variables |
1081 # deps: Specifies the dependencies of this target. Java targets in this list | 1081 # deps: Specifies the dependencies of this target. Java targets in this list |
1082 # will be added to the javac classpath. | 1082 # will be added to the javac classpath. |
1083 # jar_path: Path to the prebuilt jar. | 1083 # jar_path: Path to the prebuilt jar. |
1084 # jar_dep: Target that builds jar_path (optional). | 1084 # jar_dep: Target that builds jar_path (optional). |
1085 # proguard_preprocess: If true, proguard preprocessing will be run. This can | 1085 # proguard_preprocess: If true, proguard preprocessing will be run. This can |
1086 # be used to remove unwanted parts of the library. | 1086 # be used to remove unwanted parts of the library. |
1087 # proguard_config: Path to the proguard config for preprocessing. | 1087 # proguard_config: Path to the proguard config for preprocessing. |
1088 # supports_android: If true, Android targets (android_library, android_apk) | |
Yaron
2015/08/24 15:28:44
Am I missing something? I don't see where this is
jbudorick
2015/08/24 21:13:51
requires_android and supports_android are enforced
| |
1089 # may depend on this target. Note: if true, this target must only use the | |
1090 # subset of Java available on Android. | |
1088 # | 1091 # |
1089 # Example | 1092 # Example |
1090 # java_prebuilt("foo_java") { | 1093 # java_prebuilt("foo_java") { |
1091 # jar_path = "foo.jar" | 1094 # jar_path = "foo.jar" |
1092 # deps = [ | 1095 # deps = [ |
1093 # ":foo_resources", | 1096 # ":foo_resources", |
1094 # ":bar_java" | 1097 # ":bar_java" |
1095 # ] | 1098 # ] |
1096 # } | 1099 # } |
1097 template("java_prebuilt") { | 1100 template("java_prebuilt") { |
(...skipping 11 matching lines...) Expand all Loading... | |
1109 } | 1112 } |
1110 if (defined(invoker.data_deps)) { | 1113 if (defined(invoker.data_deps)) { |
1111 data_deps = invoker.data_deps | 1114 data_deps = invoker.data_deps |
1112 } | 1115 } |
1113 if (defined(invoker.proguard_config)) { | 1116 if (defined(invoker.proguard_config)) { |
1114 proguard_config = invoker.proguard_config | 1117 proguard_config = invoker.proguard_config |
1115 } | 1118 } |
1116 if (defined(invoker.proguard_preprocess)) { | 1119 if (defined(invoker.proguard_preprocess)) { |
1117 proguard_preprocess = invoker.proguard_preprocess | 1120 proguard_preprocess = invoker.proguard_preprocess |
1118 } | 1121 } |
1122 if (defined(invoker.supports_android)) { | |
1123 supports_android = invoker.supports_android | |
1124 } | |
1119 } | 1125 } |
1120 } | 1126 } |
1121 | 1127 |
1122 # Declare an Android library target | 1128 # Declare an Android library target |
1123 # | 1129 # |
1124 # This target creates an Android library containing java code and Android | 1130 # This target creates an Android library containing java code and Android |
1125 # resources. | 1131 # resources. |
1126 # | 1132 # |
1127 # Variables | 1133 # Variables |
1128 # deps: Specifies the dependencies of this target. Java targets in this list | 1134 # deps: Specifies the dependencies of this target. Java targets in this list |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2226 template("uiautomator_test") { | 2232 template("uiautomator_test") { |
2227 set_sources_assignment_filter([]) | 2233 set_sources_assignment_filter([]) |
2228 if (defined(invoker.testonly)) { | 2234 if (defined(invoker.testonly)) { |
2229 testonly = invoker.testonly | 2235 testonly = invoker.testonly |
2230 } | 2236 } |
2231 assert(target_name != "") | 2237 assert(target_name != "") |
2232 assert(invoker.deps != [] || true) | 2238 assert(invoker.deps != [] || true) |
2233 group(target_name) { | 2239 group(target_name) { |
2234 } | 2240 } |
2235 } | 2241 } |
OLD | NEW |