blob: e0070c1b530770ef5cf6a2926bacaade96130983 [file] [log] [blame]
Christopher Ferris70ca5e52014-02-04 22:09:16 -08001#####################################################
2## Shared definitions for all host test compilations.
3#####################################################
4
Adam Lesinski318217a2014-10-20 16:06:44 -07005ifeq ($(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
Christopher Ferris70ca5e52014-02-04 22:09:16 -080013LOCAL_C_INCLUDES += external/gtest/include
14
15LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host