Avoid building c-ares lib when grpc_no_ares is true

This commit is contained in:
Alexander Polcyn 2018-01-11 09:47:18 -08:00
parent 2eb22fd67d
commit f1b933ce7f
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ def _get_external_deps(external_deps):
for dep in external_deps:
if dep == "nanopb":
ret.append("//third_party/nanopb")
elif dep == "cares":
ret += select({"//:grpc_no_ares": [],
"//conditions:default": ["//external:cares"],})
else:
ret.append("//external:" + dep)
return ret