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 = "proto_proto",
  12. srcs = ["forward_index.proto"],
  13. tags = ["automanaged"],
  14. deps = [
  15. "//app/job/bbq/recall/proto/quality:quality_proto",
  16. "@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
  17. ],
  18. )
  19. go_proto_library(
  20. name = "proto_go_proto",
  21. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  22. importpath = "go-common/app/job/bbq/recall/proto",
  23. proto = ":proto_proto",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/job/bbq/recall/proto/quality:quality_go_proto",
  27. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [],
  33. embed = [":proto_go_proto"],
  34. importpath = "go-common/app/job/bbq/recall/proto",
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. deps = [
  38. "//app/job/bbq/recall/proto/quality:go_default_library",
  39. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  40. "@com_github_gogo_protobuf//proto:go_default_library",
  41. ],
  42. )
  43. filegroup(
  44. name = "package-srcs",
  45. srcs = glob(["**"]),
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:private"],
  48. )
  49. filegroup(
  50. name = "all-srcs",
  51. srcs = [
  52. ":package-srcs",
  53. "//app/job/bbq/recall/proto/quality:all-srcs",
  54. ],
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:public"],
  57. )