| 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("//third_party/android_platform/config.gni") | 8 import("//third_party/android_platform/config.gni") |
| 9 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
| 10 | 10 |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 if (defined(invoker.srcjars)) { | 901 if (defined(invoker.srcjars)) { |
| 902 srcjars = invoker.srcjars | 902 srcjars = invoker.srcjars |
| 903 } | 903 } |
| 904 if (defined(invoker.bypass_platform_checks)) { | 904 if (defined(invoker.bypass_platform_checks)) { |
| 905 bypass_platform_checks = invoker.bypass_platform_checks | 905 bypass_platform_checks = invoker.bypass_platform_checks |
| 906 } | 906 } |
| 907 if (defined(invoker.testonly)) { | 907 if (defined(invoker.testonly)) { |
| 908 testonly = invoker.testonly | 908 testonly = invoker.testonly |
| 909 } | 909 } |
| 910 | 910 |
| 911 supports_android = false |
| 911 main_class = invoker.main_class | 912 main_class = invoker.main_class |
| 912 } | 913 } |
| 913 } | 914 } |
| 914 | 915 |
| 915 # Declare a Junit executable target | 916 # Declare a Junit executable target |
| 916 # | 917 # |
| 917 # This target creates an executable from java code for running as a junit test | 918 # This target creates an executable from java code for running as a junit test |
| 918 # suite. The executable will be in the output folder's /bin/ directory. | 919 # suite. The executable will be in the output folder's /bin/ directory. |
| 919 # | 920 # |
| 920 # Variables | 921 # Variables |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 } | 1073 } |
| 1073 } | 1074 } |
| 1074 } | 1075 } |
| 1075 | 1076 |
| 1076 # Declare a java library target for a prebuilt jar | 1077 # Declare a java library target for a prebuilt jar |
| 1077 # | 1078 # |
| 1078 # Variables | 1079 # Variables |
| 1079 # deps: Specifies the dependencies of this target. Java targets in this list | 1080 # deps: Specifies the dependencies of this target. Java targets in this list |
| 1080 # will be added to the javac classpath. | 1081 # will be added to the javac classpath. |
| 1081 # jar_path: Path to the prebuilt jar. | 1082 # jar_path: Path to the prebuilt jar. |
| 1083 # jar_dep: Target that builds jar_path (optional). |
| 1082 # proguard_preprocess: If true, proguard preprocessing will be run. This can | 1084 # proguard_preprocess: If true, proguard preprocessing will be run. This can |
| 1083 # be used to remove unwanted parts of the library. | 1085 # be used to remove unwanted parts of the library. |
| 1084 # proguard_config: Path to the proguard config for preprocessing. | 1086 # proguard_config: Path to the proguard config for preprocessing. |
| 1085 # | 1087 # |
| 1086 # Example | 1088 # Example |
| 1087 # java_prebuilt("foo_java") { | 1089 # java_prebuilt("foo_java") { |
| 1088 # jar_path = "foo.jar" | 1090 # jar_path = "foo.jar" |
| 1089 # deps = [ | 1091 # deps = [ |
| 1090 # ":foo_resources", | 1092 # ":foo_resources", |
| 1091 # ":bar_java" | 1093 # ":bar_java" |
| 1092 # ] | 1094 # ] |
| 1093 # } | 1095 # } |
| 1094 template("java_prebuilt") { | 1096 template("java_prebuilt") { |
| 1095 set_sources_assignment_filter([]) | 1097 set_sources_assignment_filter([]) |
| 1096 java_prebuilt_impl(target_name) { | 1098 java_prebuilt_impl(target_name) { |
| 1097 jar_path = invoker.jar_path | 1099 jar_path = invoker.jar_path |
| 1100 if (defined(invoker.jar_dep)) { |
| 1101 jar_dep = invoker.jar_dep |
| 1102 } |
| 1098 if (defined(invoker.testonly)) { | 1103 if (defined(invoker.testonly)) { |
| 1099 testonly = invoker.testonly | 1104 testonly = invoker.testonly |
| 1100 } | 1105 } |
| 1101 if (defined(invoker.deps)) { | 1106 if (defined(invoker.deps)) { |
| 1102 deps = invoker.deps | 1107 deps = invoker.deps |
| 1103 } | 1108 } |
| 1104 if (defined(invoker.data_deps)) { | 1109 if (defined(invoker.data_deps)) { |
| 1105 data_deps = invoker.data_deps | 1110 data_deps = invoker.data_deps |
| 1106 } | 1111 } |
| 1107 if (defined(invoker.proguard_config)) { | 1112 if (defined(invoker.proguard_config)) { |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 template("uiautomator_test") { | 2225 template("uiautomator_test") { |
| 2221 set_sources_assignment_filter([]) | 2226 set_sources_assignment_filter([]) |
| 2222 if (defined(invoker.testonly)) { | 2227 if (defined(invoker.testonly)) { |
| 2223 testonly = invoker.testonly | 2228 testonly = invoker.testonly |
| 2224 } | 2229 } |
| 2225 assert(target_name != "") | 2230 assert(target_name != "") |
| 2226 assert(invoker.deps != [] || true) | 2231 assert(invoker.deps != [] || true) |
| 2227 group(target_name) { | 2232 group(target_name) { |
| 2228 } | 2233 } |
| 2229 } | 2234 } |
| OLD | NEW |