LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
include $(BUILD_STATIC_LIBRARY)
+# Only supported on linux systems.
+ifeq ($(HOST_OS),linux)
+
include $(CLEAR_VARS)
LOCAL_MODULE := libbenchmark
LOCAL_CFLAGS += -O2 -Wall -Wextra -Werror
LOCAL_MULTILIB := both
include $(BUILD_HOST_STATIC_LIBRARY)
+endif
+
# -----------------------------------------------------------------------------
# Benchmarks.
# -----------------------------------------------------------------------------
# performance of the old release's libc, and a static benchmark isn't
# going to let you do that.
+# Only supported on linux systems.
+ifeq ($(HOST_OS),linux)
+
# Build benchmarks for the host (against glibc!). Run with:
include $(CLEAR_VARS)
LOCAL_MODULE := bionic-benchmarks-glibc
LOCAL_STATIC_LIBRARIES += libbenchmark
include $(BUILD_HOST_EXECUTABLE)
+endif
+
ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
include $(LOCAL_PATH)/../build/run-on-host.mk