aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-12-03 11:38:15 -0800
committerElliott Hughes <enh@google.com>2012-12-03 11:50:00 -0800
commit4c7bb43300eeff0dfc173c18ef17e59e9ff66fa5 (patch)
tree01dedfa9b5bfd9a4ca12d075fd5e8f98608fde53
parent84ee3dc21ec5d2dd99cee722d058029f1027e9ef (diff)
downloadhamcrest-4c7bb43300eeff0dfc173c18ef17e59e9ff66fa5.tar.gz
Build a hamcrest hostdex.
Change-Id: I01179ea989aac667902f66724c937ded9fc2b945
-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