Skip to content

Commit 79c79d2

Browse files
authored
Update CPP gRPC to v1.27.1 (agones-dev#2500)
* Update CPP gRPC to v1.27.1 This replaces PR agones-dev#2487, as it fixes the issue with missing `Thread` dependencies, as well as regenerating the gRPC client code for this new version. This bring the CPP SDK inline with the gRPC version used everywhere else. Closes agones-dev#2486 * Add thread dependency to test and example.
1 parent cf0ed82 commit 79c79d2

13 files changed

Lines changed: 4552 additions & 5529 deletions

File tree

‎examples/cpp-simple/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
2525
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
2626
set(CMAKE_DEBUG_POSTFIX "d")
2727

28+
find_package(Threads REQUIRED)
2829
find_package(agones CONFIG REQUIRED)
2930

3031
if(WIN32)

‎examples/cpp-simple/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ REPOSITORY = gcr.io/agones-images
2828
# Directory that this Makefile is in.
2929
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
3030
project_path := $(dir $(mkfile_path))
31-
server_tag = $(REPOSITORY)/cpp-simple-server:0.13
31+
server_tag = $(REPOSITORY)/cpp-simple-server:0.14
3232
root_path = $(realpath $(project_path)/../..)
3333

3434
# _____ _

‎sdks/cpp/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ set(AGONES_OPENSSL_CONFIG_STRING "VC-WIN64A" CACHE STRING "See https://github.co
7171

7272
# Prerequisities
7373
include(./cmake/prerequisites.cmake)
74+
find_package(Threads REQUIRED)
7475
find_package(ZLIB REQUIRED)
7576
find_package(Protobuf REQUIRED CONFIG)
7677
find_package(gRPC ${AGONES_GRPC_VERSION} ${AGONES_GRPC_VERSION_MATCH} REQUIRED CONFIG)

‎sdks/cpp/cmake/prerequisites.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
# gRPC repo and version
3333
set(gRPC_GIT_REPO "https://github.com/gRPC/gRPC.git")
34-
set(gRPC_GIT_TAG "v1.20.1")
34+
set(gRPC_GIT_TAG "v1.27.1")
3535

3636
# OpenSSL required only for successful build gRPC
3737
set(OPENSSL_GIT_REPO "https://github.com/openssl/openssl.git")

‎sdks/cpp/include/agones/sdk.grpc.pb.h‎

Lines changed: 738 additions & 264 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)