1import("//llvm/utils/TableGen/tablegen.gni") 2 3tablegen("Options") { 4 visibility = [ ":ELF" ] 5 args = [ "-gen-opt-parser-defs" ] 6} 7 8static_library("ELF") { 9 output_name = "lldELF" 10 configs += [ "//llvm/utils/gn/build:lld_code" ] 11 deps = [ 12 ":Options", 13 "//lld/Common", 14 "//llvm/lib/BinaryFormat", 15 "//llvm/lib/DebugInfo/DWARF", 16 "//llvm/lib/IR", 17 "//llvm/lib/LTO", 18 "//llvm/lib/MC", 19 "//llvm/lib/Object", 20 "//llvm/lib/Option", 21 "//llvm/lib/Support", 22 "//llvm/lib/Target:TargetsToBuild", 23 ] 24 include_dirs = [ "." ] 25 sources = [ 26 "AArch64ErrataFix.cpp", 27 "ARMErrataFix.cpp", 28 "Arch/AArch64.cpp", 29 "Arch/AMDGPU.cpp", 30 "Arch/ARM.cpp", 31 "Arch/AVR.cpp", 32 "Arch/Hexagon.cpp", 33 "Arch/MSP430.cpp", 34 "Arch/Mips.cpp", 35 "Arch/MipsArchTree.cpp", 36 "Arch/PPC.cpp", 37 "Arch/PPC64.cpp", 38 "Arch/RISCV.cpp", 39 "Arch/SPARCV9.cpp", 40 "Arch/X86.cpp", 41 "Arch/X86_64.cpp", 42 "CallGraphSort.cpp", 43 "DWARF.cpp", 44 "Driver.cpp", 45 "DriverUtils.cpp", 46 "EhFrame.cpp", 47 "ICF.cpp", 48 "InputFiles.cpp", 49 "InputSection.cpp", 50 "LTO.cpp", 51 "LinkerScript.cpp", 52 "MapFile.cpp", 53 "MarkLive.cpp", 54 "OutputSections.cpp", 55 "Relocations.cpp", 56 "ScriptLexer.cpp", 57 "ScriptParser.cpp", 58 "SymbolTable.cpp", 59 "Symbols.cpp", 60 "SyntheticSections.cpp", 61 "Target.cpp", 62 "Thunks.cpp", 63 "Writer.cpp", 64 ] 65} 66