blob: d4b2a5b2e92bf52a7549ebacd62269f713c9f9c8 [file] [log] [blame]
Ying Wang4c681742010-07-20 11:08:47 -07001###########################################
2## A thin wrapper around BUILD_EXECUTABLE
3## Common flags for native tests are added.
4###########################################
5
Dan Willemsen7fe992c2016-03-02 13:54:51 -08006# TODO: enforce NATIVE_TESTS once current users are gone
7ifndef LOCAL_MODULE_CLASS
8LOCAL_MODULE_CLASS := NATIVE_TESTS
9endif
10
Christopher Ferris70ca5e52014-02-04 22:09:16 -080011include $(BUILD_SYSTEM)/target_test_internal.mk
Ying Wang4c681742010-07-20 11:08:47 -070012
Ying Wangad10cc72014-06-10 17:52:20 -070013ifndef LOCAL_MULTILIB
14ifndef LOCAL_32_BIT_ONLY
Colin Cross8c141e72014-03-24 18:39:18 -070015LOCAL_MULTILIB := both
Ying Wangad10cc72014-06-10 17:52:20 -070016endif
17endif
Colin Cross8c141e72014-03-24 18:39:18 -070018
Dan Willemsen7fe992c2016-03-02 13:54:51 -080019ifneq ($(LOCAL_MODULE_CLASS),NATIVE_TESTS)
20$(warning $(LOCAL_PATH): $(LOCAL_MODULE): LOCAL_MODULE_CLASS should be NATIVE_TESTS with BUILD_NATIVE_TEST)
21LOCAL_MODULE_PATH_64 := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
22LOCAL_MODULE_PATH_32 := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
23endif
24
Ying Wang4c681742010-07-20 11:08:47 -070025include $(BUILD_EXECUTABLE)