Add //external:zlib to grpc_unsecure deps
The grpc_unsecure rule has message_compress.c in its srcs list.
This file depends on zlib.h and such dependency should be covered
by the BUILD file.
Change-Id: Ieb4ac8ab1a4f025dacfd6757d3914a041bf3834f
diff --git a/BUILD b/BUILD
index 804baac..0f85c52 100644
--- a/BUILD
+++ b/BUILD
@@ -804,6 +804,7 @@
".",
],
deps = [
+ "//external:zlib",
":gpr",
"//external:nanopb",
],
diff --git a/templates/BUILD.template b/templates/BUILD.template
index 23a656c..49633b2 100644
--- a/templates/BUILD.template
+++ b/templates/BUILD.template
@@ -53,7 +53,8 @@
target_dict['name'] == 'grpc++' or
target_dict['name'] == 'grpc++_codegen_lib'):
deps.append("//external:protobuf_clib")
- elif target_dict['name'] == 'grpc':
+ elif (target_dict['name'] == 'grpc' or
+ target_dict['name'] == 'grpc_unsecure'):
deps.append("//external:zlib")
for d in target_dict.get('deps', []):
if d.find('//') == 0 or d[0] == ':':