Skip to content

Commit

Permalink
Make cc_grpc_librarys only depend on the protobuf runtime library not…
Browse files Browse the repository at this point in the history
… the whole protobuf compiler.

Closes #7383.

PiperOrigin-RevId: 237788460
  • Loading branch information
benjaminp authored and copybara-github committed Mar 11, 2019
1 parent 0317467 commit 2c1d792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/build_rules/genproto.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ proto_filetype = [".proto"]
def cc_grpc_library(name, src):
basename = src[:-len(".proto")]
protoc_label = str(Label("//third_party/protobuf:protoc"))
protoc_lib_label = str(Label("//third_party/protobuf:protoc_lib"))
protobuf_lib_label = str(Label("//third_party/protobuf"))
cpp_plugin_label = str(Label("//third_party/grpc:cpp_plugin"))
native.genrule(
name = name + "_codegen",
Expand All @@ -41,7 +41,7 @@ def cc_grpc_library(name, src):
hdrs = [basename + ".grpc.pb.h", basename + ".pb.h"],
deps = [
str(Label("//third_party/grpc:grpc++_unsecure")),
protoc_lib_label,
protobuf_lib_label,
],
includes = ["."],
)

0 comments on commit 2c1d792

Please sign in to comment.