blob: 426c400ad2d88ba305252dd9c487d8154787eb5b [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)),)
Dan Albert9b0c6ff2014-05-14 14:16:47 -07009LOCAL_STATIC_LIBRARIES += libgtest_libc++_host libgtest_main_libc++_host
Dan Albert965bfef2014-05-14 14:16:47 -070010else
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