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 | |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 6 | # TODO: enforce NATIVE_TESTS once current users are gone |
| 7 | ifndef LOCAL_MODULE_CLASS |
| 8 | LOCAL_MODULE_CLASS := NATIVE_TESTS |
| 9 | endif |
| 10 | |
Christopher Ferris | 70ca5e5 | 2014-02-04 22:09:16 -0800 | [diff] [blame] | 11 | include $(BUILD_SYSTEM)/target_test_internal.mk |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 12 | |
Ying Wang | ad10cc7 | 2014-06-10 17:52:20 -0700 | [diff] [blame] | 13 | ifndef LOCAL_MULTILIB |
| 14 | ifndef LOCAL_32_BIT_ONLY |
Colin Cross | 8c141e7 | 2014-03-24 18:39:18 -0700 | [diff] [blame] | 15 | LOCAL_MULTILIB := both |
Ying Wang | ad10cc7 | 2014-06-10 17:52:20 -0700 | [diff] [blame] | 16 | endif |
| 17 | endif |
Colin Cross | 8c141e7 | 2014-03-24 18:39:18 -0700 | [diff] [blame] | 18 | |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 19 | ifneq ($(LOCAL_MODULE_CLASS),NATIVE_TESTS) |
| 20 | $(warning $(LOCAL_PATH): $(LOCAL_MODULE): LOCAL_MODULE_CLASS should be NATIVE_TESTS with BUILD_NATIVE_TEST) |
| 21 | LOCAL_MODULE_PATH_64 := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 22 | LOCAL_MODULE_PATH_32 := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 23 | endif |
| 24 | |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 25 | include $(BUILD_EXECUTABLE) |