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 8 9ifndef LOCAL_SDK_VERSION 10LOCAL_STATIC_LIBRARIES += libgtest libgtest_main 11else 12LOCAL_STATIC_LIBRARIES += libgtest_ndk libgtest_main_ndk 13endif 14 15ifdef LOCAL_MODULE_PATH 16$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE)) 17endif 18 19ifdef LOCAL_MODULE_PATH_32 20$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_32 when building test $(LOCAL_MODULE)) 21endif 22 23ifdef LOCAL_MODULE_PATH_64 24$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_64 when building test $(LOCAL_MODULE)) 25endif 26 27LOCAL_MODULE_PATH_64 := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) 28LOCAL_MODULE_PATH_32 := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) 29