From f2f24e2f93bba8ae939beb53980ac8e042c372c0 Mon Sep 17 00:00:00 2001 From: Ming Zhao Date: Thu, 13 Aug 2015 12:38:35 -0700 Subject: [PATCH] Let grpc target depend on //external:zlib so that "-lz" or a real zlib target like https://github.com/google/kythe/blob/master/third_party/zlib/BUILD can be pulled in. --- BUILD | 1 + templates/BUILD.template | 2 ++ 2 files changed, 3 insertions(+) diff --git a/BUILD b/BUILD index 9eaabbbccdb..d2eb585ee41 100644 --- a/BUILD +++ b/BUILD @@ -400,6 +400,7 @@ cc_library( ], deps = [ "//external:libssl", + "//external:zlib", ":gpr", ], ) diff --git a/templates/BUILD.template b/templates/BUILD.template index 4e9d8c376a9..8b565a0dc07 100644 --- a/templates/BUILD.template +++ b/templates/BUILD.template @@ -49,6 +49,8 @@ def get_deps(target_dict): deps.append("//external:protobuf_compiler") if target_dict['name'] == 'grpc++_unsecure' or target_dict['name'] == 'grpc++': deps.append("//external:protobuf_clib") + elif target_dict['name'] == 'grpc': + deps.append("//external:zlib") for d in target_dict.get('deps', []): if d.find('//') == 0 or d[0] == ':': deps.append(d)