BUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//proto:def.bzl",
  7. "go_proto_library",
  8. )
  9. proto_library(
  10. name = "render_proto",
  11. srcs = ["pb.proto"],
  12. tags = ["automanaged"],
  13. visibility = ["//visibility:public"],
  14. deps = [
  15. "@com_google_protobuf//:any_proto",
  16. "@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
  17. ],
  18. )
  19. go_proto_library(
  20. name = "render_go_proto",
  21. compilers = ["@io_bazel_rules_go//proto:gogo_proto"],
  22. importpath = "go-common/library/net/http/blademaster/render",
  23. proto = ":render_proto",
  24. tags = ["manual"],
  25. visibility = ["//visibility:public"],
  26. deps = [
  27. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  28. "@com_github_golang_protobuf//ptypes/any:go_default_library",
  29. ],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [
  34. "data.go",
  35. "json.go",
  36. "protobuf.go",
  37. "redirect.go",
  38. "render.go",
  39. "string.go",
  40. "xml.go",
  41. ],
  42. embed = [":render_go_proto"],
  43. importpath = "go-common/library/net/http/blademaster/render",
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. deps = [
  47. "//vendor/github.com/pkg/errors:go_default_library",
  48. "@com_github_gogo_protobuf//proto:go_default_library",
  49. "@com_github_gogo_protobuf//types:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )