[PATCH] D55687: [gn build] Add build files for obj2yaml, yaml2obj, and lib/ObjectYAML

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 15 18:32:29 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL349290: [gn build] Add build files for obj2yaml, yaml2obj, and lib/ObjectYAML (authored by nico, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D55687?vs=178169&id=178383#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55687/new/

https://reviews.llvm.org/D55687

Files:
  llvm/trunk/utils/gn/secondary/BUILD.gn
  llvm/trunk/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn
  llvm/trunk/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn
  llvm/trunk/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn


Index: llvm/trunk/utils/gn/secondary/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn
+++ llvm/trunk/utils/gn/secondary/BUILD.gn
@@ -7,6 +7,8 @@
     "//llvm/tools/llvm-dwarfdump",
     "//llvm/tools/llvm-mc",
     "//llvm/tools/llvm-undname",
+    "//llvm/tools/obj2yaml",
+    "//llvm/tools/yaml2obj",
     "//llvm/utils/FileCheck",
     "//llvm/utils/count",
     "//llvm/utils/not",
Index: llvm/trunk/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn
+++ llvm/trunk/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/trunk/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn
+++ llvm/trunk/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/trunk/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn
+++ llvm/trunk/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",
+  ]
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55687.178383.patch
Type: text/x-patch
Size: 2482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181216/7cb36120/attachment.bin>


More information about the llvm-commits mailing list