BUILD.bazel 593 B

12345678910111213141516171819202122232425
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["pcre.go"],
  5. cdeps = ["@pcre//:pcre"],
  6. cgo = True,
  7. importmap = "go-common/vendor/github.com/GRbit/go-pcre",
  8. importpath = "github.com/GRbit/go-pcre",
  9. visibility = ["//visibility:public"],
  10. )
  11. filegroup(
  12. name = "package-srcs",
  13. srcs = glob(["**"]),
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:private"],
  16. )
  17. filegroup(
  18. name = "all-srcs",
  19. srcs = [":package-srcs"],
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. )