1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
| static_library("Support") {
output_name = "LLVMSupport"
deps = [
"//llvm/include/llvm/Config:config",
"//llvm/lib/Demangle",
"//llvm/utils/gn/build/libs/pthread",
"//llvm/utils/gn/build/libs/terminfo",
"//llvm/utils/gn/build/libs/zlib",
]
# public_deps are used for depending on targets that generate headers
# which are included in public headers of this target. public_deps means
# that targets depending on Support will implicitly be built only after
# abi-breaking and llvm-config have been built.
public_deps = [
# abi-breaking.h is also include by public headers in ADT, but ADT has
# no target in the gn build. Since everything depends on Support, this
# public_dep does double duty of abi-breaking.h uses in public headers of
# both Support and ADT.
"//llvm/include/llvm/Config:abi-breaking",
"//llvm/include/llvm/Config:llvm-config",
# public_dep because public header TargetSelect.h includes these .def files.
"//llvm/include/llvm/Config:write_target_def_files",
]
include_dirs = [
"Unix",
"Windows",
]
sources = [
"AArch64TargetParser.cpp",
"ABIBreak.cpp",
"AMDGPUMetadata.cpp",
"APFloat.cpp",
"APInt.cpp",
"APSInt.cpp",
"ARMAttributeParser.cpp",
"ARMBuildAttrs.cpp",
"ARMTargetParser.cpp",
"ARMWinEH.cpp",
"Allocator.cpp",
"BinaryStreamError.cpp",
"BinaryStreamReader.cpp",
"BinaryStreamRef.cpp",
"BinaryStreamWriter.cpp",
"BlockFrequency.cpp",
"BranchProbability.cpp",
"BuryPointer.cpp",
"COM.cpp",
"CRC.cpp",
"CachePruning.cpp",
"Chrono.cpp",
"CodeGenCoverage.cpp",
"CommandLine.cpp",
"Compression.cpp",
"ConvertUTF.cpp",
"ConvertUTFWrapper.cpp",
"CrashRecoveryContext.cpp",
"DAGDeltaAlgorithm.cpp",
"DJB.cpp",
"DataExtractor.cpp",
"Debug.cpp",
"DebugCounter.cpp",
"DeltaAlgorithm.cpp",
"Error.cpp",
"ErrorHandling.cpp",
"FileCheck.cpp",
"FileCollector.cpp",
"FileOutputBuffer.cpp",
"FileUtilities.cpp",
"FoldingSet.cpp",
"FormatVariadic.cpp",
"FormattedStream.cpp",
"GlobPattern.cpp",
"GraphWriter.cpp",
"Hashing.cpp",
"InitLLVM.cpp",
"IntEqClasses.cpp",
"IntervalMap.cpp",
"ItaniumManglingCanonicalizer.cpp",
"JSON.cpp",
"KnownBits.cpp",
"LEB128.cpp",
"LineIterator.cpp",
"Locale.cpp",
"LockFileManager.cpp",
"LowLevelType.cpp",
"MD5.cpp",
"ManagedStatic.cpp",
"MathExtras.cpp",
"MemoryBuffer.cpp",
"NativeFormatting.cpp",
"Optional.cpp",
"Options.cpp",
"Parallel.cpp",
"PluginLoader.cpp",
"PrettyStackTrace.cpp",
"RWMutex.cpp",
"RandomNumberGenerator.cpp",
"Regex.cpp",
"SHA1.cpp",
"ScaledNumber.cpp",
"ScopedPrinter.cpp",
"Signposts.cpp",
"SmallPtrSet.cpp",
"SmallVector.cpp",
"SourceMgr.cpp",
"SpecialCaseList.cpp",
"Statistic.cpp",
"StringExtras.cpp",
"StringMap.cpp",
"StringPool.cpp",
"StringRef.cpp",
"StringSaver.cpp",
"SymbolRemappingReader.cpp",
"SystemUtils.cpp",
"TarWriter.cpp",
"TargetParser.cpp",
"ThreadPool.cpp",
"TimeProfiler.cpp",
"Timer.cpp",
"ToolOutputFile.cpp",
"TrigramIndex.cpp",
"Triple.cpp",
"Twine.cpp",
"Unicode.cpp",
"UnicodeCaseFold.cpp",
"VersionTuple.cpp",
"WithColor.cpp",
"YAMLParser.cpp",
"YAMLTraits.cpp",
"Z3Solver.cpp",
"circular_raw_ostream.cpp",
"raw_os_ostream.cpp",
"raw_ostream.cpp",
"regcomp.c",
"regerror.c",
"regexec.c",
"regfree.c",
"regstrlcpy.c",
"xxhash.cpp",
# System
"Atomic.cpp",
"DynamicLibrary.cpp",
"Errno.cpp",
"Host.cpp",
"Memory.cpp",
"Path.cpp",
"Process.cpp",
"Program.cpp",
"Signals.cpp",
"TargetRegistry.cpp",
"ThreadLocal.cpp",
"Threading.cpp",
"Valgrind.cpp",
"VirtualFileSystem.cpp",
"Watchdog.cpp",
]
libs = []
# FIXME: llvm/Config/BUILD.gn currently always sets LLVM_WITH_Z3
# to false. If that changes we need to link to Z3 libs here.
if (current_os == "linux" || current_os == "android") {
libs += [ "dl" ]
} else if (current_os == "win") {
# Delay load shell32.dll if possible to speed up process startup.
libs += [ "delayimp.lib" ]
ldflags = [
"-delayload:ole32.dll",
"-delayload:shell32.dll",
]
}
}
|