blob: 4ede48ab81eba3ef23c77188197728dd85b311fe [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' Turner5ea91482014-02-13 18:02:56 +01007 android/utils/file_data_unittest.cpp \
8 android/utils/property_file_unittest.cpp \
David 'Digit' Turner60d0a152014-01-22 01:09:57 +01009 android/utils/win32_cmdline_quote_unittest.cpp \
David 'Digit' Turnerd3f2c272014-02-19 22:39:08 +010010 android/base/containers/PodVector_unittest.cpp \
11 android/base/containers/StringVector_unittest.cpp \
David 'Digit' Turner26aa4432014-02-11 17:08:33 +010012 android/base/EintrWrapper_unittest.cpp \
David 'Digit' Turner11823982014-02-11 23:48:52 +010013 android/base/files/PathUtils_unittest.cpp \
David 'Digit' Turner890f4642014-02-24 11:53:03 +010014 android/base/files/ScopedStdioFile_unittest.cpp \
David 'Digit' Turner7a41eef2014-02-07 15:56:41 +010015 android/base/Log_unittest.cpp \
David 'Digit' Turnerbaf99ee2014-02-08 11:32:04 +010016 android/base/memory/ScopedPtr_unittest.cpp \
David 'Digit' Turnerd3f2c272014-02-19 22:39:08 +010017 android/base/String_unittest.cpp \
David 'Digit' Turner11823982014-02-11 23:48:52 +010018 android/base/StringView_unittest.cpp \
David 'Digit' Turner890f4642014-02-24 11:53:03 +010019 android/filesystems/ext4_utils_unittest.cpp \
David 'Digit' Turnerc491b522014-01-21 03:30:13 +010020
21$(call start-emulator-program, emulator_unittests)
22LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
23LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
24LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
25LOCAL_CFLAGS += -O0
26LOCAL_STATIC_LIBRARIES += emulator-common emulator-libgtest
27$(call end-emulator-program)
28
29
30ifneq ($(filter linux darwin,$(HOST_OS)),)
31 $(call start-emulator-program, emulator64_unittests)
32 LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES)
33 LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS)
34 LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES)
35 LOCAL_CFLAGS += -O0 -m64
36 LOCAL_LDLIBS += -m64
37 LOCAL_STATIC_LIBRARIES += emulator64-common emulator64-libgtest
38 $(call end-emulator-program)
39endif