Home | History | Annotate | Download | only in qemu
      1 # First include the GoogleTest library module definitions.
      2 include $(LOCAL_PATH)/distrib/googletest/Android.mk
      3 
      4 EMULATOR_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/fstab_parser_unittest.cpp \
     27   android/filesystems/partition_types_unittest.cpp \
     28   android/filesystems/ramdisk_extractor_unittest.cpp \
     29   android/filesystems/testing/TestSupport.cpp \
     30   android/kernel/kernel_utils_unittest.cpp \
     31 
     32 ifeq (windows,$(HOST_OS))
     33 EMULATOR_UNITTESTS_SOURCES += \
     34   android/base/files/ScopedHandle_unittest.cpp \
     35 
     36 endif
     37 
     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
     43 LOCAL_STATIC_LIBRARIES += \
     44     emulator-common \
     45     emulator-libext4_utils \
     46     emulator-libsparse \
     47     emulator-libselinux \
     48     emulator-zlib \
     49     emulator-libgtest
     50 $(call end-emulator-program)
     51 
     52 
     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
     58 LOCAL_STATIC_LIBRARIES += \
     59     emulator64-common \
     60     emulator64-libext4_utils \
     61     emulator64-libsparse \
     62     emulator64-libselinux \
     63     emulator64-zlib \
     64     emulator64-libgtest
     65 $(call end-emulator-program)
     66