318217a84a
Windows does not have pthread support, and by defining the GTEST_OS_WINDOWS flag, pthread support will not be built into the windows version of gtest. Change-Id: I0571fc52e77bb04175470d5750a7e2f46cdd5e86
21 lines
608 B
Makefile
21 lines
608 B
Makefile
#####################################################
|
|
## Shared definitions for all host test compilations.
|
|
#####################################################
|
|
|
|
ifeq ($(HOST_OS),windows)
|
|
LOCAL_CFLAGS += -DGTEST_OS_WINDOWS
|
|
else
|
|
LOCAL_CFLAGS += -DGTEST_OS_LINUX
|
|
LOCAL_LDLIBS += -lpthread
|
|
endif
|
|
|
|
LOCAL_CFLAGS += -DGTEST_HAS_STD_STRING -O0 -g
|
|
LOCAL_C_INCLUDES += external/gtest/include
|
|
|
|
ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),)
|
|
LOCAL_STATIC_LIBRARIES += libgtest_libc++_host libgtest_main_libc++_host
|
|
else
|
|
LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
|
|
LOCAL_SHARED_LIBRARIES +=
|
|
endif
|
|
|