blob: 21977eb0028c8a39c609cd14c07c15fb0d3a4d86 [file] [log] [blame]
David 'Digit' Turnerc491b522014-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' Turner60d0a152014-01-22 01:09:57 +01005 android/utils/bufprint_unittest.cpp \
David 'Digit' Turner52e99422014-02-03 17:11:18 +01006 android/utils/eintr_wrapper_unittest.cpp \
David 'Digit' Turner60d0a152014-01-22 01:09:57 +01007 android/utils/win32_cmdline_quote_unittest.cpp \
David 'Digit' Turner26aa4432014-02-11 17:08:33 +01008 android/base/EintrWrapper_unittest.cpp \
David 'Digit' Turner11823982014-02-11 23:48:52 +01009 android/base/files/PathUtils_unittest.cpp \
David 'Digit' Turner7a41eef2014-02-07 15:56:41 +010010 android/base/Log_unittest.cpp \
David 'Digit' Turnerbaf99ee2014-02-08 11:32:04 +010011 android/base/memory/ScopedPtr_unittest.cpp \
David 'Digit' Turner11823982014-02-11 23:48:52 +010012 android/base/StringView_unittest.cpp \
David 'Digit' Turnerc491b522014-01-21 03:30:13 +010013
14$(call start-emulator-program, emulator_unittests)
15LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
16LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
17LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
18LOCAL_CFLAGS += -O0
19LOCAL_STATIC_LIBRARIES += emulator-common emulator-libgtest
20$(call end-emulator-program)
21
22
23ifneq ($(filter linux darwin,$(HOST_OS)),)
24 $(call start-emulator-program, emulator64_unittests)
25 LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
26 LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
27 LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
28 LOCAL_CFLAGS += -O0 -m64
29 LOCAL_LDLIBS += -m64
30 LOCAL_STATIC_LIBRARIES += emulator64-common emulator64-libgtest
31 $(call end-emulator-program)
32endif