1import("//llvm/utils/TableGen/tablegen.gni")
2
3tablegen("Options") {
4  visibility = [ ":COFF" ]
5  args = [ "-gen-opt-parser-defs" ]
6}
7
8static_library("COFF") {
9  output_name = "lldCOFF"
10  configs += [ "//llvm/utils/gn/build:lld_code" ]
11  deps = [
12    ":Options",
13    "//lld/Common",
14    "//llvm/lib/BinaryFormat",
15    "//llvm/lib/DebugInfo/CodeView",
16    "//llvm/lib/DebugInfo/MSF",
17    "//llvm/lib/DebugInfo/PDB",
18    "//llvm/lib/DebugInfo/Symbolize",
19    "//llvm/lib/IR",
20    "//llvm/lib/LTO",
21    "//llvm/lib/MC",
22    "//llvm/lib/Object",
23    "//llvm/lib/Option",
24    "//llvm/lib/Support",
25    "//llvm/lib/Target:TargetsToBuild",
26    "//llvm/lib/ToolDrivers/llvm-lib:LibDriver",
27    "//llvm/lib/WindowsManifest",
28  ]
29  sources = [
30    "CallGraphSort.cpp",
31    "Chunks.cpp",
32    "DLL.cpp",
33    "DebugTypes.cpp",
34    "Driver.cpp",
35    "DriverUtils.cpp",
36    "ICF.cpp",
37    "InputFiles.cpp",
38    "LLDMapFile.cpp",
39    "LTO.cpp",
40    "MapFile.cpp",
41    "MarkLive.cpp",
42    "MinGW.cpp",
43    "PDB.cpp",
44    "SymbolTable.cpp",
45    "Symbols.cpp",
46    "Writer.cpp",
47  ]
48}
49