Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: build/config/android/rules.gni

Issue 1136573002: Use the Errorprone Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full Sync and Update Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | build/host_jar.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 848 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
849 # will be added to java_files and be included in this library. 849 # will be added to java_files and be included in this library.
850 # srcjars: List of srcjars to be included in this library, together with the 850 # srcjars: List of srcjars to be included in this library, together with the
851 # ones obtained from srcjar_deps. 851 # ones obtained from srcjar_deps.
852 # 852 #
853 # bypass_platform_checks: Disables checks about cross-platform (Java/Android) 853 # bypass_platform_checks: Disables checks about cross-platform (Java/Android)
854 # dependencies for this target. This will allow depending on an 854 # dependencies for this target. This will allow depending on an
855 # android_library target, for example. 855 # android_library target, for example.
856 # 856 #
857 # chromium_code: If true, extra analysis warning/errors will be enabled. 857 # chromium_code: If true, extra analysis warning/errors will be enabled.
858 # enable_errorprone: If true, enables the errorprone compiler.
858 # 859 #
859 # data_deps, testonly 860 # data_deps, testonly
860 # 861 #
861 # Example 862 # Example
862 # java_binary("foo") { 863 # java_binary("foo") {
863 # java_files = [ "org/chromium/foo/FooMain.java" ] 864 # java_files = [ "org/chromium/foo/FooMain.java" ]
864 # deps = [ ":bar_java" ] 865 # deps = [ ":bar_java" ]
865 # main_class = "org.chromium.foo.FooMain" 866 # main_class = "org.chromium.foo.FooMain"
866 # } 867 # }
867 template("java_binary") { 868 template("java_binary") {
868 set_sources_assignment_filter([]) 869 set_sources_assignment_filter([])
869 870
870 # TODO(cjhopman): This should not act like a java_library for dependents (i.e. 871 # TODO(cjhopman): This should not act like a java_library for dependents (i.e.
871 # dependents shouldn't get the jar in their classpath, etc.). 872 # dependents shouldn't get the jar in their classpath, etc.).
872 java_library_impl(target_name) { 873 java_library_impl(target_name) {
873 if (defined(invoker.DEPRECATED_java_in_dir)) { 874 if (defined(invoker.DEPRECATED_java_in_dir)) {
874 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir 875 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir
875 } 876 }
876 if (defined(invoker.chromium_code)) { 877 if (defined(invoker.chromium_code)) {
877 chromium_code = invoker.chromium_code 878 chromium_code = invoker.chromium_code
878 } 879 }
879 if (defined(invoker.data_deps)) { 880 if (defined(invoker.data_deps)) {
880 deps = invoker.data_deps 881 deps = invoker.data_deps
881 } 882 }
882 if (defined(invoker.deps)) { 883 if (defined(invoker.deps)) {
883 deps = invoker.deps 884 deps = invoker.deps
884 } 885 }
886 if (defined(invoker.enable_errorprone)) {
887 enable_errorprone = invoker.enable_errorprone
888 }
885 if (defined(invoker.java_files)) { 889 if (defined(invoker.java_files)) {
886 java_files = invoker.java_files 890 java_files = invoker.java_files
887 } 891 }
888 if (defined(invoker.srcjar_deps)) { 892 if (defined(invoker.srcjar_deps)) {
889 srcjar_deps = invoker.srcjar_deps 893 srcjar_deps = invoker.srcjar_deps
890 } 894 }
891 if (defined(invoker.srcjars)) { 895 if (defined(invoker.srcjars)) {
892 srcjars = invoker.srcjars 896 srcjars = invoker.srcjars
893 } 897 }
894 if (defined(invoker.bypass_platform_checks)) { 898 if (defined(invoker.bypass_platform_checks)) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 # java_files: List of .java files included in this library. 973 # java_files: List of .java files included in this library.
970 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 974 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
971 # will be added to java_files and be included in this library. 975 # will be added to java_files and be included in this library.
972 # srcjars: List of srcjars to be included in this library, together with the 976 # srcjars: List of srcjars to be included in this library, together with the
973 # ones obtained from srcjar_deps. 977 # ones obtained from srcjar_deps.
974 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 978 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
975 # this directory will be included in the library. This is only supported to 979 # this directory will be included in the library. This is only supported to
976 # ease the gyp->gn conversion and will be removed in the future. 980 # ease the gyp->gn conversion and will be removed in the future.
977 # 981 #
978 # chromium_code: If true, extra analysis warning/errors will be enabled. 982 # chromium_code: If true, extra analysis warning/errors will be enabled.
983 # enable_errorprone: If true, enables the errorprone compiler.
984 #
979 # jar_excluded_patterns: List of patterns of .class files to exclude from the 985 # jar_excluded_patterns: List of patterns of .class files to exclude from the
980 # final jar. 986 # final jar.
981 # 987 #
982 # proguard_preprocess: If true, proguard preprocessing will be run. This can 988 # proguard_preprocess: If true, proguard preprocessing will be run. This can
983 # be used to remove unwanted parts of the library. 989 # be used to remove unwanted parts of the library.
984 # proguard_config: Path to the proguard config for preprocessing. 990 # proguard_config: Path to the proguard config for preprocessing.
985 # 991 #
986 # supports_android: If true, Android targets (android_library, android_apk) 992 # supports_android: If true, Android targets (android_library, android_apk)
987 # may depend on this target. Note: if true, this target must only use the 993 # may depend on this target. Note: if true, this target must only use the
988 # subset of Java available on Android. 994 # subset of Java available on Android.
(...skipping 28 matching lines...) Expand all
1017 } 1023 }
1018 if (defined(invoker.chromium_code)) { 1024 if (defined(invoker.chromium_code)) {
1019 chromium_code = invoker.chromium_code 1025 chromium_code = invoker.chromium_code
1020 } 1026 }
1021 if (defined(invoker.data_deps)) { 1027 if (defined(invoker.data_deps)) {
1022 deps = invoker.data_deps 1028 deps = invoker.data_deps
1023 } 1029 }
1024 if (defined(invoker.deps)) { 1030 if (defined(invoker.deps)) {
1025 deps = invoker.deps 1031 deps = invoker.deps
1026 } 1032 }
1033 if (defined(invoker.enable_errorprone)) {
1034 enable_errorprone = invoker.enable_errorprone
1035 }
1027 if (defined(invoker.jar_excluded_patterns)) { 1036 if (defined(invoker.jar_excluded_patterns)) {
1028 jar_excluded_patterns = invoker.jar_excluded_patterns 1037 jar_excluded_patterns = invoker.jar_excluded_patterns
1029 } 1038 }
1030 if (defined(invoker.java_files)) { 1039 if (defined(invoker.java_files)) {
1031 java_files = invoker.java_files 1040 java_files = invoker.java_files
1032 } 1041 }
1033 if (defined(invoker.proguard_config)) { 1042 if (defined(invoker.proguard_config)) {
1034 proguard_config = invoker.proguard_config 1043 proguard_config = invoker.proguard_config
1035 } 1044 }
1036 if (defined(invoker.proguard_preprocess)) { 1045 if (defined(invoker.proguard_preprocess)) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 # java_files: List of .java files included in this library. 1117 # java_files: List of .java files included in this library.
1109 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 1118 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
1110 # will be added to java_files and be included in this library. 1119 # will be added to java_files and be included in this library.
1111 # srcjars: List of srcjars to be included in this library, together with the 1120 # srcjars: List of srcjars to be included in this library, together with the
1112 # ones obtained from srcjar_deps. 1121 # ones obtained from srcjar_deps.
1113 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 1122 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
1114 # this directory will be included in the library. This is only supported to 1123 # this directory will be included in the library. This is only supported to
1115 # ease the gyp->gn conversion and will be removed in the future. 1124 # ease the gyp->gn conversion and will be removed in the future.
1116 # 1125 #
1117 # chromium_code: If true, extra analysis warning/errors will be enabled. 1126 # chromium_code: If true, extra analysis warning/errors will be enabled.
1127 # enable_errorprone: If true, enables the errorprone compiler.
1128 #
1118 # jar_excluded_patterns: List of patterns of .class files to exclude from the 1129 # jar_excluded_patterns: List of patterns of .class files to exclude from the
1119 # final jar. 1130 # final jar.
1120 # 1131 #
1121 # proguard_preprocess: If true, proguard preprocessing will be run. This can 1132 # proguard_preprocess: If true, proguard preprocessing will be run. This can
1122 # be used to remove unwanted parts of the library. 1133 # be used to remove unwanted parts of the library.
1123 # proguard_config: Path to the proguard config for preprocessing. 1134 # proguard_config: Path to the proguard config for preprocessing.
1124 # 1135 #
1125 # dex_path: If set, the resulting .dex.jar file will be placed under this 1136 # dex_path: If set, the resulting .dex.jar file will be placed under this
1126 # path. 1137 # path.
1127 # 1138 #
(...skipping 25 matching lines...) Expand all
1153 } 1164 }
1154 if (defined(invoker.chromium_code)) { 1165 if (defined(invoker.chromium_code)) {
1155 chromium_code = invoker.chromium_code 1166 chromium_code = invoker.chromium_code
1156 } 1167 }
1157 if (defined(invoker.data_deps)) { 1168 if (defined(invoker.data_deps)) {
1158 deps = invoker.data_deps 1169 deps = invoker.data_deps
1159 } 1170 }
1160 if (defined(invoker.deps)) { 1171 if (defined(invoker.deps)) {
1161 deps = invoker.deps 1172 deps = invoker.deps
1162 } 1173 }
1174 if (defined(invoker.enable_errorprone)) {
1175 enable_errorprone = invoker.enable_errorprone
1176 }
1163 if (defined(invoker.jar_excluded_patterns)) { 1177 if (defined(invoker.jar_excluded_patterns)) {
1164 jar_excluded_patterns = invoker.jar_excluded_patterns 1178 jar_excluded_patterns = invoker.jar_excluded_patterns
1165 } 1179 }
1166 if (defined(invoker.java_files)) { 1180 if (defined(invoker.java_files)) {
1167 java_files = invoker.java_files 1181 java_files = invoker.java_files
1168 } 1182 }
1169 if (defined(invoker.proguard_config)) { 1183 if (defined(invoker.proguard_config)) {
1170 proguard_config = invoker.proguard_config 1184 proguard_config = invoker.proguard_config
1171 } 1185 }
1172 if (defined(invoker.proguard_preprocess)) { 1186 if (defined(invoker.proguard_preprocess)) {
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 template("uiautomator_test") { 2190 template("uiautomator_test") {
2177 set_sources_assignment_filter([]) 2191 set_sources_assignment_filter([])
2178 if (defined(invoker.testonly)) { 2192 if (defined(invoker.testonly)) {
2179 testonly = invoker.testonly 2193 testonly = invoker.testonly
2180 } 2194 }
2181 assert(target_name != "") 2195 assert(target_name != "")
2182 assert(invoker.deps != [] || true) 2196 assert(invoker.deps != [] || true)
2183 group(target_name) { 2197 group(target_name) {
2184 } 2198 }
2185 } 2199 }
OLDNEW
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | build/host_jar.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698