aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-01-23 10:30:10 -0800
committerGravatar Yuchen Zeng <zyc@google.com>2017-01-23 10:30:10 -0800
commit4c702ed1a1f5ae714c93d6738c1b1fda037b6019 (patch)
tree9b63e22d6d6e7c47b99ef1978eb40a741ea96e2d /BUILD
parent6a167b6e86100d013ad15802f410d7a6cb1ef355 (diff)
Add bazel build rule for c-ares
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 54192514cc..ea89e05ce7 100644
--- a/BUILD
+++ b/BUILD
@@ -67,6 +67,7 @@ grpc_cc_library(
"grpc_lb_policy_pick_first",
"grpc_lb_policy_round_robin",
"grpc_load_reporting",
+ "grpc_resolver_dns_ares",
"grpc_resolver_dns_native",
"grpc_resolver_sockaddr",
"grpc_secure",
@@ -790,6 +791,29 @@ grpc_cc_library(
)
grpc_cc_library(
+ name = "grpc_resolver_dns_ares",
+ srcs = [
+ "src/core/ext/resolver/dns/c_ares/dns_resolver_ares.c",
+ "src/core/ext/resolver/dns/c_ares/grpc_ares_ev_driver_fallback.c",
+ "src/core/ext/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c",
+ "src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c",
+ "src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper_fallback.c",
+ ],
+ hdrs = [
+ "src/core/ext/resolver/dns/c_ares/grpc_ares_ev_driver.h",
+ "src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.h",
+ ],
+ language = "c",
+ deps = [
+ "grpc_base",
+ "grpc_client_channel",
+ ],
+ external_deps = [
+ "cares",
+ ],
+)
+
+grpc_cc_library(
name = "grpc_resolver_sockaddr",
srcs = [
"src/core/ext/resolver/sockaddr/sockaddr_resolver.c",