BUILD.bazel 639 B

123456789101112131415161718192021222324252627
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "runewidth.go",
  6. "runewidth_posix.go",
  7. "runewidth_windows.go",
  8. ],
  9. importmap = "go-common/vendor/github.com/mattn/go-runewidth",
  10. importpath = "github.com/mattn/go-runewidth",
  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. )