1 static_library("Support") {
2 output_name = "LLVMSupport"
4 "//llvm/include/llvm/Config:config",
6 "//llvm/utils/gn/build/libs/pthread",
7 "//llvm/utils/gn/build/libs/terminfo",
8 "//llvm/utils/gn/build/libs/zlib",
11 # public_deps are used for depending on targets that generate headers
12 # which are included in public headers of this target. public_deps means
13 # that targets depending on Support will implicitly be built only after
14 # abi-breaking and llvm-config have been built.
16 # abi-breaking.h is also include by public headers in ADT, but ADT has
17 # no target in the gn build. Since everything depends on Support, this
18 # public_dep does double duty of abi-breaking.h uses in public headers of
19 # both Support and ADT.
20 "//llvm/include/llvm/Config:abi-breaking",
21 "//llvm/include/llvm/Config:llvm-config",
23 # public_dep because public header TargetSelect.h includes these .def files.
24 "//llvm/include/llvm/Config:write_target_def_files",
31 "AArch64TargetParser.cpp",
37 "ARMAttributeParser.cpp",
39 "ARMTargetParser.cpp",
42 "BinaryStreamError.cpp",
43 "BinaryStreamReader.cpp",
44 "BinaryStreamRef.cpp",
45 "BinaryStreamWriter.cpp",
47 "BranchProbability.cpp",
53 "CodeGenCoverage.cpp",
57 "ConvertUTFWrapper.cpp",
58 "CrashRecoveryContext.cpp",
59 "DAGDeltaAlgorithm.cpp",
69 "FileOutputBuffer.cpp",
73 "FormattedStream.cpp",
80 "ItaniumManglingCanonicalizer.cpp",
86 "LockFileManager.cpp",
92 "NativeFormatting.cpp",
97 "PrettyStackTrace.cpp",
99 "RandomNumberGenerator.cpp",
108 "SpecialCaseList.cpp",
115 "SymbolRemappingReader.cpp",
122 "ToolOutputFile.cpp",
127 "UnicodeCaseFold.cpp",
133 "circular_raw_ostream.cpp",
134 "raw_os_ostream.cpp",
145 "DynamicLibrary.cpp",
153 "TargetRegistry.cpp",
157 "VirtualFileSystem.cpp",
163 # FIXME: llvm/Config/BUILD.gn currently always sets LLVM_WITH_Z3
164 # to false. If that changes we need to link to Z3 libs here.
166 if (current_os == "linux" || current_os == "android") {
168 } else if (current_os == "win") {
169 # Delay load shell32.dll if possible to speed up process startup.
170 libs += [ "delayimp.lib" ]
172 "-delayload:ole32.dll",
173 "-delayload:shell32.dll",