OSDN Git Service

android: Support: update sources list
[android-x86/external-llvm.git] / lib / Support / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 LLVM70_ROOT_PATH := $(LOCAL_PATH)/../..
3 include $(LLVM70_ROOT_PATH)/llvm.mk
4
5 support_SRC_FILES := \
6   AMDGPUMetadata.cpp \
7   APFloat.cpp \
8   APInt.cpp \
9   APSInt.cpp \
10   ARMBuildAttrs.cpp \
11   ARMAttributeParser.cpp \
12   ARMWinEH.cpp \
13   Allocator.cpp \
14   BinaryStreamError.cpp \
15   BinaryStreamReader.cpp \
16   BinaryStreamRef.cpp \
17   BinaryStreamWriter.cpp \
18   BlockFrequency.cpp \
19   BranchProbability.cpp \
20   CachePruning.cpp \
21   circular_raw_ostream.cpp \
22   Chrono.cpp \
23   COM.cpp \
24   CodeGenCoverage.cpp \
25   CommandLine.cpp \
26   Compression.cpp \
27   ConvertUTF.cpp \
28   ConvertUTFWrapper.cpp \
29   CrashRecoveryContext.cpp \
30   DataExtractor.cpp \
31   Debug.cpp \
32   DebugCounter.cpp \
33   DeltaAlgorithm.cpp \
34   DAGDeltaAlgorithm.cpp \
35   DJB.cpp \
36   Error.cpp \
37   ErrorHandling.cpp \
38   FileUtilities.cpp \
39   FileOutputBuffer.cpp \
40   FoldingSet.cpp \
41   FormattedStream.cpp \
42   FormatVariadic.cpp \
43   GlobPattern.cpp \
44   GraphWriter.cpp \
45   Hashing.cpp \
46   InitLLVM.cpp \
47   IntEqClasses.cpp \
48   IntervalMap.cpp \
49   JamCRC.cpp \
50   KnownBits.cpp \
51   LEB128.cpp \
52   LineIterator.cpp \
53   Locale.cpp \
54   LockFileManager.cpp \
55   LowLevelType.cpp \
56   ManagedStatic.cpp \
57   MathExtras.cpp \
58   MemoryBuffer.cpp \
59   MD5.cpp \
60   NativeFormatting.cpp \
61   Options.cpp \
62   Parallel.cpp \
63   PluginLoader.cpp \
64   PrettyStackTrace.cpp \
65   RandomNumberGenerator.cpp \
66   Regex.cpp \
67   ScaledNumber.cpp \
68   ScopedPrinter.cpp \
69   SHA1.cpp \
70   SmallPtrSet.cpp \
71   SmallVector.cpp \
72   SourceMgr.cpp \
73   SpecialCaseList.cpp \
74   Statistic.cpp \
75   StringExtras.cpp \
76   StringMap.cpp \
77   StringPool.cpp \
78   StringSaver.cpp \
79   StringRef.cpp \
80   SystemUtils.cpp \
81   TarWriter.cpp \
82   TargetParser.cpp \
83   ThreadPool.cpp \
84   Timer.cpp \
85   ToolOutputFile.cpp \
86   TrigramIndex.cpp \
87   Triple.cpp \
88   Twine.cpp \
89   Unicode.cpp \
90   UnicodeCaseFold.cpp \
91   YAMLParser.cpp \
92   YAMLTraits.cpp \
93   WithColor.cpp \
94   raw_os_ostream.cpp \
95   raw_ostream.cpp \
96   regcomp.c \
97   regerror.c \
98   regexec.c \
99   regfree.c \
100   regstrlcpy.c \
101   xxhash.cpp \
102   Atomic.cpp \
103   DynamicLibrary.cpp \
104   Errno.cpp \
105   Host.cpp \
106   Memory.cpp \
107   Mutex.cpp \
108   Path.cpp \
109   Process.cpp \
110   Program.cpp \
111   RWMutex.cpp \
112   Signals.cpp \
113   TargetRegistry.cpp \
114   ThreadLocal.cpp \
115   Threading.cpp \
116   Valgrind.cpp \
117   Watchdog.cpp
118
119 # For the host
120 # =====================================================
121 include $(CLEAR_VARS)
122
123 # FIXME: This only requires RTTI because tblgen uses it.  Fix that.
124 REQUIRES_RTTI := 1
125
126 LOCAL_SRC_FILES := $(support_SRC_FILES)
127
128 LOCAL_MODULE:= libLLVM70Support
129
130 LOCAL_CFLAGS := -D__android__
131
132 LOCAL_MODULE_HOST_OS := darwin linux windows
133
134 include $(LLVM70_HOST_BUILD_MK)
135 include $(BUILD_HOST_STATIC_LIBRARY)
136
137 # For the device
138 # =====================================================
139 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
140 include $(CLEAR_VARS)
141
142 LOCAL_SRC_FILES := $(support_SRC_FILES)
143
144 LOCAL_MODULE:= libLLVM70Support
145
146 LOCAL_CFLAGS := -D__android__
147
148 include $(LLVM70_DEVICE_BUILD_MK)
149 include $(BUILD_STATIC_LIBRARY)
150 endif