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 PGOInstrumentation.cpp \ 12 SafeStack.cpp \ 13 SanitizerCoverage.cpp \ 14 ThreadSanitizer.cpp 15 16# For the host 17# ===================================================== 18include $(CLEAR_VARS) 19 20LOCAL_MODULE:= libLLVMInstrumentation 21LOCAL_MODULE_HOST_OS := darwin linux windows 22LOCAL_SRC_FILES := $(instrumentation_SRC_FILES) 23 24include $(LLVM_HOST_BUILD_MK) 25include $(LLVM_GEN_ATTRIBUTES_MK) 26include $(LLVM_GEN_INTRINSICS_MK) 27include $(BUILD_HOST_STATIC_LIBRARY) 28 29# For the target 30# ===================================================== 31ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 32include $(CLEAR_VARS) 33 34LOCAL_MODULE:= libLLVMInstrumentation 35LOCAL_SRC_FILES := $(instrumentation_SRC_FILES) 36 37include $(LLVM_DEVICE_BUILD_MK) 38include $(LLVM_GEN_ATTRIBUTES_MK) 39include $(LLVM_GEN_INTRINSICS_MK) 40include $(BUILD_STATIC_LIBRARY) 41endif 42