BUILD.bazel 1.4 KB

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