aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index a636bb0..96798f4 100644
--- a/Android.mk
+++ b/Android.mk
@@ -15,16 +15,26 @@
#
LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
+# build for the host JVM
+#-----------------------
+include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
LOCAL_MODULE := hamcrest-host
-
LOCAL_MODULE_TAGS := optional
+include $(BUILD_HOST_JAVA_LIBRARY)
+# build for the host dalvik
+# -------------------------
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+LOCAL_MODULE := hamcrest-hostdex
+LOCAL_MODULE_TAGS := optional
+LOCAL_BUILD_HOST_DEX := true
include $(BUILD_HOST_JAVA_LIBRARY)
+
+
#-------------------------------
# build a target jar