aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-12-04 14:06:37 -0800
committerElliott Hughes <enh@google.com>2012-12-04 14:06:37 -0800
commit8badf4d23f7b3a0d1884934fa92955bc69638d76 (patch)
treed4b2f047a69d2e279a695e0490684135738f34b2
parentad23d045f4d10276b41e25610e8a8597cd4bfb63 (diff)
downloadjunit-8badf4d23f7b3a0d1884934fa92955bc69638d76.tar.gz
Fix the Mac build by adding a WITH_HOST_DALVIK test.
Change-Id: I75d4bf9e81661aca6363e9249dd04e5f2f9ecd8f
-rw-r--r--Android.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 425d0a1..6e07bc5 100644
--- a/Android.mk
+++ b/Android.mk
@@ -46,13 +46,12 @@ LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := core-junit
include $(BUILD_JAVA_LIBRARY)
-ifeq ($(WITH_HOST_DALVIK),true)
# ----------------------------------
# build a core-junit-hostdex jar that contains exactly the same classes
# as core-junit.
+ifeq ($(WITH_HOST_DALVIK),true)
include $(CLEAR_VARS)
-
# TODO: remove extensions once apache-harmony/luni/ is no longer dependent
# on it
LOCAL_SRC_FILES := $(call all-java-files-under, src/junit/extensions)
@@ -64,7 +63,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := core-junit-hostdex
LOCAL_BUILD_HOST_DEX := true
include $(BUILD_HOST_JAVA_LIBRARY)
-
endif
#-------------------------------------------------------
@@ -81,6 +79,7 @@ include $(BUILD_STATIC_JAVA_LIBRARY)
# build a junit-runner for the host dalvikvm
# (like the junit classes in the frameworks/base android.test.runner.jar)
+ifeq ($(WITH_HOST_DALVIK),true)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(junit-runner-files)
LOCAL_MODULE := junit-runner-hostdex
@@ -88,6 +87,7 @@ LOCAL_MODULE_TAGS := optional
LOCAL_BUILD_HOST_DEX := true
LOCAL_JAVA_LIBRARIES := core-junit-hostdex
include $(BUILD_HOST_JAVA_LIBRARY)
+endif
#-------------------------------------------------------
# build a junit4-target jar representing the