blob: c2c318656bea21ca56db024a1752ac928a859fbf [file] [log] [blame]
Christopher Ferris70ca5e52014-02-04 22:09:16 -08001#####################################################
2## Shared definitions for all host test compilations.
3#####################################################
4
5LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
6LOCAL_C_INCLUDES += external/gtest/include
7
Dan Albert965bfef2014-05-14 14:16:47 -07008ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),)
9LOCAL_STATIC_LIBRARIES += libgtest_libcxx_host libgtest_main_libcxx_host
10else
Christopher Ferris70ca5e52014-02-04 22:09:16 -080011LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
12LOCAL_SHARED_LIBRARIES +=
Dan Albert965bfef2014-05-14 14:16:47 -070013endif
Christopher Ferris70ca5e52014-02-04 22:09:16 -080014
15LOCAL_LDLIBS += -lpthread