[PATCH] D55687: [gn build] Add build files for obj2yaml, yaml2obj, and lib/ObjectYAML
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 13 19:16:46 PST 2018
thakis created this revision.
thakis added a reviewer: phosek.
Herald added subscribers: aheejin, hiraditya.
Nothing interesting happening here.
The two executables are needed by check-lld.
https://reviews.llvm.org/D55687
Files:
llvm/utils/gn/secondary/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn
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",
+ ]
+}
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/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/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",
]
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55687.178169.patch
Type: text/x-patch
Size: 2192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181214/b5e1d56d/attachment.bin>
More information about the llvm-commits
mailing list