File: BUILD.bazel

package info (click to toggle)
golang-github-grpc-ecosystem-grpc-gateway 2.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,236 kB
  • sloc: javascript: 357; makefile: 147; sh: 26
file content (33 lines) | stat: -rw-r--r-- 932 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
32
33
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

package(default_visibility = ["//visibility:public"])

proto_library(
    name = "apiconfig_proto",
    srcs = [
        "apiconfig.proto",
    ],
    deps = ["@googleapis//google/api:http_proto"],
)

go_proto_library(
    name = "apiconfig_go_proto",
    compilers = ["//:go_apiv2"],
    importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/internal/descriptor/apiconfig",
    proto = ":apiconfig_proto",
    deps = ["@org_golang_google_genproto_googleapis_api//annotations"],
)

go_library(
    name = "apiconfig",
    embed = [":apiconfig_go_proto"],
    importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/internal/descriptor/apiconfig",
)

alias(
    name = "go_default_library",
    actual = ":apiconfig",
    visibility = ["//:__subpackages__"],
)