David 'Digit' Turner | 57deae3 | 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 | 7745b32 | 2014-01-22 01:09:57 +0100 | [diff] [blame] | 5 | android/utils/bufprint_unittest.cpp \ |
David 'Digit' Turner | af81d74 | 2014-02-03 17:11:18 +0100 | [diff] [blame] | 6 | android/utils/eintr_wrapper_unittest.cpp \ |
David 'Digit' Turner | 7745b32 | 2014-01-22 01:09:57 +0100 | [diff] [blame] | 7 | android/utils/win32_cmdline_quote_unittest.cpp \ |
David 'Digit' Turner | 57deae3 | 2014-01-21 03:30:13 +0100 | [diff] [blame] | 8 | |
| 9 | $(call start-emulator-program, emulator_unittests) |
| 10 | LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) |
| 11 | LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS) |
| 12 | LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES) |
| 13 | LOCAL_CFLAGS += -O0 |
| 14 | LOCAL_STATIC_LIBRARIES += emulator-common emulator-libgtest |
| 15 | $(call end-emulator-program) |
| 16 | |
| 17 | |
| 18 | ifneq ($(filter linux darwin,$(HOST_OS)),) |
| 19 | $(call start-emulator-program, emulator64_unittests) |
| 20 | LOCAL_C_INCLUDES += $(EMULATOR_GTEST_INCLUDES) |
| 21 | LOCAL_LDLIBS += $(EMULATOR_GTEST_LDLIBS) |
| 22 | LOCAL_SRC_FILES := $(EMULATOR_UNITTESTS_SOURCES) |
| 23 | LOCAL_CFLAGS += -O0 -m64 |
| 24 | LOCAL_LDLIBS += -m64 |
| 25 | LOCAL_STATIC_LIBRARIES += emulator64-common emulator64-libgtest |
| 26 | $(call end-emulator-program) |
| 27 | endif |