make cc_out and py_out internal.

This commit is contained in:
Jisi Liu 2015-10-14 17:41:14 -07:00
parent 125a91be08
commit 25d75b5665

View file

@ -7,11 +7,11 @@ def _gen_dir(ctx):
return ctx.attr.prefix
return ctx.label.package + '/' + ctx.attr.prefix
def CcOuts(srcs):
def _cc_outs(srcs):
return [s[:-len(".proto")] + ".pb.h" for s in srcs] + \
[s[:-len(".proto")] + ".pb.cc" for s in srcs]
def PyOuts(srcs):
def _py_outs(srcs):
return [s[:-len(".proto")] + "_pb2.py" for s in srcs]
def _proto_srcs_impl(ctx):
@ -91,7 +91,7 @@ def cc_proto_library(
**kargs)
return
outs = CcOuts(srcs)
outs = _cc_outs(srcs)
_proto_srcs(
name=name + "_genproto",
srcs=srcs,