Index: build/config/android/rules.gni |
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni |
index c516a8c6857711614a7c13f2295a55fc98e6ae1a..2f229befe7237fc33318aecfe7edf8c288e42982 100644 |
--- a/build/config/android/rules.gni |
+++ b/build/config/android/rules.gni |
@@ -727,6 +727,7 @@ template("java_strings_grd_prebuilt") { |
# android_library target, for example. |
# |
# chromium_code: If true, extra analysis warning/errors will be enabled. |
+# enable_errorprone: If true, enables the errorprone compiler. |
# |
# datadeps, testonly |
# |
@@ -754,6 +755,9 @@ template("java_binary") { |
if (defined(invoker.deps)) { |
deps = invoker.deps |
} |
+ if (defined(invoker.enable_errorprone)) { |
+ enable_errorprone = invoker.enable_errorprone |
+ } |
if (defined(invoker.java_files)) { |
java_files = invoker.java_files |
} |
@@ -848,6 +852,8 @@ template("junit_binary") { |
# ease the gyp->gn conversion and will be removed in the future. |
# |
# chromium_code: If true, extra analysis warning/errors will be enabled. |
+# enable_errorprone: If true, enables the errorprone compiler. |
+# |
# jar_excluded_patterns: List of patterns of .class files to exclude from the |
# final jar. |
# |
@@ -896,6 +902,9 @@ template("java_library") { |
if (defined(invoker.deps)) { |
deps = invoker.deps |
} |
+ if (defined(invoker.enable_errorprone)) { |
+ enable_errorprone = invoker.enable_errorprone |
+ } |
if (defined(invoker.jar_excluded_patterns)) { |
jar_excluded_patterns = invoker.jar_excluded_patterns |
} |
@@ -987,6 +996,8 @@ template("java_prebuilt") { |
# ease the gyp->gn conversion and will be removed in the future. |
# |
# chromium_code: If true, extra analysis warning/errors will be enabled. |
+# enable_errorprone: If true, enables the errorprone compiler. |
+# |
# jar_excluded_patterns: List of patterns of .class files to exclude from the |
# final jar. |
# |
@@ -1032,6 +1043,9 @@ template("android_library") { |
if (defined(invoker.deps)) { |
deps = invoker.deps |
} |
+ if (defined(invoker.enable_errorprone)) { |
+ enable_errorprone = invoker.enable_errorprone |
+ } |
if (defined(invoker.jar_excluded_patterns)) { |
jar_excluded_patterns = invoker.jar_excluded_patterns |
} |