summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yo Chiang <yochiang@google.com> 2020-08-06 16:04:57 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-08-06 16:04:57 +0000
commit2bed872dd8dd9d7e37f8a1878051d17cb0fc4961 (patch)
tree60c3e08f47804dd575099b319d5974807a05ec80
parentc987020c806de1e1b3f78f5a132e1e9dcae23c63 (diff)
parentb2fb9399fbb55ec1048cf1126bcda5d32ddf53ed (diff)
art: Disable host module on darwin am: 47f9c9fdd0 am: b2fb9399fb
Original change: https://android-review.googlesource.com/c/platform/art/+/1385031 Change-Id: I6ba062d95ff72dfbb068224cdf884f069b1d67af
-rw-r--r--Android.mk4
-rw-r--r--build/Android.bp4
-rw-r--r--tools/Android.bp6
3 files changed, 14 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 7ce7ed8b03..5a236ce3c0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -413,6 +413,7 @@ include $(BUILD_PHONY_PACKAGE)
# The art-tools package depends on helpers and tools that are useful for developers. Similar
# dependencies exist for the APEX builds for these tools (see build/apex/Android.bp).
+ifneq ($(HOST_OS),darwin)
include $(CLEAR_VARS)
LOCAL_MODULE := art-tools
LOCAL_IS_HOST_MODULE := true
@@ -433,6 +434,7 @@ LOCAL_REQUIRED_MODULES += \
endif
include $(BUILD_PHONY_PACKAGE)
+endif # HOST_OS != darwin
####################################################################################################
# Fake packages to ensure generation of libopenjdkd when one builds with mm/mmm/mmma.
@@ -445,6 +447,7 @@ include $(BUILD_PHONY_PACKAGE)
# 64-bit systems, even if it is the default.
# ART on the host.
+ifneq ($(HOST_OS),darwin)
ifeq ($(ART_BUILD_HOST_DEBUG),true)
include $(CLEAR_VARS)
LOCAL_MODULE := art-libartd-libopenjdkd-host-dependency
@@ -453,6 +456,7 @@ LOCAL_REQUIRED_MODULES := libopenjdkd
LOCAL_IS_HOST_MODULE := true
include $(BUILD_PHONY_PACKAGE)
endif
+endif # HOST_OS != darwin
# ART on the target.
ifeq ($(ART_BUILD_TARGET_DEBUG),true)
diff --git a/build/Android.bp b/build/Android.bp
index 6ac0f5b12f..8d8b7e9629 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -266,6 +266,10 @@ java_library {
hostdex: {
required: ["libjavacrypto"],
},
+ darwin: {
+ // required module "libjavacrypto" is disabled on darwin
+ enabled: false,
+ },
},
}
diff --git a/tools/Android.bp b/tools/Android.bp
index e9badc4a14..042eb199d7 100644
--- a/tools/Android.bp
+++ b/tools/Android.bp
@@ -47,6 +47,9 @@ sh_binary {
"dex2oat",
],
},
+ darwin: {
+ enabled: false,
+ },
},
}
@@ -66,5 +69,8 @@ sh_binary {
"dex2oat",
],
},
+ darwin: {
+ enabled: false,
+ },
},
}