github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/third_party/org_golang_x_tools/cmd/callgraph/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 = ["main.go"], 6 importpath = "golang.org/x/tools/cmd/callgraph", 7 visibility = ["//visibility:private"], 8 deps = [ 9 "//go/buildutil:go_default_library", 10 "//go/callgraph:go_default_library", 11 "//go/callgraph/cha:go_default_library", 12 "//go/callgraph/rta:go_default_library", 13 "//go/callgraph/static:go_default_library", 14 "//go/loader:go_default_library", 15 "//go/pointer:go_default_library", 16 "//go/ssa:go_default_library", 17 "//go/ssa/ssautil:go_default_library", 18 ], 19 ) 20 21 go_binary( 22 name = "callgraph", 23 embed = [":go_default_library"], 24 visibility = ["//visibility:public"], 25 ) 26 27 go_test( 28 name = "go_default_test", 29 srcs = select({ 30 "@io_bazel_rules_go//go/platform:darwin": [ 31 "main_test.go", 32 ], 33 "@io_bazel_rules_go//go/platform:dragonfly": [ 34 "main_test.go", 35 ], 36 "@io_bazel_rules_go//go/platform:freebsd": [ 37 "main_test.go", 38 ], 39 "@io_bazel_rules_go//go/platform:linux": [ 40 "main_test.go", 41 ], 42 "@io_bazel_rules_go//go/platform:nacl": [ 43 "main_test.go", 44 ], 45 "@io_bazel_rules_go//go/platform:netbsd": [ 46 "main_test.go", 47 ], 48 "@io_bazel_rules_go//go/platform:openbsd": [ 49 "main_test.go", 50 ], 51 "@io_bazel_rules_go//go/platform:plan9": [ 52 "main_test.go", 53 ], 54 "@io_bazel_rules_go//go/platform:solaris": [ 55 "main_test.go", 56 ], 57 "@io_bazel_rules_go//go/platform:windows": [ 58 "main_test.go", 59 ], 60 "//conditions:default": [], 61 }), 62 embed = [":go_default_library"], 63 )