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 | ########################################### |
Dan Willemsen | 1684b32 | 2016-07-25 16:03:53 -0700 | [diff] [blame] | 5 | $(call record-module-type,NATIVE_TEST) |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 6 | |
Dan Willemsen | e1c6dea | 2016-06-22 00:27:54 -0700 | [diff] [blame] | 7 | ifdef LOCAL_MODULE_CLASS |
| 8 | ifneq ($(LOCAL_MODULE_CLASS),NATIVE_TESTS) |
| 9 | $(error $(LOCAL_PATH): LOCAL_MODULE_CLASS must be NATIVE_TESTS with BUILD_HOST_NATIVE_TEST) |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 10 | endif |
Dan Willemsen | e1c6dea | 2016-06-22 00:27:54 -0700 | [diff] [blame] | 11 | endif |
| 12 | |
| 13 | LOCAL_MODULE_CLASS := NATIVE_TESTS |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 14 | |
Christopher Ferris | 70ca5e5 | 2014-02-04 22:09:16 -0800 | [diff] [blame] | 15 | include $(BUILD_SYSTEM)/target_test_internal.mk |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 16 | |
Ying Wang | ad10cc7 | 2014-06-10 17:52:20 -0700 | [diff] [blame] | 17 | ifndef LOCAL_MULTILIB |
| 18 | ifndef LOCAL_32_BIT_ONLY |
Colin Cross | 8c141e7 | 2014-03-24 18:39:18 -0700 | [diff] [blame] | 19 | LOCAL_MULTILIB := both |
Ying Wang | ad10cc7 | 2014-06-10 17:52:20 -0700 | [diff] [blame] | 20 | endif |
| 21 | endif |
Colin Cross | 8c141e7 | 2014-03-24 18:39:18 -0700 | [diff] [blame] | 22 | |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 23 | include $(BUILD_EXECUTABLE) |