1 ####################################################### 2 ## Shared definitions for all target test compilations. 3 ####################################################### 4 5 LOCAL_CFLAGS += -DGTEST_OS_LINUX_ANDROID -DGTEST_HAS_STD_STRING 6 7 LOCAL_C_INCLUDES += external/gtest/include 8 ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),) 9 LOCAL_STATIC_LIBRARIES += libgtest_libc++ libgtest_main_libc++ 10 else 11 LOCAL_STATIC_LIBRARIES += libgtest libgtest_main 12 13 ifndef LOCAL_SDK_VERSION 14 LOCAL_C_INCLUDES += bionic \ 15 bionic/libstdc++/include \ 16 external/stlport/stlport 17 LOCAL_SHARED_LIBRARIES += libstlport 18 LOCAL_STATIC_LIBRARIES += libstdc++ 19 endif 20 endif 21 22 ifdef LOCAL_MODULE_PATH 23 $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE)) 24 endif 25 26 ifdef LOCAL_MODULE_PATH_32 27 $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_32 when building test $(LOCAL_MODULE)) 28 endif 29 30 ifdef LOCAL_MODULE_PATH_64 31 $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_64 when building test $(LOCAL_MODULE)) 32 endif 33 34 LOCAL_MODULE_PATH_64 := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) 35 LOCAL_MODULE_PATH_32 := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) 36