OSDN Git Service

811243a5d37db32807a47f6b86a623eab5ea6781
[android-x86/external-llvm.git] / lib / Support / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
3 include $(LLVM_ROOT_PATH)/llvm.mk
4
5 support_SRC_FILES := \
6   Allocator.cpp \
7   APFloat.cpp \
8   APInt.cpp \
9   APSInt.cpp \
10   ARMBuildAttrs.cpp \
11   ARMWinEH.cpp \
12   Atomic.cpp \
13   BlockFrequency.cpp \
14   BranchProbability.cpp \
15   COM.cpp \
16   CommandLine.cpp \
17   Compression.cpp \
18   ConvertUTF.c \
19   ConvertUTFWrapper.cpp \
20   CrashRecoveryContext.cpp \
21   DAGDeltaAlgorithm.cpp \
22   DataStream.cpp \
23   DataExtractor.cpp \
24   Debug.cpp \
25   DeltaAlgorithm.cpp \
26   Dwarf.cpp \
27   DynamicLibrary.cpp \
28   Errno.cpp \
29   ErrorHandling.cpp \
30   FileUtilities.cpp \
31   FoldingSet.cpp \
32   FormattedStream.cpp \
33   GraphWriter.cpp \
34   Hashing.cpp \
35   Host.cpp \
36   IntervalMap.cpp \
37   IntEqClasses.cpp \
38   IntrusiveRefCntPtr.cpp \
39   LEB128.cpp \
40   LineIterator.cpp \
41   Locale.cpp \
42   LockFileManager.cpp \
43   MD5.cpp \
44   ManagedStatic.cpp \
45   MathExtras.cpp \
46   Memory.cpp \
47   MemoryBuffer.cpp \
48   MemoryObject.cpp \
49   Mutex.cpp \
50   Options.cpp \
51   Path.cpp \
52   PluginLoader.cpp \
53   PrettyStackTrace.cpp \
54   Process.cpp \
55   Program.cpp \
56   RandomNumberGenerator.cpp \
57   Regex.cpp \
58   RWMutex.cpp \
59   ScaledNumber.cpp \
60   SearchForAddressOfSpecialSymbol.cpp \
61   Signals.cpp \
62   SmallPtrSet.cpp \
63   SmallVector.cpp \
64   StreamingMemoryObject.cpp \
65   SourceMgr.cpp \
66   SpecialCaseList.cpp \
67   Statistic.cpp \
68   StringExtras.cpp \
69   StringMap.cpp \
70   StringPool.cpp \
71   StringSaver.cpp \
72   StringRef.cpp \
73   SystemUtils.cpp \
74   TargetParser.cpp \
75   TargetRegistry.cpp \
76   Threading.cpp \
77   ThreadLocal.cpp \
78   Timer.cpp \
79   TimeValue.cpp \
80   ToolOutputFile.cpp \
81   Triple.cpp \
82   Twine.cpp \
83   Unicode.cpp \
84   Valgrind.cpp \
85   Watchdog.cpp \
86   YAMLParser.cpp \
87   YAMLTraits.cpp \
88   circular_raw_ostream.cpp \
89   raw_os_ostream.cpp \
90   raw_ostream.cpp \
91   regcomp.c \
92   regerror.c \
93   regexec.c \
94   regfree.c \
95   regstrlcpy.c
96
97
98 # For the host
99 # =====================================================
100 include $(CLEAR_VARS)
101
102 # FIXME: This only requires RTTI because tblgen uses it.  Fix that.
103 REQUIRES_RTTI := 1
104
105 LOCAL_SRC_FILES := $(support_SRC_FILES)
106
107 LOCAL_MODULE:= libLLVMSupport
108
109 LOCAL_CFLAGS := -D__android__
110
111 LOCAL_MODULE_TAGS := optional
112
113 include $(LLVM_HOST_BUILD_MK)
114 include $(BUILD_HOST_STATIC_LIBRARY)
115
116 # For the device
117 # =====================================================
118 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
119 include $(CLEAR_VARS)
120
121 LOCAL_SRC_FILES := $(support_SRC_FILES)
122
123 LOCAL_MODULE:= libLLVMSupport
124
125 LOCAL_CFLAGS := -D__android__
126
127 LOCAL_MODULE_TAGS := optional
128
129 include $(LLVM_DEVICE_BUILD_MK)
130 include $(BUILD_STATIC_LIBRARY)
131 endif