BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "api.proto",
  14. "dm.proto",
  15. "gift.proto",
  16. "roomNotice.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/interface/live/app-room/api/http/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. "dm.bm.go",
  33. "gift.bm.go",
  34. "roomNotice.bm.go",
  35. ],
  36. embed = [":v1_go_proto"],
  37. importpath = "go-common/app/interface/live/app-room/api/http/v1",
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. deps = [
  41. "//library/net/http/blademaster:go_default_library",
  42. "//library/net/http/blademaster/binding:go_default_library",
  43. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  44. "@com_github_gogo_protobuf//proto:go_default_library",
  45. ],
  46. )
  47. filegroup(
  48. name = "package-srcs",
  49. srcs = glob(["**"]),
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:private"],
  52. )
  53. filegroup(
  54. name = "all-srcs",
  55. srcs = [":package-srcs"],
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. )