BUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = "quality_proto",
  12. srcs = ["quality.proto"],
  13. tags = ["automanaged"],
  14. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  15. )
  16. go_proto_library(
  17. name = "quality_go_proto",
  18. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  19. importpath = "go-common/app/job/bbq/recall/proto/quality",
  20. proto = ":quality_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. embed = [":quality_go_proto"],
  28. importpath = "go-common/app/job/bbq/recall/proto/quality",
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. deps = [
  32. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  33. "@com_github_gogo_protobuf//proto:go_default_library",
  34. ],
  35. )
  36. filegroup(
  37. name = "package-srcs",
  38. srcs = glob(["**"]),
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:private"],
  41. )
  42. filegroup(
  43. name = "all-srcs",
  44. srcs = [":package-srcs"],
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. )