BUILD.bazel 608 B

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