blob: dcd17926195cfc3680c7f9ea70a39fa2a83f8220 [file] [log] [blame]
# Copyright 2011 The Android Open Source Project
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
LOCAL_JAVA_RESOURCE_DIRS := src/main/java
LOCAL_JAR_MANIFEST := etc/manifest.txt
# If the dependency list is changed, etc/manifest.txt
LOCAL_JAVA_LIBRARIES := \
common \
sdklib \
lint_api \
lint_checks \
lombok-ast-0.2 \
asm-tools \
asm-tree-tools \
asm-analysis-tools \
guava-tools
LOCAL_MODULE := lint
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_JAVA_LIBRARY)
# Build all sub-directories
include $(call all-makefiles-under,$(LOCAL_PATH))
# Build tests
include $(CLEAR_VARS)
# Only compile source java files in this lib.
LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java)
LOCAL_MODULE := lint_checks-tests
LOCAL_MODULE_TAGS := optional
LOCAL_JAVA_LIBRARIES := common sdklib lint_api lint_checks lint junit easymock asm-tools asm-tree-tools guava-tools layoutlib_api sdktestutils
include $(BUILD_HOST_JAVA_LIBRARY)