blob: 257cbea4af607ef273effb2849e361eebd84fd4e [file] [log] [blame]
Shih-wei Liaoe4454322010-04-07 12:21:42 -07001LOCAL_PATH:= $(call my-dir)
2
jush4671b172011-02-28 17:18:20 +08003support_SRC_FILES := \
Jush Lucc7665f2011-03-10 03:06:08 +08004 Allocator.cpp \
jush4671b172011-02-28 17:18:20 +08005 APFloat.cpp \
6 APInt.cpp \
7 APSInt.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +08008 Atomic.cpp \
Nowar Gu2a73c7f2011-06-17 17:05:43 +08009 BranchProbability.cpp \
jush4671b172011-02-28 17:18:20 +080010 CommandLine.cpp \
11 ConstantRange.cpp \
12 CrashRecoveryContext.cpp \
13 DAGDeltaAlgorithm.cpp \
14 Debug.cpp \
15 DeltaAlgorithm.cpp \
16 Dwarf.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080017 DynamicLibrary.cpp \
18 Errno.cpp \
jush4671b172011-02-28 17:18:20 +080019 ErrorHandling.cpp \
20 FileUtilities.cpp \
21 FoldingSet.cpp \
22 FormattedStream.cpp \
23 GraphWriter.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080024 Host.cpp \
25 IntervalMap.cpp \
26 IntEqClasses.cpp\
jush4671b172011-02-28 17:18:20 +080027 IsInf.cpp \
28 IsNAN.cpp \
29 ManagedStatic.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080030 Memory.cpp \
jush4671b172011-02-28 17:18:20 +080031 MemoryBuffer.cpp \
32 MemoryObject.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080033 Mutex.cpp \
34 Path.cpp \
35 PathV2.cpp \
jush4671b172011-02-28 17:18:20 +080036 PluginLoader.cpp \
37 PrettyStackTrace.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080038 Process.cpp \
39 Program.cpp \
jush4671b172011-02-28 17:18:20 +080040 Regex.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080041 RWMutex.cpp \
42 SearchForAddressOfSpecialSymbol.cpp \
43 Signals.cpp \
jush4671b172011-02-28 17:18:20 +080044 SmallPtrSet.cpp \
45 SmallVector.cpp \
46 SourceMgr.cpp \
47 Statistic.cpp \
48 StringExtras.cpp \
49 StringMap.cpp \
50 StringPool.cpp \
51 StringRef.cpp \
52 SystemUtils.cpp \
53 TargetRegistry.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080054 Threading.cpp \
55 ThreadLocal.cpp \
jush4671b172011-02-28 17:18:20 +080056 Timer.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080057 TimeValue.cpp \
jush4671b172011-02-28 17:18:20 +080058 ToolOutputFile.cpp \
59 Triple.cpp \
60 Twine.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080061 Valgrind.cpp\
jush4671b172011-02-28 17:18:20 +080062 circular_raw_ostream.cpp \
63 raw_os_ostream.cpp \
64 raw_ostream.cpp \
65 regcomp.c \
66 regerror.c \
67 regexec.c \
68 regfree.c \
Nowar Gu2a73c7f2011-06-17 17:05:43 +080069 regstrlcpy.c \
Jush Lucc7665f2011-03-10 03:06:08 +080070 system_error.cpp
Shih-wei Liaoe4454322010-04-07 12:21:42 -070071
72# For the host
73# =====================================================
74include $(CLEAR_VARS)
75
76# FIXME: This only requires RTTI because tblgen uses it. Fix that.
77REQUIRES_RTTI := 1
78
79LOCAL_SRC_FILES := $(support_SRC_FILES)
80
81LOCAL_MODULE:= libLLVMSupport
82
Jush Lucc7665f2011-03-10 03:06:08 +080083LOCAL_CFLAGS := -D__android__
84
Logan42c32da2011-01-15 12:10:18 +080085LOCAL_MODULE_TAGS := optional
86
Shih-wei Liaoe4454322010-04-07 12:21:42 -070087include $(LLVM_HOST_BUILD_MK)
88include $(BUILD_HOST_STATIC_LIBRARY)
89
90# For the device
91# =====================================================
92include $(CLEAR_VARS)
93
94LOCAL_SRC_FILES := $(support_SRC_FILES)
95
96LOCAL_MODULE:= libLLVMSupport
97
Jush Lucc7665f2011-03-10 03:06:08 +080098LOCAL_CFLAGS := -D__android__
99
Logan42c32da2011-01-15 12:10:18 +0800100LOCAL_MODULE_TAGS := optional
101
Shih-wei Liaoe4454322010-04-07 12:21:42 -0700102include $(LLVM_DEVICE_BUILD_MK)
103include $(BUILD_STATIC_LIBRARY)