2019-02-17 18:59:58 +08:00
|
|
|
import("core.platform.platform")
|
|
|
|
import("core.base.option")
|
|
|
|
|
|
|
|
function main(target)
|
|
|
|
if target:isphony() then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local targetname = target:name()
|
|
|
|
local targetfile = target:targetfile()
|
|
|
|
|
|
|
|
if "sqlite3" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "hikyuu_utils" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "hikyuu" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu')
|
|
|
|
if is_plat("windows") then
|
2019-10-19 22:25:06 +08:00
|
|
|
--os.cp("$(env BOOST_LIB)/boost_date_time*.dll", './hikyuu')
|
|
|
|
--os.cp("$(env BOOST_LIB)/boost_filesystem*.dll", './hikyuu')
|
2019-02-17 18:59:58 +08:00
|
|
|
os.cp("$(env BOOST_LIB)/boost_python3*.dll", './hikyuu')
|
2019-10-23 01:59:54 +08:00
|
|
|
os.cp("$(env BOOST_LIB)/boost_serialization*.dll", './hikyuu')
|
2019-10-19 22:25:06 +08:00
|
|
|
--os.cp("$(env BOOST_LIB)/boost_system*.dll", './hikyuu')
|
2019-02-17 18:59:58 +08:00
|
|
|
os.cp("$(projectdir)/hikyuu_extern_libs/pkg/hdf5.pkg/lib/release/$(plat)/$(arch)/*.dll", './hikyuu')
|
|
|
|
os.cp("$(projectdir)/hikyuu_extern_libs/pkg/mysql.pkg/lib/release/$(plat)/$(arch)/*.dll", './hikyuu')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if is_plat("linux") then
|
2019-10-19 22:25:06 +08:00
|
|
|
--os.cp("$(env BOOST_LIB)/libboost_date_time*.so.*", './hikyuu')
|
|
|
|
--os.cp("$(env BOOST_LIB)/libboost_filesystem*.so.*", './hikyuu')
|
2019-02-17 18:59:58 +08:00
|
|
|
os.cp("$(env BOOST_LIB)/libboost_python3*.so.*", './hikyuu')
|
2019-10-23 01:59:54 +08:00
|
|
|
os.cp("$(env BOOST_LIB)/libboost_serialization*.so.*", './hikyuu')
|
2019-10-19 22:25:06 +08:00
|
|
|
--os.cp("$(env BOOST_LIB)/libboost_system*.so.*", './hikyuu')
|
2019-02-17 18:59:58 +08:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if is_plat("macosx") then
|
2019-10-19 22:25:06 +08:00
|
|
|
--os.cp("$(env BOOST_LIB)/libboost_date_time*.dylib", './hikyuu')
|
|
|
|
--os.cp("$(env BOOST_LIB)/libboost_filesystem*.dylib", './hikyuu')
|
2019-02-17 18:59:58 +08:00
|
|
|
os.cp("$(env BOOST_LIB)/libboost_python3*.dylib", './hikyuu')
|
2019-10-23 01:59:54 +08:00
|
|
|
os.cp("$(env BOOST_LIB)/libboost_serialization*.dylib", './hikyuu')
|
2019-10-19 22:25:06 +08:00
|
|
|
--os.cp("$(env BOOST_LIB)/libboost_system*.dylib", './hikyuu')
|
2019-02-17 18:59:58 +08:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "importdata" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "_hikyuu" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "_indicator" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu/indicator')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "_trade_manage" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu/trade_manage')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "_trade_sys" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu/trade_sys')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "_trade_instance" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu/trade_instance')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if "_data_driver" == targetname then
|
|
|
|
os.cp(targetfile, './hikyuu/data_driver')
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|