File: BUILD.bazel

package info (click to toggle)
golang-github-grpc-ecosystem-grpc-gateway.v2 2.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,148 kB
  • sloc: javascript: 352; makefile: 136; sh: 26
file content (31 lines) | stat: -rw-r--r-- 881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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",
        "@com_github_golang_glog//:glog",
        "@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"],
)