blob: f1c7a92c7e5c9b6ebaea18f93b77ab6dcc58c6b5 (
plain)
1
2
3
4
5
6
7
8
9
10
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
|