OSDN Git Service

am 876d6995: Merge "Update aosp/master LLVM for rebase to r222494."
[android-x86/external-llvm.git] / lib / Transforms / Instrumentation / Android.mk
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   SanitizerCoverage.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 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
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 endif