blob: 95d415989c7fffbf86a90ae84295c584c5b5b847 [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)),)
Dan Albert9b0c6ff2014-05-14 14:16:47 -07009LOCAL_STATIC_LIBRARIES += libgtest_libc++ libgtest_main_libc++
Dan Albert965bfef2014-05-14 14:16:47 -070010else
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
Colin Cross8c141e72014-03-24 18:39:18 -070022ifdef LOCAL_MODULE_PATH
23$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE))
Christopher Ferris70ca5e52014-02-04 22:09:16 -080024endif
Colin Cross8c141e72014-03-24 18:39:18 -070025
26ifdef LOCAL_MODULE_PATH_32
27$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_32 when building test $(LOCAL_MODULE))
28endif
29
30ifdef LOCAL_MODULE_PATH_64
31$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_64 when building test $(LOCAL_MODULE))
32endif
33
Ying Wang4b1c95d2014-07-08 17:07:36 -070034LOCAL_MODULE_PATH_64 := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
35LOCAL_MODULE_PATH_32 := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)