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