BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//go:def.bzl",
  7. "go_library",
  8. )
  9. proto_library(
  10. name = "v1_proto",
  11. srcs = ["api.proto"],
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/job/bbq/recall/proto:proto_proto",
  15. "@com_google_protobuf//:empty_proto",
  16. "@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
  17. ],
  18. )
  19. go_proto_library(
  20. name = "v1_go_proto",
  21. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  22. importpath = "go-common/app/service/bbq/recsys-recall/api/grpc/v1",
  23. proto = ":v1_proto",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/job/bbq/recall/proto:proto_go_proto",
  27. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  28. "@io_bazel_rules_go//proto/wkt:empty_go_proto",
  29. ],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [],
  34. embed = [":v1_go_proto"],
  35. importpath = "go-common/app/service/bbq/recsys-recall/api/grpc/v1",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//app/job/bbq/recall/proto:go_default_library",
  40. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  41. "@com_github_gogo_protobuf//proto:go_default_library",
  42. "@io_bazel_rules_go//proto/wkt:empty_go_proto",
  43. "@org_golang_google_grpc//:go_default_library",
  44. "@org_golang_x_net//context: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. )