llvm/llvm/utils/gn/secondary/llvm/lib/Target/Hexagon/Disassembler/BUILD.gn

import("//llvm/utils/TableGen/tablegen.gni")

tablegen("HexagonGenDisassemblerTables") {
  visibility = [ ":Disassembler" ]
  args = [ "-gen-disassembler" ]
  td_file = "../Hexagon.td"
}

static_library("Disassembler") {
  output_name = "LLVMHexagonDisassembler"
  deps = [
    ":HexagonGenDisassemblerTables",
    "//llvm/lib/MC/MCDisassembler",
    "//llvm/lib/Support",
    "//llvm/lib/Target/Hexagon/MCTargetDesc",
    "//llvm/lib/Target/Hexagon/TargetInfo",
  ]
  include_dirs = [ ".." ]
  sources = [ "HexagonDisassembler.cpp" ]
}