blob: 225e6ebd15d34b20e69bc0efb9d3570a5f0be297 [file] [log] [blame]
David 'Digit' Turner57deae32014-01-21 03:30:13 +01001# First include the GoogleTest library module definitions.
2include $(LOCAL_PATH)/distrib/googletest/Android.mk
3
4EMULATOR_UNITTESTS_SOURCES := \
David 'Digit' Turner7745b322014-01-22 01:09:57 +01005 android/utils/bufprint_unittest.cpp \
David 'Digit' Turneraf81d742014-02-03 17:11:18 +01006 android/utils/eintr_wrapper_unittest.cpp \
David 'Digit' Turner7745b322014-01-22 01:09:57 +01007 android/utils/win32_cmdline_quote_unittest.cpp \
David 'Digit' Turner57deae32014-01-21 03:30:13 +01008
9$(call start-emulator-program, emulator_unittests)
10LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
11LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
12LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
13LOCAL_CFLAGS += -O0
14LOCAL_STATIC_LIBRARIES += emulator-common emulator-libgtest
15$(call end-emulator-program)
16
17
18ifneq ($(filter linux darwin,$(HOST_OS)),)
19 $(call start-emulator-program, emulator64_unittests)
20 LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
21 LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
22 LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
23 LOCAL_CFLAGS += -O0 -m64
24 LOCAL_LDLIBS += -m64
25 LOCAL_STATIC_LIBRARIES += emulator64-common emulator64-libgtest
26 $(call end-emulator-program)
27endif