Skip to content

Commit

Permalink
Add filegroup for options proto files
Browse files Browse the repository at this point in the history
This allows other projects to generate proto code for other languages, e.g. py_proto_library
  • Loading branch information
kellycampbell authored Dec 5, 2018
1 parent d8ad87e commit a7b9b24
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions protoc-gen-swagger/options/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

package(default_visibility = ["//visibility:public"])

proto_library(
name = "options_proto",
filegroup(
name = "options_proto_files",
srcs = [
"annotations.proto",
"openapiv2.proto",
],
)

proto_library(
name = "options_proto",
srcs = [
":options_proto_files"
],
deps = [
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:descriptor_proto",
Expand Down

0 comments on commit a7b9b24

Please sign in to comment.