Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 2 | |
| 3 | package(default_visibility = ["//protoc-gen-grpc-gateway:__subpackages__"]) |
| 4 | |
| 5 | go_library( |
| 6 | name = "go_default_library", |
| 7 | srcs = [ |
| 8 | "doc.go", |
| 9 | "generator.go", |
| 10 | "template.go", |
| 11 | ], |
| 12 | importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/gengateway", |
| 13 | deps = [ |
| 14 | "//protoc-gen-grpc-gateway/descriptor:go_default_library", |
| 15 | "//protoc-gen-grpc-gateway/generator:go_default_library", |
| 16 | "//utilities:go_default_library", |
| 17 | "@com_github_golang_glog//:go_default_library", |
| 18 | "@com_github_golang_protobuf//proto:go_default_library", |
| 19 | "@com_github_golang_protobuf//protoc-gen-go/generator:go_default_library_gen", |
| 20 | "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", |
| 21 | ], |
| 22 | ) |
| 23 | |
| 24 | go_test( |
| 25 | name = "go_default_test", |
| 26 | size = "small", |
| 27 | srcs = [ |
| 28 | "generator_test.go", |
| 29 | "template_test.go", |
| 30 | ], |
| 31 | embed = [":go_default_library"], |
| 32 | deps = [ |
| 33 | "//protoc-gen-grpc-gateway/descriptor:go_default_library", |
| 34 | "//protoc-gen-grpc-gateway/httprule:go_default_library", |
| 35 | "@com_github_golang_protobuf//proto:go_default_library", |
| 36 | "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", |
| 37 | ], |
| 38 | ) |