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 | fd442bd | 2014-04-01 14:13:12 +0200 | [diff] [blame] | 5 | android/avd/util_unittest.cpp \ |
David 'Digit' Turner | 60d0a15 | 2014-01-22 01:09:57 +0100 | [diff] [blame] | 6 | android/utils/bufprint_unittest.cpp \ |
David 'Digit' Turner | 52e9942 | 2014-02-03 17:11:18 +0100 | [diff] [blame] | 7 | android/utils/eintr_wrapper_unittest.cpp \ |
David 'Digit' Turner | 5ea9148 | 2014-02-13 18:02:56 +0100 | [diff] [blame] | 8 | android/utils/file_data_unittest.cpp \ |
David 'Digit' Turner | ee57375 | 2014-06-17 09:59:41 +0200 | [diff] [blame] | 9 | android/utils/host_bitness_unittest.cpp \ |
David 'Digit' Turner | 5ea9148 | 2014-02-13 18:02:56 +0100 | [diff] [blame] | 10 | android/utils/property_file_unittest.cpp \ |
David 'Digit' Turner | 60d0a15 | 2014-01-22 01:09:57 +0100 | [diff] [blame] | 11 | android/utils/win32_cmdline_quote_unittest.cpp \ |
David 'Digit' Turner | d3f2c27 | 2014-02-19 22:39:08 +0100 | [diff] [blame] | 12 | android/base/containers/PodVector_unittest.cpp \ |
| 13 | android/base/containers/StringVector_unittest.cpp \ |
David 'Digit' Turner | 26aa443 | 2014-02-11 17:08:33 +0100 | [diff] [blame] | 14 | android/base/EintrWrapper_unittest.cpp \ |
David 'Digit' Turner | 1182398 | 2014-02-11 23:48:52 +0100 | [diff] [blame] | 15 | android/base/files/PathUtils_unittest.cpp \ |
David 'Digit' Turner | 97502fa | 2014-04-28 22:05:28 +0200 | [diff] [blame] | 16 | android/base/files/ScopedFd_unittest.cpp \ |
David 'Digit' Turner | 890f464 | 2014-02-24 11:53:03 +0100 | [diff] [blame] | 17 | android/base/files/ScopedStdioFile_unittest.cpp \ |
David 'Digit' Turner | 7a41eef | 2014-02-07 15:56:41 +0100 | [diff] [blame] | 18 | android/base/Log_unittest.cpp \ |
David 'Digit' Turner | e87cd78 | 2014-02-26 14:45:03 +0100 | [diff] [blame] | 19 | android/base/memory/MallocUsableSize_unittest.cpp \ |
David 'Digit' Turner | baf99ee | 2014-02-08 11:32:04 +0100 | [diff] [blame] | 20 | android/base/memory/ScopedPtr_unittest.cpp \ |
David 'Digit' Turner | d3f2c27 | 2014-02-19 22:39:08 +0100 | [diff] [blame] | 21 | android/base/String_unittest.cpp \ |
David 'Digit' Turner | 97502fa | 2014-04-28 22:05:28 +0200 | [diff] [blame] | 22 | android/base/StringFormat_unittest.cpp \ |
David 'Digit' Turner | 1182398 | 2014-02-11 23:48:52 +0100 | [diff] [blame] | 23 | android/base/StringView_unittest.cpp \ |
David 'Digit' Turner | 045bdbe | 2014-04-28 22:26:52 +0200 | [diff] [blame] | 24 | android/emulation/CpuAccelerator_unittest.cpp \ |
David 'Digit' Turner | 890f464 | 2014-02-24 11:53:03 +0100 | [diff] [blame] | 25 | android/filesystems/ext4_utils_unittest.cpp \ |
David 'Digit' Turner | c8e89b5 | 2014-06-23 17:32:20 +0200 | [diff] [blame] | 26 | android/filesystems/fstab_parser_unittest.cpp \ |
David 'Digit' Turner | 8394273 | 2014-06-17 11:06:12 +0200 | [diff] [blame] | 27 | android/filesystems/partition_types_unittest.cpp \ |
David 'Digit' Turner | 716e5e1 | 2014-06-21 01:11:13 +0200 | [diff] [blame] | 28 | android/filesystems/ramdisk_extractor_unittest.cpp \ |
David 'Digit' Turner | 8394273 | 2014-06-17 11:06:12 +0200 | [diff] [blame] | 29 | android/filesystems/testing/TestSupport.cpp \ |
David 'Digit' Turner | c6e0cae | 2014-03-07 23:08:30 +0100 | [diff] [blame] | 30 | android/kernel/kernel_utils_unittest.cpp \ |
David 'Digit' Turner | c491b52 | 2014-01-21 03:30:13 +0100 | [diff] [blame] | 31 | |
David 'Digit' Turner | 97502fa | 2014-04-28 22:05:28 +0200 | [diff] [blame] | 32 | ifeq (windows,$(HOST_OS)) |
| 33 | EMULATOR_UNITTESTS_SOURCES += \ |
| 34 | android/base/files/ScopedHandle_unittest.cpp \ |
| 35 | |
| 36 | endif |
| 37 | |
David 'Digit' Turner | c491b52 | 2014-01-21 03:30:13 +0100 | [diff] [blame] | 38 | $(call start-emulator-program, emulator_unittests) |
| 39 | LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) |
| 40 | LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS) |
| 41 | LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES) |
| 42 | LOCAL_CFLAGS += -O0 |
David 'Digit' Turner | dddfa64 | 2014-06-12 18:48:17 +0200 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES += \ |
| 44 | emulator-common \ |
| 45 | emulator-libext4_utils \ |
| 46 | emulator-libsparse \ |
| 47 | emulator-libselinux \ |
| 48 | emulator-zlib \ |
| 49 | emulator-libgtest |
David 'Digit' Turner | c491b52 | 2014-01-21 03:30:13 +0100 | [diff] [blame] | 50 | $(call end-emulator-program) |
| 51 | |
| 52 | |
David 'Digit' Turner | 9669d49 | 2014-06-12 01:20:53 +0200 | [diff] [blame] | 53 | $(call start-emulator64-program, emulator64_unittests) |
| 54 | LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) |
| 55 | LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS) |
| 56 | LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES) |
| 57 | LOCAL_CFLAGS += -O0 |
David 'Digit' Turner | dddfa64 | 2014-06-12 18:48:17 +0200 | [diff] [blame] | 58 | LOCAL_STATIC_LIBRARIES += \ |
| 59 | emulator64-common \ |
| 60 | emulator64-libext4_utils \ |
| 61 | emulator64-libsparse \ |
| 62 | emulator64-libselinux \ |
| 63 | emulator64-zlib \ |
| 64 | emulator64-libgtest |
David 'Digit' Turner | 9669d49 | 2014-06-12 01:20:53 +0200 | [diff] [blame] | 65 | $(call end-emulator-program) |