Makefile.tests revision 83942739a98f55db1e83ad39ddee6d294ad329f2
1# First include the GoogleTest library module definitions. 2include $(LOCAL_PATH)/distrib/googletest/Android.mk 3 4EMULATOR_UNITTESTS_SOURCES := \ 5 android/avd/util_unittest.cpp \ 6 android/utils/bufprint_unittest.cpp \ 7 android/utils/eintr_wrapper_unittest.cpp \ 8 android/utils/file_data_unittest.cpp \ 9 android/utils/host_bitness_unittest.cpp \ 10 android/utils/property_file_unittest.cpp \ 11 android/utils/win32_cmdline_quote_unittest.cpp \ 12 android/base/containers/PodVector_unittest.cpp \ 13 android/base/containers/StringVector_unittest.cpp \ 14 android/base/EintrWrapper_unittest.cpp \ 15 android/base/files/PathUtils_unittest.cpp \ 16 android/base/files/ScopedFd_unittest.cpp \ 17 android/base/files/ScopedStdioFile_unittest.cpp \ 18 android/base/Log_unittest.cpp \ 19 android/base/memory/MallocUsableSize_unittest.cpp \ 20 android/base/memory/ScopedPtr_unittest.cpp \ 21 android/base/String_unittest.cpp \ 22 android/base/StringFormat_unittest.cpp \ 23 android/base/StringView_unittest.cpp \ 24 android/emulation/CpuAccelerator_unittest.cpp \ 25 android/filesystems/ext4_utils_unittest.cpp \ 26 android/filesystems/partition_types_unittest.cpp \ 27 android/filesystems/testing/TestSupport.cpp \ 28 android/kernel/kernel_utils_unittest.cpp \ 29 30ifeq (windows,$(HOST_OS)) 31EMULATOR_UNITTESTS_SOURCES += \ 32 android/base/files/ScopedHandle_unittest.cpp \ 33 34endif 35 36$(call start-emulator-program, emulator_unittests) 37LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) 38LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS) 39LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES) 40LOCAL_CFLAGS += -O0 41LOCAL_STATIC_LIBRARIES += \ 42 emulator-common \ 43 emulator-libext4_utils \ 44 emulator-libsparse \ 45 emulator-libselinux \ 46 emulator-zlib \ 47 emulator-libgtest 48$(call end-emulator-program) 49 50 51$(call start-emulator64-program, emulator64_unittests) 52LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) 53LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS) 54LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES) 55LOCAL_CFLAGS += -O0 56LOCAL_STATIC_LIBRARIES += \ 57 emulator64-common \ 58 emulator64-libext4_utils \ 59 emulator64-libsparse \ 60 emulator64-libselinux \ 61 emulator64-zlib \ 62 emulator64-libgtest 63$(call end-emulator-program) 64