Home | History | Annotate | Download | only in Instrumentation
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 instrumentation_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 # =====================================================
     18 include $(CLEAR_VARS)
     19 
     20 LOCAL_MODULE:= libLLVMInstrumentation
     21 LOCAL_MODULE_HOST_OS := darwin linux windows
     22 LOCAL_SRC_FILES := $(instrumentation_SRC_FILES)
     23 
     24 include $(LLVM_HOST_BUILD_MK)
     25 include $(LLVM_GEN_ATTRIBUTES_MK)
     26 include $(LLVM_GEN_INTRINSICS_MK)
     27 include $(BUILD_HOST_STATIC_LIBRARY)
     28 
     29 # For the target
     30 # =====================================================
     31 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     32 include $(CLEAR_VARS)
     33 
     34 LOCAL_MODULE:= libLLVMInstrumentation
     35 LOCAL_SRC_FILES := $(instrumentation_SRC_FILES)
     36 
     37 include $(LLVM_DEVICE_BUILD_MK)
     38 include $(LLVM_GEN_ATTRIBUTES_MK)
     39 include $(LLVM_GEN_INTRINSICS_MK)
     40 include $(BUILD_STATIC_LIBRARY)
     41 endif
     42