github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/make/core/native_test.mk (about)

     1  ###########################################
     2  ## A thin wrapper around BUILD_EXECUTABLE
     3  ## Common flags for native tests are added.
     4  ###########################################
     5  $(call record-module-type,NATIVE_TEST)
     6  
     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)
    10  endif
    11  endif
    12  
    13  LOCAL_MODULE_CLASS := NATIVE_TESTS
    14  
    15  include $(BUILD_SYSTEM)/target_test_internal.mk
    16  
    17  ifndef LOCAL_MULTILIB
    18  ifndef LOCAL_32_BIT_ONLY
    19  LOCAL_MULTILIB := both
    20  endif
    21  endif
    22  
    23  include $(BUILD_EXECUTABLE)