blob: d5a1d05fcc7226e544c40f28c739b2273ebf6fe2 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
2
3package(default_visibility = ["//visibility:private"])
4
5go_library(
6 name = "go_default_library",
7 srcs = ["main.go"],
8 importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger",
9 deps = [
10 "//codegenerator:go_default_library",
11 "//protoc-gen-grpc-gateway/descriptor:go_default_library",
12 "//protoc-gen-swagger/genswagger:go_default_library",
13 "@com_github_golang_glog//:go_default_library",
14 "@com_github_golang_protobuf//proto:go_default_library",
15 "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto",
16 ],
17)
18
19go_binary(
20 name = "protoc-gen-swagger",
21 embed = [":go_default_library"],
22 visibility = ["//visibility:public"],
23)
24
25go_test(
26 name = "go_default_test",
27 size = "small",
28 srcs = ["main_test.go"],
29 embed = [":go_default_library"],
30)