am bdb2e9f3: am 46fc2341: Merge "Allow \'export WITH_HOST_DALVIK=false\' to override Makefile defaulting" into gingerbread
Merge commit 'bdb2e9f3c203655648bd0a4e5ea64e9bb2cb2a13'
* commit 'bdb2e9f3c203655648bd0a4e5ea64e9bb2cb2a13':
Allow 'export WITH_HOST_DALVIK=false' to override Makefile defaulting
diff --git a/core/envsetup.mk b/core/envsetup.mk
index 729d933..1b40f7e 100644
--- a/core/envsetup.mk
+++ b/core/envsetup.mk
@@ -119,12 +119,16 @@
HOST_PREBUILT_TAG := $(HOST_OS)-$(HOST_ARCH)
endif
-# Build dalvikvm on hosts that support it, but not if we're building the sim
+# Default to building dalvikvm on hosts that support it...
ifeq ($(HOST_OS),linux)
+# ... but not if we're building the sim...
ifneq ($(TARGET_SIMULATOR),true)
+# ... or if the if the option is already set
+ifeq ($(WITH_HOST_DALVIK),)
WITH_HOST_DALVIK := true
endif
endif
+endif
# ---------------------------------------------------------------