github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/proto/sub/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 package(default_visibility = ["//visibility:public"]) 6 7 proto_library( 8 name = "sub_proto", 9 srcs = ["message.proto"], 10 ) 11 12 go_proto_library( 13 name = "sub_go_proto", 14 compilers = ["//:go_apiv2"], 15 importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/sub", 16 proto = ":sub_proto", 17 ) 18 19 go_library( 20 name = "sub", 21 embed = [":sub_go_proto"], 22 importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/sub", 23 ) 24 25 alias( 26 name = "go_default_library", 27 actual = ":sub", 28 visibility = ["//examples:__subpackages__"], 29 )