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

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "go_default_library",
     5      srcs = [
     6          "cgo.go",
     7          "cgo_pkgconfig.go",
     8          "doc.go",
     9          "loader.go",
    10          "util.go",
    11      ],
    12      importpath = "golang.org/x/tools/go/loader",
    13      visibility = ["//visibility:public"],
    14      deps = [
    15          "//go/ast/astutil:go_default_library",
    16          "//go/buildutil:go_default_library",
    17      ],
    18  )
    19  
    20  go_test(
    21      name = "go_default_xtest",
    22      srcs = [
    23          "stdlib_test.go",
    24      ] + select({
    25          "@io_bazel_rules_go//go/platform:android": [
    26              "example_test.go",
    27          ],
    28          "@io_bazel_rules_go//go/platform:darwin": [
    29              "example_test.go",
    30              "loader_test.go",
    31          ],
    32          "@io_bazel_rules_go//go/platform:dragonfly": [
    33              "example_test.go",
    34              "loader_test.go",
    35          ],
    36          "@io_bazel_rules_go//go/platform:freebsd": [
    37              "example_test.go",
    38              "loader_test.go",
    39          ],
    40          "@io_bazel_rules_go//go/platform:linux": [
    41              "example_test.go",
    42              "loader_test.go",
    43          ],
    44          "@io_bazel_rules_go//go/platform:nacl": [
    45              "example_test.go",
    46              "loader_test.go",
    47          ],
    48          "@io_bazel_rules_go//go/platform:netbsd": [
    49              "example_test.go",
    50              "loader_test.go",
    51          ],
    52          "@io_bazel_rules_go//go/platform:openbsd": [
    53              "example_test.go",
    54              "loader_test.go",
    55          ],
    56          "@io_bazel_rules_go//go/platform:plan9": [
    57              "example_test.go",
    58              "loader_test.go",
    59          ],
    60          "@io_bazel_rules_go//go/platform:solaris": [
    61              "example_test.go",
    62              "loader_test.go",
    63          ],
    64          "@io_bazel_rules_go//go/platform:windows": [
    65              "loader_test.go",
    66          ],
    67          "//conditions:default": [],
    68      }),
    69      deps = [
    70          ":go_default_library",
    71          "//go/buildutil:go_default_library",
    72      ],
    73  )