David 'Digit' Turner | c491b52 | 2014-01-21 03:30:13 +0100 | [diff] [blame] | 1 | # First include the GoogleTest library module definitions. |
| 2 | include $(LOCAL_PATH)/distrib/googletest/Android.mk |
| 3 | |
| 4 | EMULATOR_UNITTESTS_SOURCES := \ |
David 'Digit' Turner | 60d0a15 | 2014-01-22 01:09:57 +0100 | [diff] [blame] | 5 | android/utils/bufprint_unittest.cpp \ |
David 'Digit' Turner | 52e9942 | 2014-02-03 17:11:18 +0100 | [diff] [blame] | 6 | android/utils/eintr_wrapper_unittest.cpp \ |
David 'Digit' Turner | 5ea9148 | 2014-02-13 18:02:56 +0100 | [diff] [blame] | 7 | android/utils/file_data_unittest.cpp \ |
| 8 | android/utils/property_file_unittest.cpp \ |
David 'Digit' Turner | 60d0a15 | 2014-01-22 01:09:57 +0100 | [diff] [blame] | 9 | android/utils/win32_cmdline_quote_unittest.cpp \ |
David 'Digit' Turner | d3f2c27 | 2014-02-19 22:39:08 +0100 | [diff] [blame^] | 10 | android/base/containers/PodVector_unittest.cpp \ |
| 11 | android/base/containers/StringVector_unittest.cpp \ |
David 'Digit' Turner | 26aa443 | 2014-02-11 17:08:33 +0100 | [diff] [blame] | 12 | android/base/EintrWrapper_unittest.cpp \ |
David 'Digit' Turner | 1182398 | 2014-02-11 23:48:52 +0100 | [diff] [blame] | 13 | android/base/files/PathUtils_unittest.cpp \ |
David 'Digit' Turner | 890f464 | 2014-02-24 11:53:03 +0100 | [diff] [blame] | 14 | android/base/files/ScopedStdioFile_unittest.cpp \ |
David 'Digit' Turner | 7a41eef | 2014-02-07 15:56:41 +0100 | [diff] [blame] | 15 | android/base/Log_unittest.cpp \ |
David 'Digit' Turner | baf99ee | 2014-02-08 11:32:04 +0100 | [diff] [blame] | 16 | android/base/memory/ScopedPtr_unittest.cpp \ |
David 'Digit' Turner | d3f2c27 | 2014-02-19 22:39:08 +0100 | [diff] [blame^] | 17 | android/base/String_unittest.cpp \ |
David 'Digit' Turner | 1182398 | 2014-02-11 23:48:52 +0100 | [diff] [blame] | 18 | android/base/StringView_unittest.cpp \ |
David 'Digit' Turner | 890f464 | 2014-02-24 11:53:03 +0100 | [diff] [blame] | 19 | android/filesystems/ext4_utils_unittest.cpp \ |
David 'Digit' Turner | c491b52 | 2014-01-21 03:30:13 +0100 | [diff] [blame] | 20 | |
| 21 | $(call start-emulator-program, emulator_unittests) |
| 22 | LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) |
| 23 | LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS) |
| 24 | LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES) |
| 25 | LOCAL_CFLAGS += -O0 |
| 26 | LOCAL_STATIC_LIBRARIES += emulator-common emulator-libgtest |
| 27 | $(call end-emulator-program) |
| 28 | |
| 29 | |
| 30 | ifneq ($(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) |
| 39 | endif |