blob: 60a7c9efa95ffc4f3d62d8c968b771449582baf6 [file] [log] [blame]
Christopher Ferris70ca5e52014-02-04 22:09:16 -08001#######################################################
2## Shared definitions for all target test compilations.
3#######################################################
4
5LOCAL_CFLAGS += -DGTEST_OS_LINUX_ANDROID -DGTEST_HAS_STD_STRING
6
7LOCAL_C_INCLUDES += external/gtest/include
Dan Albert965bfef2014-05-14 14:16:47 -07008ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),)
9LOCAL_STATIC_LIBRARIES += libgtest_libcxx libgtest_main_libcxx
10else
Christopher Ferris70ca5e52014-02-04 22:09:16 -080011LOCAL_STATIC_LIBRARIES += libgtest libgtest_main
12
13ifndef LOCAL_SDK_VERSION
14LOCAL_C_INCLUDES += bionic \
15 bionic/libstdc++/include \
16 external/stlport/stlport
17LOCAL_SHARED_LIBRARIES += libstlport
Ben Chenge34bb092014-04-15 14:52:16 -070018LOCAL_STATIC_LIBRARIES += libstdc++
Christopher Ferris70ca5e52014-02-04 22:09:16 -080019endif
Dan Albert965bfef2014-05-14 14:16:47 -070020endif
Christopher Ferris70ca5e52014-02-04 22:09:16 -080021
22ifndef LOCAL_MODULE_PATH
23LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
24endif