BUILD 1.6 KB

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