am ea24f794: am 318217a8: Enable building of gtest for Windows

* commit 'ea24f7947969a874cd4039e66af116ae655ea140':
  Enable building of gtest for Windows
This commit is contained in:
Adam Lesinski
2014-10-21 16:53:47 +00:00
committed by Android Git Automerger

View File

@@ -2,7 +2,14 @@
## Shared definitions for all host test compilations.
#####################################################
LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
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
my_test_libcxx := false
@@ -19,4 +26,3 @@ LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
LOCAL_SHARED_LIBRARIES +=
endif
LOCAL_LDLIBS += -lpthread