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