BUILD.bazel 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "override.go",
  6. "unicode.go",
  7. ],
  8. importmap = "go-common/vendor/golang.org/x/text/encoding/unicode",
  9. importpath = "golang.org/x/text/encoding/unicode",
  10. visibility = ["//visibility:public"],
  11. deps = [
  12. "//vendor/golang.org/x/text/encoding:go_default_library",
  13. "//vendor/golang.org/x/text/encoding/internal:go_default_library",
  14. "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library",
  15. "//vendor/golang.org/x/text/internal/utf8internal:go_default_library",
  16. "//vendor/golang.org/x/text/runes:go_default_library",
  17. "//vendor/golang.org/x/text/transform:go_default_library",
  18. ],
  19. )
  20. go_test(
  21. name = "go_default_test",
  22. srcs = ["unicode_test.go"],
  23. embed = [":go_default_library"],
  24. deps = [
  25. "//vendor/golang.org/x/text/encoding:go_default_library",
  26. "//vendor/golang.org/x/text/encoding/charmap:go_default_library",
  27. "//vendor/golang.org/x/text/encoding/internal/enctest:go_default_library",
  28. "//vendor/golang.org/x/text/transform:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [
  40. ":package-srcs",
  41. "//vendor/golang.org/x/text/encoding/unicode/utf32:all-srcs",
  42. ],
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. )