Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1 | load("@rules_proto//proto:defs.bzl", "proto_library") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 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 | filegroup( |
| 8 | name = "options_proto_files", |
| 9 | srcs = [ |
| 10 | "annotations.proto", |
| 11 | "openapiv2.proto", |
| 12 | ], |
| 13 | ) |
| 14 | |
| 15 | go_library( |
| 16 | name = "go_default_library", |
| 17 | embed = [":options_go_proto"], |
| 18 | importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options", |
| 19 | ) |
| 20 | |
| 21 | proto_library( |
| 22 | name = "options_proto", |
| 23 | srcs = [ |
| 24 | "annotations.proto", |
| 25 | "openapiv2.proto", |
| 26 | ], |
| 27 | deps = [ |
| 28 | "@com_google_protobuf//:any_proto", |
| 29 | "@com_google_protobuf//:descriptor_proto", |
| 30 | "@com_google_protobuf//:struct_proto", |
| 31 | ], |
| 32 | ) |
| 33 | |
| 34 | go_proto_library( |
| 35 | name = "options_go_proto", |
| 36 | compilers = ["@io_bazel_rules_go//proto:go_grpc"], |
| 37 | importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options", |
| 38 | proto = ":options_proto", |
| 39 | ) |