aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-12-03 13:59:05 -0800
committerElliott Hughes <enh@google.com>2012-12-03 13:59:05 -0800
commit5e7c23b6db620045c0429f4f49a190f45b12476b (patch)
tree6cf1698eb237cb6d6370fe1551f098fe1a791032
parent7c1599eaf8135729876344969bf8bd84f79cee24 (diff)
downloadhamcrest-5e7c23b6db620045c0429f4f49a190f45b12476b.tar.gz
Only build hamcrest-hostdex if WITH_HOST_DALVIK is true.
Change-Id: I83daa433ab7183d259d8e0083de641fe32ae49eb
-rw-r--r--Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 96798f4..fcd1a95 100644
--- a/Android.mk
+++ b/Android.mk
@@ -26,12 +26,14 @@ include $(BUILD_HOST_JAVA_LIBRARY)
# build for the host dalvik
# -------------------------
+ifeq ($(WITH_HOST_DALVIK),true)
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)
+endif