[grpc] Support latest version of grpc PoC (#6338)

* use grpcpp rather than deprecated grpc++

* grpcpp Deserialize take ByteBuffer instead of grpc_byte_buffer

* grpc 1.36.0

* Fix to use grpc 1.36.0

* Fix CMakeLists to refer gRPC

* add find_package(Threads)

* Update bazel deps

* Apply workaround about boringssl build error

* Install latest cmake for osx on travis-ci

Co-authored-by: Yeom Gyusun <omniavinco@gmail.com>
This commit is contained in:
Jeong YunWon
2021-03-26 04:12:35 +09:00
committed by GitHub
parent 124654ffc4
commit 276b1bc342
15 changed files with 83 additions and 285 deletions

View File

@@ -18,14 +18,10 @@ go_rules_dependencies()
go_register_toolchains()
##### Protobuf
_PROTOBUF_VERSION = "3.6.1"
_PROTOBUF_VERSION = "3.15.2"
http_archive(
name = "com_google_protobuf",
patch_args = ["-p1"],
patches = [
"//bazel:protobuf_deps_3_6_1.patch",
],
strip_prefix = "protobuf-" + _PROTOBUF_VERSION,
urls = [
"https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz",
@@ -33,15 +29,10 @@ http_archive(
)
##### GRPC
_GRPC_VERSION = "1.15.1"
_GRPC_VERSION = "1.36.1"
http_archive(
name = "com_github_grpc_grpc",
patch_args = ["-p1"],
patches = [
"//bazel:grpc_deps_1_15_1.patch",
"//bazel:grpc_deps_1_15_1_02.patch",
],
strip_prefix = "grpc-" + _GRPC_VERSION,
urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"],
)
@@ -49,3 +40,7 @@ http_archive(
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()