aboutsummaryrefslogtreecommitdiffhomepage
path: root/bazel
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2018-06-04 15:42:13 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2018-06-04 15:42:13 -0700
commit24f6a02b310d8e4181df050ad82c252bf9085b35 (patch)
tree358aa396779b3b45d228add06bafadfae18ac938 /bazel
parent92ea033728e3fb81dcee6c16f27d69d66a6dc84a (diff)
parentf423280a90a34cd04ec3cf34eaeb18cff83aad10 (diff)
Merge branch 'master' of github.com:grpc/grpc into nanopb_build_cleanup
Diffstat (limited to 'bazel')
-rw-r--r--bazel/cc_grpc_library.bzl17
-rw-r--r--bazel/grpc_deps.bzl8
2 files changed, 7 insertions, 18 deletions
diff --git a/bazel/cc_grpc_library.bzl b/bazel/cc_grpc_library.bzl
index 5216a7a44b..3288565714 100644
--- a/bazel/cc_grpc_library.bzl
+++ b/bazel/cc_grpc_library.bzl
@@ -43,12 +43,7 @@ def cc_grpc_library(name, srcs, deps, proto_only, well_known_protos, generate_mo
)
if not proto_only:
- if use_external:
- # when this file is used by non-grpc projects
- plugin = "//external:grpc_cpp_plugin"
- else:
- plugin = "//:grpc_cpp_plugin"
-
+ plugin = "@com_github_grpc_grpc//:grpc_cpp_plugin"
generate_cc(
name = codegen_grpc_target,
srcs = [proto_target],
@@ -57,14 +52,8 @@ def cc_grpc_library(name, srcs, deps, proto_only, well_known_protos, generate_mo
generate_mocks = generate_mocks,
**kwargs
)
-
- if use_external:
- # when this file is used by non-grpc projects
- grpc_deps = ["//external:grpc++_codegen_proto",
- "//external:protobuf"]
- else:
- grpc_deps = ["//:grpc++_codegen_proto", "//external:protobuf"]
-
+ grpc_deps = ["@com_github_grpc_grpc//:grpc++_codegen_proto",
+ "//external:protobuf"]
native.cc_library(
name = name,
srcs = [":" + codegen_grpc_target, ":" + codegen_target],
diff --git a/bazel/grpc_deps.bzl b/bazel/grpc_deps.bzl
index 9732e27a7e..f7e62f1219 100644
--- a/bazel/grpc_deps.bzl
+++ b/bazel/grpc_deps.bzl
@@ -144,12 +144,12 @@ def grpc_deps():
if "com_github_bazelbuild_bazeltoolchains" not in native.existing_rules():
native.http_archive(
name = "com_github_bazelbuild_bazeltoolchains",
- strip_prefix = "bazel-toolchains-09c850dbb8e785ded3d23a7003e9a0168fe1fb2f",
+ strip_prefix = "bazel-toolchains-4653c01284d8a4a536f8f9bb47b7d10f94c549e7",
urls = [
- "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/09c850dbb8e785ded3d23a7003e9a0168fe1fb2f.tar.gz",
- "https://github.com/bazelbuild/bazel-toolchains/archive/09c850dbb8e785ded3d23a7003e9a0168fe1fb2f.tar.gz",
+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/4653c01284d8a4a536f8f9bb47b7d10f94c549e7.tar.gz",
+ "https://github.com/bazelbuild/bazel-toolchains/archive/4653c01284d8a4a536f8f9bb47b7d10f94c549e7.tar.gz",
],
- sha256 = "08e521cf2d0998e3d27a16c2e2542ebf4d3857b3ddadcfd145d128140754d7bd",
+ sha256 = "1c4a532b396c698e6467a1548554571cb85fa091e472b05e398ebc836c315d77",
)
# TODO: move some dependencies from "grpc_deps" here?