blob: 180e38e3ef27dd7011174fc55a7c5530e536d329 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
test_executable := bionic-unit-tests-cts
list_executable := $(test_executable)_list
include $(CLEAR_VARS)
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_MODULE := $(test_executable)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
LOCAL_SHARED_LIBRARIES += \
libdl \
LOCAL_WHOLE_STATIC_LIBRARIES += \
libBionicTests \
LOCAL_STATIC_LIBRARIES += \
libtinyxml2 \
liblog \
libgtest_libc++ \
libgtest_main_libc++ \
LOCAL_CTS_TEST_PACKAGE := android.bionic
include $(BUILD_CTS_EXECUTABLE)
ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
include $(CLEAR_VARS)
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := $(list_executable)
# A main without the extra output from the gtest main.
LOCAL_SRC_FILES := \
main.cpp \
LOCAL_LDLIBS += \
-lrt \
LOCAL_WHOLE_STATIC_LIBRARIES += \
libBionicTests \
LOCAL_CXX_STL := libc++
include $(BUILD_HOST_NATIVE_TEST)
endif # ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))