From 8e0c9a3f1142e38021f4694f93309185dd098c2c Mon Sep 17 00:00:00 2001 From: Martin Maly Date: Fri, 4 Dec 2015 17:44:58 -0800 Subject: Making _genproto rules public. This enables other xx_proto_library targets to depend on xx_proto_library targets in different packages, and specifically on xx_wkt_protos. --- protobuf.bzl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protobuf.bzl') diff --git a/protobuf.bzl b/protobuf.bzl index 86c6f251..bf748db6 100644 --- a/protobuf.bzl +++ b/protobuf.bzl @@ -141,6 +141,7 @@ def cc_proto_library( deps=[s + "_genproto" for s in deps], includes=includes, protoc=protoc, + visibility=["//visibility:public"], ) # An empty cc_library to make rule dependency consistent. native.cc_library( @@ -157,6 +158,7 @@ def cc_proto_library( protoc=protoc, gen_cc=1, outs=outs, + visibility=["//visibility:public"], ) if default_runtime and not default_runtime in cc_libs: @@ -245,6 +247,7 @@ def py_proto_library( protoc=protoc, gen_py=1, outs=outs, + visibility=["//visibility:public"], ) if include != None: -- cgit v1.2.3