From 736bd6515c248b3f996edfb0b12dd981b1d3b897 Mon Sep 17 00:00:00 2001
From: Yang Gao <yangg@google.com>
Date: Thu, 16 Apr 2015 15:42:42 -0700
Subject: [PATCH] Avoid generating libs for unknown types.

---
 BUILD                    | 23 -----------------------
 templates/BUILD.template |  2 +-
 2 files changed, 1 insertion(+), 24 deletions(-)

diff --git a/BUILD b/BUILD
index e25359d454..916f24eaf6 100644
--- a/BUILD
+++ b/BUILD
@@ -765,29 +765,6 @@ cc_library(
 )
 
 
-cc_library(
-  name = "pubsub_client_lib",
-  srcs = [
-    "examples/pubsub/label.proto",
-    "examples/pubsub/empty.proto",
-    "examples/pubsub/pubsub.proto",
-    "examples/pubsub/publisher.cc",
-    "examples/pubsub/subscriber.cc",
-  ],
-  hdrs = [
-  ],
-  includes = [
-    "include",
-    ".",
-  ],
-  deps = [
-    ":grpc++",
-    ":grpc",
-    ":gpr",
-  ],
-)
-
-
 cc_library(
   name = "grpc_csharp_ext",
   srcs = [
diff --git a/templates/BUILD.template b/templates/BUILD.template
index 8303b9f8e9..fdf87bd29f 100644
--- a/templates/BUILD.template
+++ b/templates/BUILD.template
@@ -54,7 +54,7 @@ def get_deps(target_dict):
 %>
 
 % for lib in libs:
-% if lib.build != "private":
+% if lib.build in ("all", "protoc"):
 ${cc_library(lib)}
 % endif
 % endfor
-- 
GitLab