aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-04-07 16:30:34 -0700
committerColin Cross <ccross@android.com>2017-04-07 16:30:34 -0700
commitd4f3a7089333c6a751bf503a59fef88a1db6df51 (patch)
tree3bdadaac0531fb1bf420ef68bf0e951e845d6e38 /Android.mk
parentf9755a72c1185f83b822a27845a25644a2d9e641 (diff)
downloaddagger2-d4f3a7089333c6a751bf503a59fef88a1db6df51.tar.gz
Use LOCAL_ANNOTATION_PROCESSORS instead of custom annotation processor handling. Test: m -j java Change-Id: Ia01cc51ea8dbe0842145789ef22a278573c1ee6b
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk9
1 files changed, 2 insertions, 7 deletions
diff --git a/Android.mk b/Android.mk
index 21fa4c1dd..deb2fea3c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -74,24 +74,19 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
dagger2-producers-host \
guavalib
-# Disable the default discovery for annotation processors and explicitly specify
-# the path and classes needed. This is needed because otherwise it breaks a code
-# indexing tool that doesn't, as yet do automatic discovery.
-PROCESSOR_LIBRARIES := \
+LOCAL_ANNOTATION_PROCESSORS := \
dagger2-auto-common-host \
dagger2-auto-factory-host \
dagger2-auto-service-host \
dagger2-auto-value-host \
guavalib
-PROCESSOR_CLASSES := \
+LOCAL_ANNOTATION_PROCESSOR_CLASSES := \
com.google.auto.factory.processor.AutoFactoryProcessor \
com.google.auto.service.processor.AutoServiceProcessor \
com.google.auto.value.processor.AutoAnnotationProcessor \
com.google.auto.value.processor.AutoValueProcessor
-include $(LOCAL_PATH)/java_annotation_processors.mk
-
LOCAL_JAVA_LANGUAGE_VERSION := 1.7
include $(BUILD_HOST_JAVA_LIBRARY)