Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") |
| 2 | |
| 3 | package(default_visibility = ["//visibility:private"]) |
| 4 | |
| 5 | go_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 | |
| 19 | go_binary( |
| 20 | name = "protoc-gen-swagger", |
| 21 | embed = [":go_default_library"], |
| 22 | visibility = ["//visibility:public"], |
| 23 | ) |
| 24 | |
| 25 | go_test( |
| 26 | name = "go_default_test", |
| 27 | size = "small", |
| 28 | srcs = ["main_test.go"], |
| 29 | embed = [":go_default_library"], |
| 30 | ) |