blob: 3101609efabda79bd973211fd4001c8e21878290 [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 \
Shih-wei Liaodb0e8a72012-04-24 11:31:11 -070033 Locale.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080034 LockFileManager.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080035 ManagedStatic.cpp \
36 Memory.cpp \
37 MemoryBuffer.cpp \
38 MemoryObject.cpp \
39 Mutex.cpp \
40 Path.cpp \
41 PathV2.cpp \
42 PluginLoader.cpp \
43 PrettyStackTrace.cpp \
44 Process.cpp \
45 Program.cpp \
46 Regex.cpp \
47 RWMutex.cpp \
48 SearchForAddressOfSpecialSymbol.cpp \
49 Signals.cpp \
50 SmallPtrSet.cpp \
51 SmallVector.cpp \
52 SourceMgr.cpp \
53 Statistic.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080054 StreamableMemoryObject.cpp \
Logan Chien2e5a5ee2011-10-21 14:45:53 +080055 StringExtras.cpp \
56 StringMap.cpp \
57 StringPool.cpp \
58 StringRef.cpp \
59 SystemUtils.cpp \
60 TargetRegistry.cpp \
61 Threading.cpp \
62 ThreadLocal.cpp \
63 Timer.cpp \
64 TimeValue.cpp \
65 ToolOutputFile.cpp \
66 Triple.cpp \
67 Twine.cpp \
68 Valgrind.cpp \
69 circular_raw_ostream.cpp \
70 raw_os_ostream.cpp \
71 raw_ostream.cpp \
72 regcomp.c \
73 regerror.c \
74 regexec.c \
75 regfree.c \
76 regstrlcpy.c \
77 system_error.cpp
Shih-wei Liaoe4454322010-04-07 12:21:42 -070078
79# For the host
80# =====================================================
81include $(CLEAR_VARS)
82
83# FIXME: This only requires RTTI because tblgen uses it. Fix that.
84REQUIRES_RTTI := 1
85
86LOCAL_SRC_FILES := $(support_SRC_FILES)
87
88LOCAL_MODULE:= libLLVMSupport
89
Jush Lucc7665f2011-03-10 03:06:08 +080090LOCAL_CFLAGS := -D__android__
91
Logan42c32da2011-01-15 12:10:18 +080092LOCAL_MODULE_TAGS := optional
93
Shih-wei Liaoe4454322010-04-07 12:21:42 -070094include $(LLVM_HOST_BUILD_MK)
95include $(BUILD_HOST_STATIC_LIBRARY)
96
97# For the device
98# =====================================================
99include $(CLEAR_VARS)
100
101LOCAL_SRC_FILES := $(support_SRC_FILES)
102
103LOCAL_MODULE:= libLLVMSupport
104
Jush Lucc7665f2011-03-10 03:06:08 +0800105LOCAL_CFLAGS := -D__android__
106
Logan42c32da2011-01-15 12:10:18 +0800107LOCAL_MODULE_TAGS := optional
108
Shih-wei Liaoe4454322010-04-07 12:21:42 -0700109include $(LLVM_DEVICE_BUILD_MK)
110include $(BUILD_STATIC_LIBRARY)