blob: c057e9a32b70181e6460de23cf1be7e1fadcbb63 [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 \
6 android/utils/win32_cmdline_quote_unittest.cpp \
David 'Digit' Turner57deae32014-01-21 03:30:13 +01007
8$(call start-emulator-program, emulator_unittests)
9LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
10LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
11LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
12LOCAL_CFLAGS += -O0
13LOCAL_STATIC_LIBRARIES += emulator-common emulator-libgtest
14$(call end-emulator-program)
15
16
17ifneq ($(filter linux darwin,$(HOST_OS)),)
18 $(call start-emulator-program, emulator64_unittests)
19 LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
20 LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
21 LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
22 LOCAL_CFLAGS += -O0 -m64
23 LOCAL_LDLIBS += -m64
24 LOCAL_STATIC_LIBRARIES += emulator64-common emulator64-libgtest
25 $(call end-emulator-program)
26endif