aboutsummaryrefslogtreecommitdiffstats
path: root/lint/cli/Android.mk
blob: dcd17926195cfc3680c7f9ea70a39fa2a83f8220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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)