加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
buildLinux.sh 861 Bytes
一键复制 编辑 原始数据 按行查看 历史
github dearleeyoung 提交于 2023-10-17 20:35 . 使用内存数据库存储.
#/bin/bash
WORK_DIR=$(cd $(dirname $0); pwd)
INSTALL_PATH=${WORK_DIR}/bin/linux
buildFunc(){
echo "---------------"
echo "Start building $1 ..."
cd ${WORK_DIR}/LocalCTP/ctp_file
rm -fr ./current
cp -fr $1 ./current
cd ${WORK_DIR}/GenScript
python3 ParseCTPHeaders.py
cd ${WORK_DIR}/LocalCTP
make clean && make
mv ${INSTALL_PATH}/libthosttraderapi_se.so ${INSTALL_PATH}/libthosttraderapi_se_v$1.so
}
buildDemoFunc(){
echo "---------------"
echo "Start building DEMO ..."
cd ${WORK_DIR}/TestLocalCTP
make clean && make
}
# v6.3.19
buildFunc 6.3.19
# v6.6.9
buildFunc 6.6.9
# v6.7.0
buildFunc 6.7.0
# v6.5.1, put it at last, because we want the code to be set as v6.5.1 finally
buildFunc 6.5.1
mv ${INSTALL_PATH}/libthosttraderapi_se_v6.5.1.so ${INSTALL_PATH}/libthosttraderapi_se.so
buildDemoFunc
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化