BUILD 1.7 KB

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