1####################################################### 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 8ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),) 9LOCAL_STATIC_LIBRARIES += libgtest_libc++ libgtest_main_libc++ 10else 11LOCAL_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 18LOCAL_STATIC_LIBRARIES += libstdc++ 19endif 20endif 21 22ifdef LOCAL_MODULE_PATH 23$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE)) 24endif 25 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 34LOCAL_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) 36