aboutsummaryrefslogtreecommitdiffstats
path: root/lint/libs/lint_api/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lint/libs/lint_api/Android.mk')
-rw-r--r--lint/libs/lint_api/Android.mk17
1 files changed, 10 insertions, 7 deletions
diff --git a/lint/libs/lint_api/Android.mk b/lint/libs/lint_api/Android.mk
index 1d70a25..3510559 100644
--- a/lint/libs/lint_api/Android.mk
+++ b/lint/libs/lint_api/Android.mk
@@ -13,12 +13,14 @@
# limitations under the License.
LOCAL_PATH := $(call my-dir)
-
include $(CLEAR_VARS)
-# Only compile source java files in this lib.
-LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
-LOCAL_JAVA_RESOURCE_DIRS := src/main/java
+# The lint_api code has moved to tools/base/lint_api.
+# The rule below uses the prebuilt lint_api.jar.
+#
+# If you want to run the tests, cd to tools/base/lint_api
+# and run ./gradlew :lint_api:test
+
LOCAL_JAVA_LIBRARIES := \
lombok-ast-0.2 \
common \
@@ -31,7 +33,8 @@ LOCAL_JAVA_LIBRARIES := \
LOCAL_MODULE := lint_api
LOCAL_MODULE_TAGS := optional
-include $(BUILD_HOST_JAVA_LIBRARY)
+LOCAL_PREBUILT_JAVA_LIBRARIES := \
+ ../../../../prebuilts/devtools/$(LOCAL_MODULE)$(COMMON_JAVA_PACKAGE_SUFFIX)
+
+include $(BUILD_HOST_PREBUILT)
-# Build all sub-directories
-include $(call all-makefiles-under,$(LOCAL_PATH))