1##################################################### 2## Shared definitions for all host test compilations. 3##################################################### 4 5ifeq ($(HOST_OS),windows) 6LOCAL_CFLAGS += -DGTEST_OS_WINDOWS 7else 8LOCAL_CFLAGS += -DGTEST_OS_LINUX 9LOCAL_LDLIBS += -lpthread 10endif 11 12LOCAL_CFLAGS += -DGTEST_HAS_STD_STRING -O0 -g 13LOCAL_C_INCLUDES += external/gtest/include 14 15ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),) 16LOCAL_STATIC_LIBRARIES += libgtest_libc++_host libgtest_main_libc++_host 17else 18LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host 19LOCAL_SHARED_LIBRARIES += 20endif 21 22