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 | |
| 22 | ifndef LOCAL_MODULE_PATH |
| 23 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 24 | endif |