From ee8131a62f2c2b3cf12c6899214dd48ee0907902 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Wed, 14 Oct 2015 17:20:05 -0700 Subject: buildifier the file --- protobuf.bzl | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'protobuf.bzl') diff --git a/protobuf.bzl b/protobuf.bzl index 63ef95fb..a6ef20e1 100644 --- a/protobuf.bzl +++ b/protobuf.bzl @@ -1,6 +1,5 @@ # -*- mode: python; -*- PYTHON-PREPROCESSING-REQUIRED - def _gen_dir(ctx): if not ctx.attr.prefix: return ctx.label.package @@ -49,17 +48,21 @@ def _proto_srcs_impl(ctx): ) _proto_srcs = rule( - implementation = _proto_srcs_impl, - output_to_genfiles = True, attrs = { - "srcs": attr.label_list(allow_files=True), - "deps": attr.label_list(providers=["proto"]), - "prefix": attr.string(), - "protoc": attr.label(executable=True, single_file=True, mandatory=True), - "gen_cc": attr.bool(), - "gen_py": attr.bool(), - "outs": attr.output_list() - } + "srcs": attr.label_list(allow_files = True), + "deps": attr.label_list(providers = ["proto"]), + "prefix": attr.string(), + "protoc": attr.label( + executable = True, + single_file = True, + mandatory = True, + ), + "gen_cc": attr.bool(), + "gen_py": attr.bool(), + "outs": attr.output_list(), + }, + output_to_genfiles = True, + implementation = _proto_srcs_impl, ) def cc_proto_library( -- cgit v1.2.3