Skip to content

Commit

Permalink
latest version of grpc introduce abseil dependencies publically
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Jul 29, 2021
1 parent 007af85 commit 5c1bda5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ci/setup_grpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,24 @@ export INSTALL_DIR=/usr/local/
pushd $BUILD_DIR
echo "installing grpc version: ${install_grpc_version}"
git clone --depth=1 -b ${install_grpc_version} https://github.com/grpc/grpc
cd grpc
pushd grpc
git submodule init
git submodule update --depth 1
mkdir -p cmake/build
pushd cmake/build
mkdir -p "third_party/abseil-cpp/build" && pushd "third_party/abseil-cpp/build"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ..
make -j${nproc} install && popd
mkdir -p build && pushd build
cmake -DgRPC_INSTALL=ON \
-DCMAKE_CXX_STANDARD=11 \
-DgRPC_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
../..
-DCMAKE_PREFIX_PATH=$INSTALL_DIR \
..
make -j $(nproc)
make install
popd
popd

export PATH=${INSTALL_DIR}/bin:$PATH # ensure to use the installed grpc

0 comments on commit 5c1bda5

Please sign in to comment.