github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/helloworld/BUILD.bazel (about) 1 load("@rules_proto//proto:defs.bzl", "proto_library") 2 load("@io_bazel_rules_go//go:def.bzl", "go_library") 3 load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") 4 5 # gazelle:exclude helloworld.pb.gw.go 6 # gazelle:exclude helloworld_grpc.pb.go 7 # gazelle:go_grpc_compilers //:go_apiv2, //:go_grpc, //protoc-gen-grpc-gateway:go_gen_grpc_gateway 8 9 proto_library( 10 name = "helloworld_proto", 11 srcs = ["helloworld.proto"], 12 visibility = ["//visibility:public"], 13 deps = [ 14 "@com_google_protobuf//:wrappers_proto", 15 "@googleapis//google/api:annotations_proto", 16 ], 17 ) 18 19 go_proto_library( 20 name = "helloworld_go_proto", 21 compilers = [ 22 "//:go_apiv2", 23 "//:go_grpc", 24 "//protoc-gen-grpc-gateway:go_gen_grpc_gateway", 25 ], 26 importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/helloworld", 27 proto = ":helloworld_proto", 28 visibility = ["//visibility:public"], 29 deps = [ 30 "@org_golang_google_genproto_googleapis_api//annotations", 31 ], 32 ) 33 34 go_library( 35 name = "helloworld", 36 embed = [":helloworld_go_proto"], 37 importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/helloworld", 38 visibility = ["//examples:__subpackages__"], 39 ) 40 41 alias( 42 name = "go_default_library", 43 actual = ":helloworld", 44 visibility = ["//examples:__subpackages__"], 45 )