BUILD.bazel 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
  3. load("@rules_proto//proto:defs.bzl", "proto_library")
  4. package(default_visibility = ["//visibility:public"])
  5. filegroup(
  6. name = "options_proto_files",
  7. srcs = [
  8. "annotations.proto",
  9. "openapiv2.proto",
  10. ],
  11. )
  12. go_library(
  13. name = "options",
  14. embed = [":options_go_proto"],
  15. importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options",
  16. )
  17. proto_library(
  18. name = "options_proto",
  19. srcs = [
  20. "annotations.proto",
  21. "openapiv2.proto",
  22. ],
  23. deps = [
  24. "@com_google_protobuf//:descriptor_proto",
  25. "@com_google_protobuf//:struct_proto",
  26. ],
  27. )
  28. go_proto_library(
  29. name = "options_go_proto",
  30. compilers = ["//:go_apiv2"],
  31. importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options",
  32. proto = ":options_proto",
  33. )
  34. alias(
  35. name = "go_default_library",
  36. actual = ":options",
  37. visibility = ["//visibility:public"],
  38. )