BUILD.bazel 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "charmap.go",
  6. "tables.go",
  7. ],
  8. importmap = "go-common/vendor/golang.org/x/text/encoding/charmap",
  9. importpath = "golang.org/x/text/encoding/charmap",
  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/transform:go_default_library",
  16. ],
  17. )
  18. go_test(
  19. name = "go_default_test",
  20. srcs = ["charmap_test.go"],
  21. embed = [":go_default_library"],
  22. deps = [
  23. "//vendor/golang.org/x/text/encoding:go_default_library",
  24. "//vendor/golang.org/x/text/encoding/internal:go_default_library",
  25. "//vendor/golang.org/x/text/encoding/internal/enctest:go_default_library",
  26. "//vendor/golang.org/x/text/transform:go_default_library",
  27. ],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [":package-srcs"],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )