BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 = [
  12. "graph.proto",
  13. "risk.proto",
  14. ],
  15. tags = ["automanaged"],
  16. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  17. )
  18. go_proto_library(
  19. name = "v1_go_proto",
  20. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  21. importpath = "go-common/app/service/openplatform/anti-fraud/api/grpc/v1",
  22. proto = ":v1_proto",
  23. tags = ["automanaged"],
  24. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  25. )
  26. go_library(
  27. name = "go_default_library",
  28. srcs = [],
  29. embed = [":v1_go_proto"],
  30. importpath = "go-common/app/service/openplatform/anti-fraud/api/grpc/v1",
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. deps = [
  34. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  35. "@com_github_gogo_protobuf//proto:go_default_library",
  36. "@org_golang_google_grpc//:go_default_library",
  37. "@org_golang_x_net//context:go_default_library",
  38. ],
  39. )
  40. filegroup(
  41. name = "package-srcs",
  42. srcs = glob(["**"]),
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:private"],
  45. )
  46. filegroup(
  47. name = "all-srcs",
  48. srcs = [":package-srcs"],
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:public"],
  51. )