2014-02-05 07:09:16 +01:00
|
|
|
#####################################################
|
|
|
|
## Shared definitions for all host test compilations.
|
|
|
|
#####################################################
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
|
|
|
|
LOCAL_C_INCLUDES += external/gtest/include
|
|
|
|
|
2014-09-27 00:45:33 +02:00
|
|
|
my_test_libcxx := false
|
|
|
|
ifeq (,$(TARGET_BUILD_APPS))
|
|
|
|
ifneq ($(filter $(strip $(LOCAL_CXX_STL)),libc++ libc++_static),)
|
|
|
|
my_test_libcxx := true
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(my_test_libcxx),true)
|
2014-05-14 23:16:47 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES += libgtest_libc++_host libgtest_main_libc++_host
|
2014-05-14 23:16:47 +02:00
|
|
|
else
|
2014-02-05 07:09:16 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
|
|
|
|
LOCAL_SHARED_LIBRARIES +=
|
2014-05-14 23:16:47 +02:00
|
|
|
endif
|
2014-02-05 07:09:16 +01:00
|
|
|
|
|
|
|
LOCAL_LDLIBS += -lpthread
|