BUILD 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. "Guard.proto",
  14. "Note.proto",
  15. "RoomAdmin.proto",
  16. "UserSetting.proto",
  17. ],
  18. tags = ["automanaged"],
  19. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  20. )
  21. go_proto_library(
  22. name = "v1_go_proto",
  23. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  24. importpath = "go-common/app/service/live/live_user/api/liverpc/v1",
  25. proto = ":v1_proto",
  26. tags = ["automanaged"],
  27. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  28. )
  29. go_library(
  30. name = "go_default_library",
  31. srcs = [
  32. "Guard.liverpc.go",
  33. "Note.liverpc.go",
  34. "RoomAdmin.liverpc.go",
  35. "UserSetting.liverpc.go",
  36. ],
  37. embed = [":v1_go_proto"],
  38. importpath = "go-common/app/service/live/live_user/api/liverpc/v1",
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. deps = [
  42. "//library/net/rpc/liverpc:go_default_library",
  43. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  44. "@com_github_gogo_protobuf//proto:go_default_library",
  45. "@com_github_golang_protobuf//proto:go_default_library",
  46. ],
  47. )
  48. filegroup(
  49. name = "package-srcs",
  50. srcs = glob(["**"]),
  51. tags = ["automanaged"],
  52. visibility = ["//visibility:private"],
  53. )
  54. filegroup(
  55. name = "all-srcs",
  56. srcs = [":package-srcs"],
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:public"],
  59. )