diff options
Diffstat (limited to 'tools/grpc/cpp/build.sh')
-rw-r--r-- | tools/grpc/cpp/build.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/grpc/cpp/build.sh b/tools/grpc/cpp/build.sh new file mode 100644 index 00000000..f1c7a92c --- /dev/null +++ b/tools/grpc/cpp/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +GOBGP_PATH=${GOPATH}/src/github.com/osrg/gobgp + +cd ${GOBGP_PATH}/gobgp/lib +go build -buildmode=c-shared -o libgobgp.so *.go +cd ${GOBGP_PATH}/tools/grpc/cpp +ln -s ${GOBGP_PATH}/gobgp/lib/libgobgp.h +ln -s ${GOBGP_PATH}/gobgp/lib/libgobgp.so +ln -s ${GOBGP_PATH}/api/gobgp.proto gobgp_api_client.proto +make |