1 LOCAL_PATH:= $(call my-dir) 2 3 instrumentation_SRC_FILES := \ 4 AddressSanitizer.cpp \ 5 EdgeProfiling.cpp \ 6 FunctionBlackList.cpp \ 7 GCOVProfiling.cpp \ 8 Instrumentation.cpp \ 9 OptimalEdgeProfiling.cpp \ 10 PathProfiling.cpp \ 11 ProfilingUtils.cpp \ 12 ThreadSanitizer.cpp 13 14 # For the host 15 # ===================================================== 16 include $(CLEAR_VARS) 17 18 LOCAL_MODULE:= libLLVMInstrumentation 19 LOCAL_MODULE_TAGS := optional 20 LOCAL_SRC_FILES := $(instrumentation_SRC_FILES) 21 22 include $(LLVM_HOST_BUILD_MK) 23 include $(LLVM_GEN_INTRINSICS_MK) 24 include $(BUILD_HOST_STATIC_LIBRARY) 25 26 # For the target 27 # ===================================================== 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