Index: llvm/utils/gn/secondary/BUILD.gn =================================================================== --- llvm/utils/gn/secondary/BUILD.gn +++ llvm/utils/gn/secondary/BUILD.gn @@ -3,6 +3,8 @@ "//lld/tools/lld", "//llvm/tools/llc", "//llvm/tools/llvm-undname", + "//llvm/tools/obj2yaml", + "//llvm/tools/yaml2obj", ] } Index: llvm/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn =================================================================== --- /dev/null +++ llvm/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn @@ -0,0 +1,22 @@ +static_library("ObjectYAML") { + output_name = "LLVMObjectYAML" + deps = [ + "//llvm/lib/DebugInfo/CodeView", + "//llvm/lib/Support", + ] + sources = [ + "COFFYAML.cpp", + "CodeViewYAMLDebugSections.cpp", + "CodeViewYAMLSymbols.cpp", + "CodeViewYAMLTypeHashing.cpp", + "CodeViewYAMLTypes.cpp", + "DWARFEmitter.cpp", + "DWARFVisitor.cpp", + "DWARFYAML.cpp", + "ELFYAML.cpp", + "MachOYAML.cpp", + "ObjectYAML.cpp", + "WasmYAML.cpp", + "YAML.cpp", + ] +} Index: llvm/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn =================================================================== --- /dev/null +++ llvm/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn @@ -0,0 +1,18 @@ +executable("obj2yaml") { + deps = [ + "//llvm/lib/DebugInfo/CodeView", + "//llvm/lib/DebugInfo/DWARF", + "//llvm/lib/Object", + "//llvm/lib/ObjectYAML", + "//llvm/lib/Support", + ] + sources = [ + "Error.cpp", + "coff2yaml.cpp", + "dwarf2yaml.cpp", + "elf2yaml.cpp", + "macho2yaml.cpp", + "obj2yaml.cpp", + "wasm2yaml.cpp", + ] +} Index: llvm/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn =================================================================== --- /dev/null +++ llvm/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn @@ -0,0 +1,16 @@ +executable("yaml2obj") { + deps = [ + "//llvm/lib/DebugInfo/CodeView", + "//llvm/lib/MC", + "//llvm/lib/Object", + "//llvm/lib/ObjectYAML", + "//llvm/lib/Support", + ] + sources = [ + "yaml2coff.cpp", + "yaml2elf.cpp", + "yaml2macho.cpp", + "yaml2obj.cpp", + "yaml2wasm.cpp", + ] +}