summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
+ },
},
}