BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//proto:def.bzl",
  7. "go_proto_library",
  8. )
  9. proto_library(
  10. name = "grpc_proto",
  11. srcs = ["bvc.proto"],
  12. tags = ["automanaged"],
  13. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  14. )
  15. go_proto_library(
  16. name = "grpc_go_proto",
  17. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  18. importpath = "go-common/app/interface/bbq/app-bbq/model/grpc",
  19. proto = ":grpc_proto",
  20. tags = ["automanaged"],
  21. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [],
  26. embed = [":grpc_go_proto"],
  27. importpath = "go-common/app/interface/bbq/app-bbq/model/grpc",
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. deps = [
  31. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  32. "@com_github_gogo_protobuf//proto:go_default_library",
  33. "@com_github_gogo_protobuf//sortkeys:go_default_library",
  34. "@org_golang_google_grpc//:go_default_library",
  35. "@org_golang_x_net//context:go_default_library",
  36. ],
  37. )
  38. filegroup(
  39. name = "package-srcs",
  40. srcs = glob(["**"]),
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:private"],
  43. )
  44. filegroup(
  45. name = "all-srcs",
  46. srcs = [":package-srcs"],
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:public"],
  49. )