github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/third_party/org_golang_x_tools/cmd/guru/BUILD.bazel.in (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "go_default_library",
     5      srcs = [
     6          "callees.go",
     7          "callers.go",
     8          "callstack.go",
     9          "definition.go",
    10          "describe.go",
    11          "freevars.go",
    12          "guru.go",
    13          "implements.go",
    14          "isAlias18.go",
    15          "isAlias19.go",
    16          "main.go",
    17          "peers.go",
    18          "pointsto.go",
    19          "pos.go",
    20          "referrers.go",
    21          "what.go",
    22          "whicherrs.go",
    23      ],
    24      importpath = "golang.org/x/tools/cmd/guru",
    25      visibility = ["//visibility:private"],
    26      deps = [
    27          "//cmd/guru/serial:go_default_library",
    28          "//go/ast/astutil:go_default_library",
    29          "//go/buildutil:go_default_library",
    30          "//go/callgraph:go_default_library",
    31          "//go/callgraph/static:go_default_library",
    32          "//go/loader:go_default_library",
    33          "//go/pointer:go_default_library",
    34          "//go/ssa:go_default_library",
    35          "//go/ssa/ssautil:go_default_library",
    36          "//go/types/typeutil:go_default_library",
    37          "//refactor/importgraph:go_default_library",
    38      ],
    39  )
    40  
    41  go_binary(
    42      name = "guru",
    43      embed = [":go_default_library"],
    44      visibility = ["//visibility:public"],
    45  )
    46  
    47  go_test(
    48      name = "go_default_test",
    49      srcs = ["unit_test.go"],
    50      embed = [":go_default_library"],
    51  )
    52  
    53  go_test(
    54      name = "go_default_xtest",
    55      srcs = ["guru_test.go"],
    56      deps = [":go_default_library"],
    57  )