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 = ["//:generators"]) |
| 4 | |
| 5 | go_library( |
| 6 | name = "go_default_library", |
| 7 | srcs = [ |
| 8 | "grpc_api_configuration.go", |
| 9 | "grpc_api_service.go", |
| 10 | "registry.go", |
| 11 | "services.go", |
| 12 | "types.go", |
| 13 | ], |
| 14 | importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor", |
| 15 | deps = [ |
| 16 | "//protoc-gen-grpc-gateway/httprule:go_default_library", |
| 17 | "@com_github_ghodss_yaml//:go_default_library", |
| 18 | "@com_github_golang_glog//:go_default_library", |
| 19 | "@com_github_golang_protobuf//jsonpb:go_default_library_gen", |
| 20 | "@com_github_golang_protobuf//proto:go_default_library", |
| 21 | "@com_github_golang_protobuf//protoc-gen-go/generator:go_default_library_gen", |
| 22 | "@go_googleapis//google/api:annotations_go_proto", |
| 23 | "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", |
| 24 | "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", |
| 25 | ], |
| 26 | ) |
| 27 | |
| 28 | go_test( |
| 29 | name = "go_default_test", |
| 30 | size = "small", |
| 31 | srcs = [ |
| 32 | "grpc_api_configuration_test.go", |
| 33 | "registry_test.go", |
| 34 | "services_test.go", |
| 35 | "types_test.go", |
| 36 | ], |
| 37 | embed = [":go_default_library"], |
| 38 | deps = [ |
| 39 | "//protoc-gen-grpc-gateway/httprule:go_default_library", |
| 40 | "@com_github_golang_protobuf//proto:go_default_library", |
| 41 | "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", |
| 42 | "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", |
| 43 | ], |
| 44 | ) |