1##################################################### 2## Shared definitions for all host test compilations. 3##################################################### 4 5ifeq ($(LOCAL_GTEST),true) 6 LOCAL_CFLAGS_linux += -DGTEST_OS_LINUX 7 LOCAL_CFLAGS_darwin += -DGTEST_OS_MAC 8 9 LOCAL_CFLAGS += -DGTEST_HAS_STD_STRING -O0 -g 10 11 LOCAL_STATIC_LIBRARIES += libgtest_main_host libgtest_host 12endif 13 14ifdef LOCAL_MODULE_PATH 15$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE)) 16endif 17 18ifdef LOCAL_MODULE_PATH_32 19$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_32 when building test $(LOCAL_MODULE)) 20endif 21 22ifdef LOCAL_MODULE_PATH_64 23$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH_64 when building test $(LOCAL_MODULE)) 24endif 25 26ifndef LOCAL_MODULE_RELATIVE_PATH 27LOCAL_MODULE_RELATIVE_PATH := $(LOCAL_MODULE) 28endif 29