vnpy/vn.ctp/build.sh
lhzw 693db9aed2 ln -fs pwd/lib/libvnctpmd.so ../vnctpmd/test/vnctpmd.so
ln -fs `pwd`/lib/libvnctptd.so ../vnctptd/test/vnctptd.so
With prefix 'lib', python cannot import these module.
2016-02-14 07:36:20 +08:00

16 lines
309 B
Bash
Executable File

#!/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 2
ln -fs `pwd`/lib/libvnctpmd.so ../vnctpmd/test/vnctpmd.so
ln -fs `pwd`/lib/libvnctptd.so ../vnctptd/test/vnctptd.so
popd