Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 1 | ########################################### |
| 2 | ## A thin wrapper around BUILD_EXECUTABLE |
| 3 | ## Common flags for native tests are added. |
| 4 | ########################################### |
| 5 | |
Ben Cheng | cc48226 | 2012-08-27 12:20:36 -0700 | [diff] [blame] | 6 | LOCAL_CFLAGS += -DGTEST_OS_LINUX_ANDROID -DGTEST_HAS_STD_STRING |
Ulas Kirazci | 478a380 | 2012-09-26 17:19:01 -0700 | [diff] [blame] | 7 | |
| 8 | LOCAL_C_INCLUDES += external/gtest/include |
| 9 | LOCAL_STATIC_LIBRARIES += libgtest libgtest_main |
| 10 | |
| 11 | ifndef LOCAL_SDK_VERSION |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 12 | LOCAL_C_INCLUDES += bionic \ |
| 13 | bionic/libstdc++/include \ |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 14 | external/stlport/stlport |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 15 | LOCAL_SHARED_LIBRARIES += libstlport |
Ulas Kirazci | 478a380 | 2012-09-26 17:19:01 -0700 | [diff] [blame] | 16 | endif |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 17 | |
| 18 | ifndef LOCAL_MODULE_PATH |
Ying Wang | f671d9a | 2010-07-26 16:25:55 -0700 | [diff] [blame] | 19 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 20 | endif |
| 21 | |
| 22 | include $(BUILD_EXECUTABLE) |