12345678910111213141516171819202122232425262728293031 |
- load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
- package(default_visibility = ["//visibility:private"])
- go_library(
- name = "protoc-gen-openapiv2_lib",
- srcs = ["main.go"],
- importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2",
- deps = [
- "//internal/codegenerator",
- "//internal/descriptor",
- "//protoc-gen-openapiv2/internal/genopenapi",
- "//utilities",
- "@org_golang_google_grpc//grpclog",
- "@org_golang_google_protobuf//proto",
- "@org_golang_google_protobuf//types/pluginpb",
- ],
- )
- go_binary(
- name = "protoc-gen-openapiv2",
- embed = [":protoc-gen-openapiv2_lib"],
- visibility = ["//visibility:public"],
- )
- go_test(
- name = "protoc-gen-openapiv2_test",
- size = "small",
- srcs = ["main_test.go"],
- embed = [":protoc-gen-openapiv2_lib"],
- )
|