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