aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs/sdklib/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sdkmanager/libs/sdklib/Android.mk')
-rw-r--r--sdkmanager/libs/sdklib/Android.mk19
1 files changed, 15 insertions, 4 deletions
diff --git a/sdkmanager/libs/sdklib/Android.mk b/sdkmanager/libs/sdklib/Android.mk
index 30c4e04..e5e1a27 100644
--- a/sdkmanager/libs/sdklib/Android.mk
+++ b/sdkmanager/libs/sdklib/Android.mk
@@ -16,8 +16,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-LOCAL_JAVA_RESOURCE_DIRS := src
+LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
+LOCAL_JAVA_RESOURCE_DIRS := src/main/java
LOCAL_JAR_MANIFEST := manifest.txt
@@ -43,5 +43,16 @@ LOCAL_MODULE := sdklib
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_JAVA_RESOURCE_DIRS := src/test/java
+
+LOCAL_MODULE := sdklib-tests
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_JAVA_LIBRARIES := sdklib junit dvlib-tests
+
+include $(BUILD_HOST_JAVA_LIBRARY)