...
1load("@rules_proto//proto:defs.bzl", "proto_library")
2load("@io_bazel_rules_go//go:def.bzl", "go_library")
3load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
4
5proto_library(
6 name = "helloworld_proto",
7 srcs = ["helloworld.proto"],
8 visibility = ["//visibility:public"],
9 deps = [
10 "@com_google_protobuf//:wrappers_proto",
11 "@go_googleapis//google/api:annotations_proto",
12 ],
13)
14
15go_proto_library(
16 name = "helloworld_go_proto",
17 compilers = ["@io_bazel_rules_go//proto:go_grpc"],
18 importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/helloworld",
19 proto = ":helloworld_proto",
20 visibility = ["//visibility:public"],
21 deps = ["@go_googleapis//google/api:annotations_go_proto"],
22)
23
24go_library(
25 name = "go_default_library",
26 srcs = ["helloworld.pb.gw.go"],
27 embed = [":helloworld_go_proto"],
28 importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/helloworld",
29 visibility = ["//visibility:public"],
30 deps = [
31 "//runtime:go_default_library",
32 "//utilities:go_default_library",
33 "@com_github_golang_protobuf//descriptor:go_default_library_gen",
34 "@com_github_golang_protobuf//proto:go_default_library",
35 "@org_golang_google_grpc//:go_default_library",
36 "@org_golang_google_grpc//codes:go_default_library",
37 "@org_golang_google_grpc//grpclog:go_default_library",
38 "@org_golang_google_grpc//metadata:go_default_library",
39 "@org_golang_google_grpc//status:go_default_library",
40 ],
41)
View as plain text