BUILD.bazel 1.8 KB

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