github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/platforms/BUILD.want (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "platforms",
     5      srcs = [
     6          "cgo_generic.c",
     7          "cgo_generic.go",
     8          "cgo_linux.c",
     9          "cgo_linux.go",
    10          "constraints_dual_cgo.go",
    11          "constraints_dual_no_cgo.go",
    12          "constraints_verify_demorgans_law.go",
    13          "generic.go",
    14          "new_constraint_a.go",
    15          "no_cgo.go",
    16          "release.go",
    17          "suffix_amd64.go",
    18          "suffix_arm.go",
    19          "suffix_darwin.go",
    20          "suffix_linux.go",
    21          "tag_a.go",
    22          "tag_d.go",
    23          "tag_l.go",
    24      ],
    25      _gazelle_imports = [
    26          "example.com/repo/platforms/generic",
    27      ] + select({
    28          "@io_bazel_rules_go//go/platform:android": [
    29              "example.com/repo/platforms/linux",
    30          ],
    31          "@io_bazel_rules_go//go/platform:darwin": [
    32              "example.com/repo/platforms/darwin",
    33          ],
    34          "@io_bazel_rules_go//go/platform:ios": [
    35              "example.com/repo/platforms/darwin",
    36          ],
    37          "@io_bazel_rules_go//go/platform:linux": [
    38              "example.com/repo/platforms/linux",
    39          ],
    40          "//conditions:default": [],
    41      }),
    42      cgo = True,
    43      copts = [
    44          "-DGENERIC",
    45      ] + select({
    46          "@io_bazel_rules_go//go/platform:android": [
    47              "-DLINUX",
    48          ],
    49          "@io_bazel_rules_go//go/platform:linux": [
    50              "-DLINUX",
    51          ],
    52          "//conditions:default": [],
    53      }),
    54      importpath = "example.com/repo/platforms",
    55      visibility = ["//visibility:public"],
    56  )
    57  
    58  go_test(
    59      name = "platforms_test",
    60      srcs = [
    61          "generic_test.go",
    62          "suffix_linux_test.go",
    63      ],
    64      _gazelle_imports = ["example.com/repo/platforms"],
    65  )