BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. proto_library(
  11. name = "v1_proto",
  12. srcs = [
  13. "AdminSilent.proto",
  14. "Shield.proto",
  15. "ShieldMng.proto",
  16. "Silent.proto",
  17. "SilentMng.proto",
  18. "SiteBlockMng.proto",
  19. ],
  20. tags = ["automanaged"],
  21. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  22. )
  23. go_proto_library(
  24. name = "v1_go_proto",
  25. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  26. importpath = "go-common/app/service/live/banned_service/api/liverpc/v1",
  27. proto = ":v1_proto",
  28. tags = ["automanaged"],
  29. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [
  34. "AdminSilent.liverpc.go",
  35. "Shield.liverpc.go",
  36. "ShieldMng.liverpc.go",
  37. "Silent.liverpc.go",
  38. "SilentMng.liverpc.go",
  39. "SiteBlockMng.liverpc.go",
  40. ],
  41. embed = [":v1_go_proto"],
  42. importpath = "go-common/app/service/live/banned_service/api/liverpc/v1",
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. deps = [
  46. "//library/net/rpc/liverpc:go_default_library",
  47. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  48. "@com_github_gogo_protobuf//proto:go_default_library",
  49. "@com_github_golang_protobuf//proto: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. )