Christopher Ferris | 70ca5e5 | 2014-02-04 22:09:16 -0800 | [diff] [blame] | 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 |
Dan Albert | 965bfef | 2014-05-14 14:16:47 -0700 | [diff] [blame] | 8 | ifneq ($(filter libc++,$(LOCAL_SHARED_LIBRARIES)),) |
Dan Albert | 9b0c6ff | 2014-05-14 14:16:47 -0700 | [diff] [blame] | 9 | LOCAL_STATIC_LIBRARIES += libgtest_libc++ libgtest_main_libc++ |
Dan Albert | 965bfef | 2014-05-14 14:16:47 -0700 | [diff] [blame] | 10 | else |
Christopher Ferris | 70ca5e5 | 2014-02-04 22:09:16 -0800 | [diff] [blame] | 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 |
Ben Cheng | e34bb09 | 2014-04-15 14:52:16 -0700 | [diff] [blame] | 18 | LOCAL_STATIC_LIBRARIES += libstdc++ |
Christopher Ferris | 70ca5e5 | 2014-02-04 22:09:16 -0800 | [diff] [blame] | 19 | endif |
Dan Albert | 965bfef | 2014-05-14 14:16:47 -0700 | [diff] [blame] | 20 | endif |
Christopher Ferris | 70ca5e5 | 2014-02-04 22:09:16 -0800 | [diff] [blame] | 21 | |
Colin Cross | 8c141e7 | 2014-03-24 18:39:18 -0700 | [diff] [blame] | 22 | ifdef LOCAL_MODULE_PATH |
| 23 | $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE)) |
Christopher Ferris | 70ca5e5 | 2014-02-04 22:09:16 -0800 | [diff] [blame] | 24 | endif |
Colin Cross | 8c141e7 | 2014-03-24 18:39:18 -0700 | [diff] [blame] | 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 | |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 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) |