/
BUILD.gn
49 lines (47 loc) · 1.01 KB
/
BUILD.gn
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
import("//llvm/utils/TableGen/tablegen.gni")
tablegen("Options") {
visibility = [ ":MachO2" ]
args = [ "-gen-opt-parser-defs" ]
}
static_library("MachO2") {
output_name = "lldMachO2"
configs += [ "//llvm/utils/gn/build:lld_code" ]
deps = [
":Options",
"//lld/Common",
"//llvm/lib/BinaryFormat",
"//llvm/lib/Object",
"//llvm/lib/Option",
"//llvm/lib/Support",
"//llvm/lib/Target:TargetsToBuild",
]
include_dirs = [
".",
"//libunwind/include",
]
sources = [
"Arch/ARM64.cpp",
"Arch/ARM64Common.cpp",
"Arch/ARM64_32.cpp",
"Arch/X86_64.cpp",
"Driver.cpp",
"DriverUtils.cpp",
"Dwarf.cpp",
"ExportTrie.cpp",
"InputFiles.cpp",
"InputSection.cpp",
"LTO.cpp",
"MapFile.cpp",
"MergedOutputSection.cpp",
"ObjC.cpp",
"OutputSection.cpp",
"OutputSegment.cpp",
"Relocations.cpp",
"SymbolTable.cpp",
"Symbols.cpp",
"SyntheticSections.cpp",
"Target.cpp",
"UnwindInfoSection.cpp",
"Writer.cpp",
]
}