vnpy/vn.api/vn.lts/build.sh

20 lines
534 B
Bash
Raw Normal View History

2016-05-15 08:58:46 +00:00
#!/bin/bash
# Written by Suzhengchun on 20160213
set -e
BUILDDIR=build
rm -rf $BUILDDIR
if [ ! -f $BUILDDIR ]; then
mkdir -p $BUILDDIR
fi
pushd $BUILDDIR
cmake ..
make VERBOSE=1 -j 1
ln -fs `pwd`/lib/vnltsmd.so ../vnltsmd/test/vnltsmd.so
ln -fs `pwd`/lib/vnltstd.so ../vnltstd/test/vnltstd.so
ln -fs `pwd`/lib/vnltsqry.so ../vnltsqry/test/vnltsqry.so
cp ../vnltsmd/test/vnltsmd.* ../../vn.trader/ltsGateway/
cp ../vnltstd/test/vnltstd.* ../../vn.trader/ltsGateway/
cp ../vnltsqry/test/vnltsqry.* ../../vn.trader/ltsGateway/
popd