BUILD.bazel 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["encoding.go"],
  5. importmap = "go-common/vendor/golang.org/x/text/encoding",
  6. importpath = "golang.org/x/text/encoding",
  7. visibility = ["//visibility:public"],
  8. deps = [
  9. "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library",
  10. "//vendor/golang.org/x/text/transform:go_default_library",
  11. ],
  12. )
  13. go_test(
  14. name = "go_default_test",
  15. srcs = [
  16. "encoding_test.go",
  17. "example_test.go",
  18. ],
  19. data = glob(["testdata/**"]),
  20. embed = [":go_default_library"],
  21. deps = [
  22. "//vendor/golang.org/x/text/encoding/charmap:go_default_library",
  23. "//vendor/golang.org/x/text/encoding/unicode:go_default_library",
  24. "//vendor/golang.org/x/text/transform:go_default_library",
  25. ],
  26. )
  27. go_test(
  28. name = "go_default_xtest",
  29. srcs = [
  30. "encoding_test.go",
  31. "example_test.go",
  32. ],
  33. tags = ["automanaged"],
  34. deps = [
  35. "//vendor/golang.org/x/text/encoding:go_default_library",
  36. "//vendor/golang.org/x/text/encoding/charmap:go_default_library",
  37. "//vendor/golang.org/x/text/encoding/unicode:go_default_library",
  38. "//vendor/golang.org/x/text/transform:go_default_library",
  39. ],
  40. )
  41. filegroup(
  42. name = "package-srcs",
  43. srcs = glob(["**"]),
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:private"],
  46. )
  47. filegroup(
  48. name = "all-srcs",
  49. srcs = [
  50. ":package-srcs",
  51. "//vendor/golang.org/x/text/encoding/charmap:all-srcs",
  52. "//vendor/golang.org/x/text/encoding/htmlindex:all-srcs",
  53. "//vendor/golang.org/x/text/encoding/ianaindex:all-srcs",
  54. "//vendor/golang.org/x/text/encoding/internal:all-srcs",
  55. "//vendor/golang.org/x/text/encoding/japanese:all-srcs",
  56. "//vendor/golang.org/x/text/encoding/korean:all-srcs",
  57. "//vendor/golang.org/x/text/encoding/simplifiedchinese:all-srcs",
  58. "//vendor/golang.org/x/text/encoding/traditionalchinese:all-srcs",
  59. "//vendor/golang.org/x/text/encoding/unicode:all-srcs",
  60. ],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )