BUILD 1.5 KB

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