blob: 691468d397e5672992a241579e71790c3a697d58 [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
Dan Albert965bfef2014-05-14 14:16:47 -070015ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),)
Dan Albert9b0c6ff2014-05-14 14:16:47 -070016LOCAL_STATIC_LIBRARIES += libgtest_libc++_host libgtest_main_libc++_host
Dan Albert965bfef2014-05-14 14:16:47 -070017else
Christopher Ferris70ca5e52014-02-04 22:09:16 -080018LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
19LOCAL_SHARED_LIBRARIES +=
Dan Albert965bfef2014-05-14 14:16:47 -070020endif
Christopher Ferris70ca5e52014-02-04 22:09:16 -080021