blob: 7af2025f38fd97948c5d4d16e6d8ccabccf2281c [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 \
jush4671b172011-02-28 17:18:20 +08009 CommandLine.cpp \
10 ConstantRange.cpp \
11 CrashRecoveryContext.cpp \
12 DAGDeltaAlgorithm.cpp \
13 Debug.cpp \
14 DeltaAlgorithm.cpp \
15 Dwarf.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080016 DynamicLibrary.cpp \
17 Errno.cpp \
jush4671b172011-02-28 17:18:20 +080018 ErrorHandling.cpp \
19 FileUtilities.cpp \
20 FoldingSet.cpp \
21 FormattedStream.cpp \
22 GraphWriter.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080023 Host.cpp \
24 IntervalMap.cpp \
25 IntEqClasses.cpp\
jush4671b172011-02-28 17:18:20 +080026 IsInf.cpp \
27 IsNAN.cpp \
28 ManagedStatic.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080029 Memory.cpp \
jush4671b172011-02-28 17:18:20 +080030 MemoryBuffer.cpp \
31 MemoryObject.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080032 Mutex.cpp \
33 Path.cpp \
34 PathV2.cpp \
jush4671b172011-02-28 17:18:20 +080035 PluginLoader.cpp \
36 PrettyStackTrace.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080037 Process.cpp \
38 Program.cpp \
jush4671b172011-02-28 17:18:20 +080039 Regex.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080040 RWMutex.cpp \
41 SearchForAddressOfSpecialSymbol.cpp \
42 Signals.cpp \
jush4671b172011-02-28 17:18:20 +080043 SmallPtrSet.cpp \
44 SmallVector.cpp \
45 SourceMgr.cpp \
46 Statistic.cpp \
47 StringExtras.cpp \
48 StringMap.cpp \
49 StringPool.cpp \
50 StringRef.cpp \
51 SystemUtils.cpp \
52 TargetRegistry.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080053 Threading.cpp \
54 ThreadLocal.cpp \
jush4671b172011-02-28 17:18:20 +080055 Timer.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080056 TimeValue.cpp \
jush4671b172011-02-28 17:18:20 +080057 ToolOutputFile.cpp \
58 Triple.cpp \
59 Twine.cpp \
Jush Lucc7665f2011-03-10 03:06:08 +080060 Valgrind.cpp\
jush4671b172011-02-28 17:18:20 +080061 circular_raw_ostream.cpp \
62 raw_os_ostream.cpp \
63 raw_ostream.cpp \
64 regcomp.c \
65 regerror.c \
66 regexec.c \
67 regfree.c \
Jush Lucc7665f2011-03-10 03:06:08 +080068 regstrlcpy.c\
69 system_error.cpp
Shih-wei Liaoe4454322010-04-07 12:21:42 -070070
71# For the host
72# =====================================================
73include $(CLEAR_VARS)
74
75# FIXME: This only requires RTTI because tblgen uses it. Fix that.
76REQUIRES_RTTI := 1
77
78LOCAL_SRC_FILES := $(support_SRC_FILES)
79
80LOCAL_MODULE:= libLLVMSupport
81
Jush Lucc7665f2011-03-10 03:06:08 +080082LOCAL_CFLAGS := -D__android__
83
Logan42c32da2011-01-15 12:10:18 +080084LOCAL_MODULE_TAGS := optional
85
Shih-wei Liaoe4454322010-04-07 12:21:42 -070086include $(LLVM_HOST_BUILD_MK)
87include $(BUILD_HOST_STATIC_LIBRARY)
88
89# For the device
90# =====================================================
91include $(CLEAR_VARS)
92
93LOCAL_SRC_FILES := $(support_SRC_FILES)
94
95LOCAL_MODULE:= libLLVMSupport
96
Jush Lucc7665f2011-03-10 03:06:08 +080097LOCAL_CFLAGS := -D__android__
98
Logan42c32da2011-01-15 12:10:18 +080099LOCAL_MODULE_TAGS := optional
100
Shih-wei Liaoe4454322010-04-07 12:21:42 -0700101include $(LLVM_DEVICE_BUILD_MK)
102include $(BUILD_STATIC_LIBRARY)