blob: 3c0c27e1a17daf7d05edb1408d2ee0365f54590a [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001#!/bin/bash
2
3grpc_1_15_1_githash=1a60e6971f428323245a930031ad267bb3142ba4
4
5function build_grpc () {
6 git clone https://github.com/grpc/grpc.git google/grpc
7 cd google/grpc
Austin Schuh272c6132020-11-14 16:37:52 -08008 git checkout ${grpc_1_15_1_githash}
Austin Schuhe89fa2d2019-08-14 20:24:23 -07009 git submodule update --init
10 make
11 make install prefix=`pwd`/install
12 if [ ! -f ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.1 ]; then
13 ln -s ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.6 ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.1
14 fi
15 cd ../..
16}
17
18GRPC_INSTALL_PATH=`pwd`/google/grpc/install
19PROTOBUF_DOWNLOAD_PATH=`pwd`/google/grpc/third_party/protobuf
20
21build_grpc