...

Text file src/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway/BUILD.bazel

Documentation: github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway

     1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
     2load("@io_bazel_rules_go//proto:compiler.bzl", "go_proto_compiler")
     3
     4package(default_visibility = ["//visibility:private"])
     5
     6go_library(
     7    name = "protoc-gen-grpc-gateway_lib",
     8    srcs = ["main.go"],
     9    importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway",
    10    deps = [
    11        "//internal/codegenerator",
    12        "//internal/descriptor",
    13        "//protoc-gen-grpc-gateway/internal/gengateway",
    14        "@org_golang_google_grpc//grpclog",
    15        "@org_golang_google_protobuf//compiler/protogen",
    16    ],
    17)
    18
    19go_binary(
    20    name = "protoc-gen-grpc-gateway",
    21    embed = [":protoc-gen-grpc-gateway_lib"],
    22    visibility = ["//visibility:public"],
    23)
    24
    25go_proto_compiler(
    26    name = "go_gen_grpc_gateway",
    27    plugin = ":protoc-gen-grpc-gateway",
    28    suffix = ".pb.gw.go",
    29    visibility = ["//visibility:public"],
    30    deps = [
    31        "//runtime:go_default_library",
    32        "//utilities:go_default_library",
    33        "@org_golang_google_grpc//grpclog:go_default_library",
    34        "@org_golang_google_grpc//metadata:go_default_library",
    35    ],
    36)

View as plain text