Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") |
| 3 | |
| 4 | package(default_visibility = ["//visibility:public"]) |
| 5 | |
| 6 | filegroup( |
| 7 | name = "options_proto_files", |
| 8 | srcs = [ |
| 9 | "annotations.proto", |
| 10 | "openapiv2.proto", |
| 11 | ], |
| 12 | ) |
| 13 | |
| 14 | go_library( |
| 15 | name = "go_default_library", |
| 16 | embed = [":options_go_proto"], |
| 17 | importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options", |
| 18 | ) |
| 19 | |
| 20 | proto_library( |
| 21 | name = "options_proto", |
| 22 | srcs = [ |
| 23 | "annotations.proto", |
| 24 | "openapiv2.proto", |
| 25 | ], |
| 26 | deps = [ |
| 27 | "@com_google_protobuf//:any_proto", |
| 28 | "@com_google_protobuf//:descriptor_proto", |
| 29 | "@com_google_protobuf//:struct_proto", |
| 30 | ], |
| 31 | ) |
| 32 | |
| 33 | go_proto_library( |
| 34 | name = "options_go_proto", |
| 35 | compilers = ["@io_bazel_rules_go//proto:go_grpc"], |
| 36 | importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options", |
| 37 | proto = ":options_proto", |
| 38 | ) |