[llvm] r349290 - [gn build] Add build files for obj2yaml, yaml2obj, and lib/ObjectYAML

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 15 18:29:02 PST 2018


Author: nico
Date: Sat Dec 15 18:29:02 2018
New Revision: 349290

URL: http://llvm.org/viewvc/llvm-project?rev=349290&view=rev
Log:
[gn build] Add build files for obj2yaml, yaml2obj, and lib/ObjectYAML

The two executables are needed by check-lld.

Differential Revision: https://reviews.llvm.org/D55687

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

Modified: llvm/trunk/utils/gn/secondary/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/BUILD.gn?rev=349290&r1=349289&r2=349290&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/BUILD.gn Sat Dec 15 18:29:02 2018
@@ -7,6 +7,8 @@ group("default") {
     "//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",

Added: llvm/trunk/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn?rev=349290&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/lib/ObjectYAML/BUILD.gn Sat Dec 15 18:29:02 2018
@@ -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",
+  ]
+}

Added: llvm/trunk/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn?rev=349290&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/tools/obj2yaml/BUILD.gn Sat Dec 15 18:29:02 2018
@@ -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",
+  ]
+}

Added: llvm/trunk/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn?rev=349290&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/tools/yaml2obj/BUILD.gn Sat Dec 15 18:29:02 2018
@@ -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",
+  ]
+}




More information about the llvm-commits mailing list