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