7a5498568f
So that we can support building both linux and windows binaries at the same time on a linux host. This replaces the ifeq($(HOST_OS),...) checks in Android.mk files. Bug: 23566667 Change-Id: I693e11984e36d55bb6f09fa0d49bc485463e16fb
14 lines
501 B
Makefile
14 lines
501 B
Makefile
#####################################################
|
|
## Shared definitions for all host test compilations.
|
|
#####################################################
|
|
|
|
LOCAL_CFLAGS_windows += -DGTEST_OS_WINDOWS
|
|
LOCAL_CFLAGS_linux += -DGTEST_OS_LINUX
|
|
LOCAL_LDLIBS_linux += -lpthread
|
|
LOCAL_CFLAGS_darwin += -DGTEST_OS_LINUX
|
|
LOCAL_LDLIBS_darwin += -lpthread
|
|
|
|
LOCAL_CFLAGS += -DGTEST_HAS_STD_STRING -O0 -g
|
|
LOCAL_C_INCLUDES += external/gtest/include
|
|
|
|
LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
|