hikyuu2/build.sh

49 lines
1.5 KiB
Bash
Raw Normal View History

2015-01-07 01:26:14 +08:00
#!/bin/sh
2017-06-18 03:25:52 +08:00
cp boost-build.jam.linux boost-build.jam
cp Jamroot.linux Jamroot
2015-01-07 01:26:14 +08:00
2017-06-18 03:25:52 +08:00
b2 -j 4 link=shared
2015-01-07 01:26:14 +08:00
2017-07-18 02:17:20 +08:00
#toolset=clang-linux-3.8.0
2017-06-18 03:25:52 +08:00
toolset=gcc-5.4.0
2015-01-07 01:26:14 +08:00
#cd ./libs
#doxygen
#cd ..
2017-06-18 03:25:52 +08:00
rm -v -f ./tools/hikyuu/*.so
2017-07-18 02:17:20 +08:00
rm -v -f ./tools/hikyuu/libboost*
cp -v -f ${BOOST_ROOT}/bin.v2/libs/python/build/${toolset}/release/libboost_python3.so.* ./tools/hikyuu/
cp -v -f ${BOOST_ROOT}/stage/lib/libboost_python.so.* ./tools/hikyuu/
cp -v -f ${BOOST_ROOT}/stage/lib/libboost_chrono.so.* ./tools/hikyuu/
cp -v -f ${BOOST_ROOT}/stage/lib/libboost_date_time.so.* ./tools/hikyuu/
cp -v -f ${BOOST_ROOT}/stage/lib/libboost_filesystem.so.* ./tools/hikyuu/
cp -v -f ${BOOST_ROOT}/stage/lib/libboost_system.so.* ./tools/hikyuu/
cp -v -f ${BOOST_ROOT}/stage/lib/libboost_serialization.so.* ./tools/hikyuu/
cp -v -f ./build/hikyuu/$toolset/release/libhikyuu.so ./tools/hikyuu
cp -v -f ./build/hikyuu_utils/$toolset/release/libhikyuu_utils.so ./tools/hikyuu
2017-07-21 01:13:51 +08:00
cp -v -f ./build/importdata/$toolset/release/importdata ./tools/hikyuu
2015-01-07 01:26:14 +08:00
2017-06-18 03:25:52 +08:00
cp -v -f ./build/hikyuu_python/$toolset/release/_hikyuu.so ./tools/hikyuu
cp -v -f ./build/hikyuu_python/$toolset/release/indicator/_indicator.so ./tools/hikyuu/indicator
cp -v -f ./build/hikyuu_python/$toolset/release/trade_manage/_trade_manage.so ./tools/hikyuu/trade_manage
cp -v -f ./build/hikyuu_python/$toolset/release/trade_sys/_trade_sys.so ./tools/hikyuu/trade_sys
cp -v -f ./build/hikyuu_python/$toolset/release/trade_instance/_trade_instance.so ./tools/hikyuu/trade_instance
2015-01-07 01:26:14 +08:00
2017-06-18 03:25:52 +08:00
cd ./test
2017-07-18 02:17:20 +08:00
b2 link=shared
2017-06-18 03:25:52 +08:00
2017-06-18 23:57:00 +08:00
python ../tools/hikyuu/test/test.py
cd ..
2015-01-07 01:26:14 +08:00