1import("//llvm/utils/TableGen/tablegen.gni")
2
3tablegen("Options") {
4  visibility = [ ":MachO2" ]
5  args = [ "-gen-opt-parser-defs" ]
6}
7
8static_library("MachO2") {
9  output_name = "lldMachO2"
10  configs += [ "//llvm/utils/gn/build:lld_code" ]
11  deps = [
12    ":Options",
13    "//lld/Common",
14    "//llvm/lib/BinaryFormat",
15    "//llvm/lib/Object",
16    "//llvm/lib/Option",
17    "//llvm/lib/Support",
18    "//llvm/lib/Target:TargetsToBuild",
19  ]
20  include_dirs = [
21    ".",
22    "//libunwind/include",
23  ]
24  sources = [
25    "Arch/X86_64.cpp",
26    "Driver.cpp",
27    "DriverUtils.cpp",
28    "Dwarf.cpp",
29    "ExportTrie.cpp",
30    "InputFiles.cpp",
31    "InputSection.cpp",
32    "LTO.cpp",
33    "MergedOutputSection.cpp",
34    "ObjC.cpp",
35    "OutputSection.cpp",
36    "OutputSegment.cpp",
37    "SymbolTable.cpp",
38    "Symbols.cpp",
39    "SyntheticSections.cpp",
40    "Target.cpp",
41    "UnwindInfoSection.cpp",
42    "Writer.cpp",
43  ]
44}
45