blob: 62400ba1391603f5ad882833a88e6ec741f8edbc [file] [log] [blame]
Shih-wei Liaoe4454322010-04-07 12:21:42 -07001LOCAL_PATH:= $(call my-dir)
2
Logan Chien2e5a5ee2011-10-21 14:45:53 +08003support_SRC_FILES := \
4 Allocator.cpp \
5 APFloat.cpp \
6 APInt.cpp \
7 APSInt.cpp \
8 Atomic.cpp \
9 BlockFrequency.cpp \
10 BranchProbability.cpp \
11 CommandLine.cpp \
12 ConstantRange.cpp \
13 CrashRecoveryContext.cpp \
14 DAGDeltaAlgorithm.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080015 DataStream.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080016 Debug.cpp \
17 DeltaAlgorithm.cpp \
18 Dwarf.cpp \
19 DynamicLibrary.cpp \
20 Errno.cpp \
21 ErrorHandling.cpp \
22 FileUtilities.cpp \
23 FoldingSet.cpp \
24 FormattedStream.cpp \
25 GraphWriter.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080026 Hashing.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080027 Host.cpp \
28 IntervalMap.cpp \
29 IntEqClasses.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080030 IntrusiveRefCntPtr.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080031 IsInf.cpp \
32 IsNAN.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080033 LockFileManager.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080034 ManagedStatic.cpp \
35 Memory.cpp \
36 MemoryBuffer.cpp \
37 MemoryObject.cpp \
38 Mutex.cpp \
39 Path.cpp \
40 PathV2.cpp \
41 PluginLoader.cpp \
42 PrettyStackTrace.cpp \
43 Process.cpp \
44 Program.cpp \
45 Regex.cpp \
46 RWMutex.cpp \
47 SearchForAddressOfSpecialSymbol.cpp \
48 Signals.cpp \
49 SmallPtrSet.cpp \
50 SmallVector.cpp \
51 SourceMgr.cpp \
52 Statistic.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080053 StreamableMemoryObject.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080054 StringExtras.cpp \
55 StringMap.cpp \
56 StringPool.cpp \
57 StringRef.cpp \
58 SystemUtils.cpp \
59 TargetRegistry.cpp \
60 Threading.cpp \
61 ThreadLocal.cpp \
62 Timer.cpp \
63 TimeValue.cpp \
64 ToolOutputFile.cpp \
65 Triple.cpp \
66 Twine.cpp \
67 Valgrind.cpp \
68 circular_raw_ostream.cpp \
69 raw_os_ostream.cpp \
70 raw_ostream.cpp \
71 regcomp.c \
72 regerror.c \
73 regexec.c \
74 regfree.c \
75 regstrlcpy.c \
76 system_error.cpp
Shih-wei Liaoe4454322010-04-07 12:21:42 -070077
78# For the host
79# =====================================================
80include $(CLEAR_VARS)
81
82# FIXME: This only requires RTTI because tblgen uses it. Fix that.
83REQUIRES_RTTI := 1
84
85LOCAL_SRC_FILES := $(support_SRC_FILES)
86
87LOCAL_MODULE:= libLLVMSupport
88
Jush Lucc7665f2011-03-10 03:06:08 +080089LOCAL_CFLAGS := -D__android__
90
Logan42c32da2011-01-15 12:10:18 +080091LOCAL_MODULE_TAGS := optional
92
Shih-wei Liaoe4454322010-04-07 12:21:42 -070093include $(LLVM_HOST_BUILD_MK)
94include $(BUILD_HOST_STATIC_LIBRARY)
95
96# For the device
97# =====================================================
98include $(CLEAR_VARS)
99
100LOCAL_SRC_FILES := $(support_SRC_FILES)
101
102LOCAL_MODULE:= libLLVMSupport
103
Jush Lucc7665f2011-03-10 03:06:08 +0800104LOCAL_CFLAGS := -D__android__
105
Logan42c32da2011-01-15 12:10:18 +0800106LOCAL_MODULE_TAGS := optional
107
Shih-wei Liaoe4454322010-04-07 12:21:42 -0700108include $(LLVM_DEVICE_BUILD_MK)
109include $(BUILD_STATIC_LIBRARY)