BUILD.bazel 1.1 KB

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