BUILD.bazel 883 B

12345678910111213141516171819202122232425262728293031
  1. load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
  2. package(default_visibility = ["//visibility:private"])
  3. go_library(
  4. name = "protoc-gen-openapiv2_lib",
  5. srcs = ["main.go"],
  6. importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2",
  7. deps = [
  8. "//internal/codegenerator",
  9. "//internal/descriptor",
  10. "//protoc-gen-openapiv2/internal/genopenapi",
  11. "//utilities",
  12. "@org_golang_google_grpc//grpclog",
  13. "@org_golang_google_protobuf//proto",
  14. "@org_golang_google_protobuf//types/pluginpb",
  15. ],
  16. )
  17. go_binary(
  18. name = "protoc-gen-openapiv2",
  19. embed = [":protoc-gen-openapiv2_lib"],
  20. visibility = ["//visibility:public"],
  21. )
  22. go_test(
  23. name = "protoc-gen-openapiv2_test",
  24. size = "small",
  25. srcs = ["main_test.go"],
  26. embed = [":protoc-gen-openapiv2_lib"],
  27. )