diff options
author | Lukacs Berki <lberki@google.com> | 2016-04-11 10:34:45 +0000 |
---|---|---|
committer | Lukacs Berki <lberki@google.com> | 2016-04-11 11:24:01 +0000 |
commit | 285112c9b61ca3782e00ccf6411339da7291a3c3 (patch) | |
tree | 9e6c9d3c905be50c56209b3f37d3098ab8b23caf /tools/build_rules | |
parent | daafdcda9c8e0f883e18bc7c69aad44903a909c8 (diff) |
Remove te protocol compiler rules from @bazel_tools.
The immmediate reason for this change is that we also need to add gRPC support to the proto rules, and we don't want to also support gRPC in a half-baked way.
This makes the Bazel binary much smaller and avoid giving false signals that we (for now) support protobuf compilation. The protobuf rules are only for compiling Bazel itself.
RELNOTES[INC]: Bazel does not embed protocol buffer-related rules anymore.
--
MOS_MIGRATED_REVID=119516246
Diffstat (limited to 'tools/build_rules')
-rw-r--r-- | tools/build_rules/BUILD | 6 | ||||
-rw-r--r-- | tools/build_rules/genproto.bzl | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/tools/build_rules/BUILD b/tools/build_rules/BUILD index a00791e4eb..fdc38c7544 100644 --- a/tools/build_rules/BUILD +++ b/tools/build_rules/BUILD @@ -11,3 +11,9 @@ filegroup( srcs = glob(["**"]), visibility = ["//tools:__pkg__"], ) + +filegroup( + name = "embedded_tools_srcs", + srcs = ["test_rules.bzl"], + visibility = ["//visibility:public"], +) diff --git a/tools/build_rules/genproto.bzl b/tools/build_rules/genproto.bzl index 62284a3b20..3acec8d743 100644 --- a/tools/build_rules/genproto.bzl +++ b/tools/build_rules/genproto.bzl @@ -44,13 +44,13 @@ gensrcjar = rule( single_file = True, ), "_gensrcjar": attr.label( - default = Label("@bazel_tools//tools/build_rules:gensrcjar"), + default = Label("//tools/build_rules:gensrcjar"), executable = True, ), # TODO(bazel-team): this should be a hidden attribute with a default # value, but Skylark needs to support select first. "_proto_compiler": attr.label( - default = Label("@bazel_tools//third_party/protobuf:protoc"), + default = Label("//third_party/protobuf:protoc"), allow_files = True, executable = True, single_file = True, @@ -79,7 +79,7 @@ def java_proto_library(name, src): native.java_library( name=name, srcs=[name + "_srcjar"], - deps=["@bazel_tools//third_party/protobuf"], + deps=["//third_party/protobuf"], # The generated code has lots of 'rawtypes' warnings. javacopts=["-Xlint:-rawtypes"], ) |