1LOCAL_PATH:= $(call my-dir) 2 3instrumentation_SRC_FILES := \ 4 AddressSanitizer.cpp \ 5 BoundsChecking.cpp \ 6 DataFlowSanitizer.cpp \ 7 GCOVProfiling.cpp \ 8 InstrProfiling.cpp \ 9 Instrumentation.cpp \ 10 MemorySanitizer.cpp \ 11 SanitizerCoverage.cpp \ 12 ThreadSanitizer.cpp 13 14# For the host 15# ===================================================== 16include $(CLEAR_VARS) 17 18LOCAL_MODULE:= libLLVMInstrumentation 19LOCAL_MODULE_TAGS := optional 20LOCAL_SRC_FILES := $(instrumentation_SRC_FILES) 21 22include $(LLVM_HOST_BUILD_MK) 23include $(LLVM_GEN_INTRINSICS_MK) 24include $(BUILD_HOST_STATIC_LIBRARY) 25 26# For the target 27# ===================================================== 28ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 29include $(CLEAR_VARS) 30 31LOCAL_MODULE:= libLLVMInstrumentation 32LOCAL_MODULE_TAGS := optional 33LOCAL_SRC_FILES := $(instrumentation_SRC_FILES) 34 35include $(LLVM_DEVICE_BUILD_MK) 36include $(LLVM_GEN_INTRINSICS_MK) 37include $(BUILD_STATIC_LIBRARY) 38endif 39