summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-07-23 14:21:45 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-07-23 14:21:45 -0700
commit8a7bc17da633d3577eda040ac490cbd8351dc6b9 (patch)
tree39054b0494486aa68d3852e5125c855af3e01952
parent3489af22a126e135acfc3c93beec9c31999c0ce6 (diff)
parent55c0ac8528fb07c9f0900013b828ee8c60120860 (diff)
downloadart-8a7bc17da633d3577eda040ac490cbd8351dc6b9.tar.gz
art-8a7bc17da633d3577eda040ac490cbd8351dc6b9.tar.bz2
art-8a7bc17da633d3577eda040ac490cbd8351dc6b9.zip
am 55c0ac85: Merge "Enable darwin target build for art."
* commit '55c0ac8528fb07c9f0900013b828ee8c60120860': Enable darwin target build for art.
-rw-r--r--Android.mk9
-rw-r--r--build/Android.common.mk4
-rw-r--r--build/Android.gtest.mk6
-rw-r--r--build/Android.libarttest.mk6
-rw-r--r--compiler/Android.mk14
-rw-r--r--dex2oat/Android.mk14
-rw-r--r--oatdump/Android.mk12
-rw-r--r--runtime/Android.mk12
8 files changed, 40 insertions, 37 deletions
diff --git a/Android.mk b/Android.mk
index 2e29385bc9..6c684280b0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -78,15 +78,6 @@ clean-oat-target:
adb shell rm system/app/*.odex
adb shell rm data/run-test/test-*/dalvik-cache/*@classes.dex
-########################################################################
-# darwin build
-
-# we aren't building most of art on darwin right now, but we do need to build new dalvikvm
-ifeq ($(HOST_OS),darwin)
-art_dont_bother := true
-include $(art_path)/dalvikvm/Android.mk
-endif
-
ifneq ($(art_dont_bother),true)
########################################################################
diff --git a/build/Android.common.mk b/build/Android.common.mk
index fcaa2bd533..bfb1f9b89b 100644
--- a/build/Android.common.mk
+++ b/build/Android.common.mk
@@ -25,8 +25,8 @@
#
ART_BUILD_TARGET_NDEBUG ?= true
ART_BUILD_TARGET_DEBUG ?= true
-ART_BUILD_HOST_NDEBUG ?= true
-ART_BUILD_HOST_DEBUG ?= true
+ART_BUILD_HOST_NDEBUG ?= $(WITH_HOST_DALVIK)
+ART_BUILD_HOST_DEBUG ?= $(WITH_HOST_DALVIK)
ifeq ($(ART_BUILD_TARGET_NDEBUG),false)
$(info Disabling ART_BUILD_TARGET_NDEBUG)
diff --git a/build/Android.gtest.mk b/build/Android.gtest.mk
index 407cef9ec0..ad333656d4 100644
--- a/build/Android.gtest.mk
+++ b/build/Android.gtest.mk
@@ -168,6 +168,8 @@ endef
ifeq ($(ART_BUILD_TARGET),true)
$(foreach file,$(TEST_TARGET_SRC_FILES), $(eval $(call build-art-test,target,$(file))))
endif
-ifeq ($(ART_BUILD_HOST),true)
- $(foreach file,$(TEST_HOST_SRC_FILES), $(eval $(call build-art-test,host,$(file))))
+ifeq ($(WITH_HOST_DALVIK),true)
+ ifeq ($(ART_BUILD_HOST),true)
+ $(foreach file,$(TEST_HOST_SRC_FILES), $(eval $(call build-art-test,host,$(file))))
+ endif
endif
diff --git a/build/Android.libarttest.mk b/build/Android.libarttest.mk
index 239f6c1dad..54a3859589 100644
--- a/build/Android.libarttest.mk
+++ b/build/Android.libarttest.mk
@@ -64,6 +64,8 @@ endef
ifeq ($(ART_BUILD_TARGET),true)
$(eval $(call build-libarttest,target))
endif
-ifeq ($(ART_BUILD_HOST),true)
- $(eval $(call build-libarttest,host))
+ifeq ($(WITH_HOST_DALVIK),true)
+ ifeq ($(ART_BUILD_HOST),true)
+ $(eval $(call build-libarttest,host))
+ endif
endif
diff --git a/compiler/Android.mk b/compiler/Android.mk
index c43d5a582d..68223a2076 100644
--- a/compiler/Android.mk
+++ b/compiler/Android.mk
@@ -222,12 +222,14 @@ endif
ifeq ($(ART_BUILD_TARGET_DEBUG),true)
$(eval $(call build-libart-compiler,target,debug))
endif
-# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target.
-ifeq ($(ART_BUILD_NDEBUG),true)
- $(eval $(call build-libart-compiler,host,ndebug))
-endif
-ifeq ($(ART_BUILD_DEBUG),true)
- $(eval $(call build-libart-compiler,host,debug))
+ifeq ($(WITH_HOST_DALVIK),true)
+ # We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target.
+ ifeq ($(ART_BUILD_NDEBUG),true)
+ $(eval $(call build-libart-compiler,host,ndebug))
+ endif
+ ifeq ($(ART_BUILD_DEBUG),true)
+ $(eval $(call build-libart-compiler,host,debug))
+ endif
endif
# Rule to build /system/lib/libcompiler_rt.a
diff --git a/dex2oat/Android.mk b/dex2oat/Android.mk
index 7bcf762daf..5cfab51d66 100644
--- a/dex2oat/Android.mk
+++ b/dex2oat/Android.mk
@@ -28,10 +28,12 @@ ifeq ($(ART_BUILD_TARGET_DEBUG),true)
$(eval $(call build-art-executable,dex2oat,$(DEX2OAT_SRC_FILES),libartd-compiler,art/compiler,target,debug))
endif
-# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target.
-ifeq ($(ART_BUILD_NDEBUG),true)
- $(eval $(call build-art-executable,dex2oat,$(DEX2OAT_SRC_FILES),libart-compiler,art/compiler,host,ndebug))
-endif
-ifeq ($(ART_BUILD_NDEBUG),true)
- $(eval $(call build-art-executable,dex2oat,$(DEX2OAT_SRC_FILES),libartd-compiler,art/compiler,host,debug))
+ifeq ($(WITH_HOST_DALVIK),true)
+ # We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target.
+ ifeq ($(ART_BUILD_NDEBUG),true)
+ $(eval $(call build-art-executable,dex2oat,$(DEX2OAT_SRC_FILES),libart-compiler,art/compiler,host,ndebug))
+ endif
+ ifeq ($(ART_BUILD_NDEBUG),true)
+ $(eval $(call build-art-executable,dex2oat,$(DEX2OAT_SRC_FILES),libartd-compiler,art/compiler,host,debug))
+ endif
endif
diff --git a/oatdump/Android.mk b/oatdump/Android.mk
index faa90ae442..bf5c41b74e 100644
--- a/oatdump/Android.mk
+++ b/oatdump/Android.mk
@@ -28,9 +28,11 @@ ifeq ($(ART_BUILD_TARGET_DEBUG),true)
$(eval $(call build-art-executable,oatdump,$(OATDUMP_SRC_FILES),,,target,debug))
endif
-ifeq ($(ART_BUILD_HOST_NDEBUG),true)
- $(eval $(call build-art-executable,oatdump,$(OATDUMP_SRC_FILES),,,host,ndebug))
-endif
-ifeq ($(ART_BUILD_HOST_DEBUG),true)
- $(eval $(call build-art-executable,oatdump,$(OATDUMP_SRC_FILES),,,host,debug))
+ifeq ($(WITH_HOST_DALVIK),true)
+ ifeq ($(ART_BUILD_HOST_NDEBUG),true)
+ $(eval $(call build-art-executable,oatdump,$(OATDUMP_SRC_FILES),,,host,ndebug))
+ endif
+ ifeq ($(ART_BUILD_HOST_DEBUG),true)
+ $(eval $(call build-art-executable,oatdump,$(OATDUMP_SRC_FILES),,,host,debug))
+ endif
endif
diff --git a/runtime/Android.mk b/runtime/Android.mk
index cc64b20fce..ae62d36e0c 100644
--- a/runtime/Android.mk
+++ b/runtime/Android.mk
@@ -360,9 +360,11 @@ ifeq ($(ART_BUILD_TARGET_DEBUG),true)
endif
# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target.
-ifeq ($(ART_BUILD_NDEBUG),true)
- $(eval $(call build-libart,host,ndebug))
-endif
-ifeq ($(ART_BUILD_DEBUG),true)
- $(eval $(call build-libart,host,debug))
+ifeq ($(WITH_HOST_DALVIK),true)
+ ifeq ($(ART_BUILD_NDEBUG),true)
+ $(eval $(call build-libart,host,ndebug))
+ endif
+ ifeq ($(ART_BUILD_DEBUG),true)
+ $(eval $(call build-libart,host,debug))
+ endif
endif