github.com/0xKiwi/rules_go@v0.24.3/tests/legacy/cgo_opts/BUILD.bazel (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 = ["cgo_opts.go"],
     6      cgo = True,
     7      copts = ["-DFOO=1 -DBAR=2 -g -O2"],
     8      importpath = "github.com/bazelbuild/rules_go/tests/cgo_opts",
     9      visibility = ["//visibility:public"],
    10  )
    11  
    12  go_test(
    13      name = "go_default_test",
    14      srcs = ["cgo_opts_test.go"],
    15      embed = [":go_default_library"],
    16  )