blob: 929d0cf11d55da070ce858af17b5ef383aa9db97 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3package(default_visibility = ["//protoc-gen-swagger:__subpackages__"])
4
5go_library(
6 name = "go_default_library",
7 srcs = [
8 "doc.go",
9 "generator.go",
10 "template.go",
11 "types.go",
12 ],
13 importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger",
14 deps = [
15 "//internal:go_default_library",
16 "//protoc-gen-grpc-gateway/descriptor:go_default_library",
17 "//protoc-gen-grpc-gateway/generator:go_default_library",
18 "//protoc-gen-swagger/options:go_default_library",
19 "@com_github_golang_glog//:go_default_library",
20 "@com_github_golang_protobuf//descriptor:go_default_library_gen",
21 "@com_github_golang_protobuf//jsonpb:go_default_library_gen",
22 "@com_github_golang_protobuf//proto:go_default_library",
23 "@com_github_golang_protobuf//protoc-gen-go/generator:go_default_library_gen",
24 "@io_bazel_rules_go//proto/wkt:any_go_proto",
25 "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto",
26 "@io_bazel_rules_go//proto/wkt:descriptor_go_proto",
27 "@io_bazel_rules_go//proto/wkt:struct_go_proto",
28 ],
29)
30
31go_test(
32 name = "go_default_test",
33 size = "small",
34 srcs = ["template_test.go"],
35 embed = [":go_default_library"],
36 deps = [
37 "//protoc-gen-grpc-gateway/descriptor:go_default_library",
38 "//protoc-gen-grpc-gateway/httprule:go_default_library",
39 "//protoc-gen-swagger/options:go_default_library",
40 "@com_github_golang_protobuf//proto:go_default_library",
41 "@io_bazel_rules_go//proto/wkt:any_go_proto",
42 "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto",
43 "@io_bazel_rules_go//proto/wkt:descriptor_go_proto",
44 "@io_bazel_rules_go//proto/wkt:struct_go_proto",
45 ],
46)