BUILD 1.6 KB

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