Commit 8379b053 authored by fasiondog's avatar fasiondog
Browse files

Re-organize source code structure; use xmake for build

parent 1dc92bfe
Showing with 167 additions and 278 deletions
+167 -278
.cproject 0 → 100644
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.config.gnu.mingw.so.debug.152570311">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.mingw.so.debug.152570311" moduleId="org.eclipse.cdt.core.settings" name="Debug">
<externalSettings>
<externalSetting>
<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/hikyuu"/>
<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/hikyuu/Debug"/>
<entry flags="RESOLVED" kind="libraryFile" name="hikyuu" srcPrefixMapping="" srcRootPath=""/>
</externalSetting>
</externalSettings>
<extensions>
<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactExtension="dll" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.mingw.so.debug.152570311" name="Debug" parent="cdt.managedbuild.config.gnu.mingw.so.debug">
<folderInfo id="cdt.managedbuild.config.gnu.mingw.so.debug.152570311." name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.mingw.so.debug.629235633" name="MinGW GCC" superClass="cdt.managedbuild.toolchain.gnu.mingw.so.debug">
<targetPlatform id="cdt.managedbuild.target.gnu.platform.mingw.so.debug.1020312488" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.mingw.so.debug"/>
<builder buildPath="${workspace_loc:/hikyuu}/Debug" id="cdt.managedbuild.tool.gnu.builder.mingw.base.1571906680" managedBuildOn="true" name="CDT Internal Builder.Debug" superClass="cdt.managedbuild.tool.gnu.builder.mingw.base"/>
<tool id="cdt.managedbuild.tool.gnu.assembler.mingw.so.debug.1167313237" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.mingw.so.debug">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1769304595" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.archiver.mingw.base.1020319684" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.mingw.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.so.debug.1705379462" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.so.debug">
<option id="gnu.cpp.compiler.mingw.so.debug.option.optimization.level.18479425" superClass="gnu.cpp.compiler.mingw.so.debug.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
<option id="gnu.cpp.compiler.mingw.so.debug.option.debugging.level.118541520" superClass="gnu.cpp.compiler.mingw.so.debug.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.152520130" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.compiler.mingw.so.debug.1988429823" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.mingw.so.debug">
<option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.mingw.so.debug.option.optimization.level.1365087995" superClass="gnu.c.compiler.mingw.so.debug.option.optimization.level" valueType="enumerated"/>
<option id="gnu.c.compiler.mingw.so.debug.option.debugging.level.799761130" superClass="gnu.c.compiler.mingw.so.debug.option.debugging.level" value="gnu.c.debugging.level.max" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.984130848" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.linker.mingw.so.debug.1558767633" name="MinGW C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.mingw.so.debug">
<option defaultValue="true" id="gnu.c.link.mingw.so.debug.option.shared.857663660" superClass="gnu.c.link.mingw.so.debug.option.shared" valueType="boolean"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.so.debug.928463269" name="MinGW C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.so.debug">
<option defaultValue="true" id="gnu.cpp.link.mingw.so.debug.option.shared.1100911959" superClass="gnu.cpp.link.mingw.so.debug.option.shared" valueType="boolean"/>
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.527839087" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="cdt.managedbuild.config.gnu.mingw.so.release.1484212175">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.mingw.so.release.1484212175" moduleId="org.eclipse.cdt.core.settings" name="Release">
<externalSettings>
<externalSetting>
<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/hikyuu"/>
<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/hikyuu/Release"/>
<entry flags="RESOLVED" kind="libraryFile" name="hikyuu" srcPrefixMapping="" srcRootPath=""/>
</externalSetting>
</externalSettings>
<extensions>
<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactExtension="dll" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.mingw.so.release.1484212175" name="Release" parent="cdt.managedbuild.config.gnu.mingw.so.release">
<folderInfo id="cdt.managedbuild.config.gnu.mingw.so.release.1484212175." name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.mingw.so.release.521576858" name="MinGW GCC" superClass="cdt.managedbuild.toolchain.gnu.mingw.so.release">
<targetPlatform id="cdt.managedbuild.target.gnu.platform.mingw.so.release.360715865" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.mingw.so.release"/>
<builder buildPath="${workspace_loc:/hikyuu}/Release" id="cdt.managedbuild.tool.gnu.builder.mingw.base.452171936" managedBuildOn="true" name="CDT Internal Builder.Release" superClass="cdt.managedbuild.tool.gnu.builder.mingw.base"/>
<tool id="cdt.managedbuild.tool.gnu.assembler.mingw.so.release.87562658" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.mingw.so.release">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.238314570" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.archiver.mingw.base.961124726" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.mingw.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.so.release.178640472" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.so.release">
<option id="gnu.cpp.compiler.mingw.so.release.option.optimization.level.1551474925" superClass="gnu.cpp.compiler.mingw.so.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
<option id="gnu.cpp.compiler.mingw.so.release.option.debugging.level.1198886583" superClass="gnu.cpp.compiler.mingw.so.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1083669868" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.compiler.mingw.so.release.2023602627" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.mingw.so.release">
<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.mingw.so.release.option.optimization.level.1242079901" superClass="gnu.c.compiler.mingw.so.release.option.optimization.level" valueType="enumerated"/>
<option id="gnu.c.compiler.mingw.so.release.option.debugging.level.1843948939" superClass="gnu.c.compiler.mingw.so.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1370336359" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.linker.mingw.so.release.1109123524" name="MinGW C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.mingw.so.release">
<option defaultValue="true" id="gnu.c.link.mingw.so.release.option.shared.200972471" superClass="gnu.c.link.mingw.so.release.option.shared" valueType="boolean"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.so.release.1963552169" name="MinGW C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.so.release">
<option defaultValue="true" id="gnu.cpp.link.mingw.so.release.option.shared.842416573" superClass="gnu.cpp.link.mingw.so.release.option.shared" valueType="boolean"/>
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.448362566" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="hikyuu.cdt.managedbuild.target.gnu.mingw.so.169600669" name="Shared Library" projectType="cdt.managedbuild.target.gnu.mingw.so"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.so.debug.587789303;cdt.managedbuild.config.gnu.cross.so.debug.587789303.;cdt.managedbuild.tool.gnu.cross.cpp.compiler.640864477;cdt.managedbuild.tool.gnu.cpp.compiler.input.145343589">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.so.release.1813058607;cdt.managedbuild.config.gnu.cross.so.release.1813058607.;cdt.managedbuild.tool.gnu.cross.c.compiler.753037964;cdt.managedbuild.tool.gnu.c.compiler.input.1594219762">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.so.debug.152570311;cdt.managedbuild.config.gnu.mingw.so.debug.152570311.;cdt.managedbuild.tool.gnu.c.compiler.mingw.so.debug.1988429823;cdt.managedbuild.tool.gnu.c.compiler.input.984130848">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.so.release.1813058607;cdt.managedbuild.config.gnu.cross.so.release.1813058607.;cdt.managedbuild.tool.gnu.cross.cpp.compiler.1281945400;cdt.managedbuild.tool.gnu.cpp.compiler.input.1571638138">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.so.release.1484212175;cdt.managedbuild.config.gnu.mingw.so.release.1484212175.;cdt.managedbuild.tool.gnu.cpp.compiler.mingw.so.release.178640472;cdt.managedbuild.tool.gnu.cpp.compiler.input.1083669868">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.so.debug.152570311;cdt.managedbuild.config.gnu.mingw.so.debug.152570311.;cdt.managedbuild.tool.gnu.cpp.compiler.mingw.so.debug.1705379462;cdt.managedbuild.tool.gnu.cpp.compiler.input.152520130">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.so.debug.587789303;cdt.managedbuild.config.gnu.cross.so.debug.587789303.;cdt.managedbuild.tool.gnu.cross.c.compiler.442404274;cdt.managedbuild.tool.gnu.c.compiler.input.1498136241">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.so.release.1484212175;cdt.managedbuild.config.gnu.mingw.so.release.1484212175.;cdt.managedbuild.tool.gnu.c.compiler.mingw.so.release.2023602627;cdt.managedbuild.tool.gnu.c.compiler.input.1370336359">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
</cproject>
/docs/build
.xmake
*.xml
*.bak
*.pyc
......@@ -12,35 +11,6 @@
*.suo
.metadata
.settings
/test/data/tmp
/build
/build.*
extern-libs.*
/tools/hikyuu/*.dll
/tools/hikyuu/*.exe
/tools/hikyuu/*.so
/tools/hikyuu/importdata
/tools/hikyuu/libboost*
/tools/hikyuu/docs/build
/tools/hikyuu/.idea
/tools/hikyuu/.spyproject
/docs/docs-web/build
/docs/reference
/docs/test-doc
/bin
/boost-build.jam
/Jamroot
/tools/hikyuu/build
/tools/hikyuu/dist
/tools/hikyuu/Hikyuu.egg-info
/tools/build
/tools/dist
/tools/Hikyuu.egg-info
/tools/.pypirc
.ipynb_checkpoints
/project/msvc10/build
/project/msvc10/output
/project/msvc10/ipch
/project/msvc
*~
......@@ -9,62 +9,6 @@
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
<dictionary>
<key>?name?</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.append_environment</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
<value>all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildArguments</key>
<value>-j 2</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildCommand</key>
<value>b2</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildLocation</key>
<value>${workspace_loc:/hikyuu_core}</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
<value>clean</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.contents</key>
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
<value>false</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.stopOnError</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
<value>false</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
......
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(hikyuu)
SET(ENV{BOOST_INCLUDE} d:/src/boost)
SET(ENV{BOOST_LIBARAY} d:/src/boost/stage/lib)
ADD_SUBDIRECTORY(extern-libs)
ADD_SUBDIRECTORY(libs)
\ No newline at end of file
# Copyright David Abrahams 2006. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# MSVC configuration
using gcc ;
#using clang ;
#using msvc : : : <compileflags>/wd4819 ;
#using msvc ;
# Python configuration
#using python : 2.6 : /usr ;
using python : 3.5 : : /usr/include/python3.5 ;
# Specify the path to the Boost project. If you move this project,
# adjust this path to refer to the Boost root directory.
import os ;
path-constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;
use-project boost : $(BOOST_ROOT) ;
#指定boost头文件所在目录,根据需要进行修改
BOOST_INCLUDE_DIR = $(BOOST_ROOT) ;
#工程所在目录,根据需要修改
HKU_DIR = . ;
#该变量不需要修改
HKU_INCLUDE_DIR = $(HKU_DIR)/libs ;
use-project /hikyuu : $(HKU_DIR)/libs/hikyuu ;
use-project /hikyuu_utils : $(HKU_DIR)/libs/hikyuu_utils ;
# project : default-build release ;
project : default-build release
: requirements <include>$(BOOST_INCLUDE_DIR)
<include>$(HKU_INCLUDE_DIR)
<toolset>gcc:<cxxflags>-ftemplate-depth-500
<toolset>gcc:<cxxflags>-std=c++11
<toolset>clang:<cxxflags>-std=c++11
<toolset>gcc:<linkflags>-s
<toolset>gcc:<linkflags>-Wl,-rpath,./
<toolset>gcc:<define>BOOST_ALL_DYN_LINK
<toolset>msvc:<address-model>64
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
;
build-project libs/hikyuu_utils ;
build-project libs/hikyuu ;
build-project libs/hikyuu_python ;
#build-project test ;
build-project tools/importdata ;
# Copyright David Abrahams 2006. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# MSVC configuration
#using gcc ;
using msvc : 10.0 : : <compileflags>/wd4819
<compileflags>/wd4251
;
# Python configuration
#using python : 2.6 : /usr ;
using python : 3.5 ;
# Specify the path to the Boost project. If you move this project,
# adjust this path to refer to the Boost root directory.
import os ;
path-constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;
use-project boost : $(BOOST_ROOT) ;
#指定boost头文件所在目录
BOOST_INCLUDE_DIR = $(BOOST_ROOT) ;
HKU_DIR = . ;
#该变量不需要修改
HKU_INCLUDE_DIR = $(HKU_DIR)/libs ;
use-project /hikyuu : $(HKU_DIR)/libs/hikyuu ;
use-project /hikyuu_utils : $(HKU_DIR)/libs/hikyuu_utils ;
use-project /sqlite3 : $(HKU_DIR)/extern-libs/sqlite3 ;
# project : default-build release ;
project : default-build release
: requirements <include>$(BOOST_INCLUDE_DIR)
<include>$(HKU_INCLUDE_DIR)
# <toolset>gcc:<cxxflags>-std=c++0x
# <toolset>gcc:<define>FSD_CPP_0X_SUPPORT
<toolset>gcc:<linkflags>-s
<toolset>msvc:<cxxflags>-GS-
#<toolset>msvc:<address-model>64
<toolset>msvc:<define>BOOST_ALL_DYN_LINK
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
;
build-project libs/hikyuu_utils ;
build-project libs/hikyuu ;
build-project libs/hikyuu_python ;
#build-project test ;
build-project tools/importdata ;
# Copyright David Abrahams 2006. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Edit this path to point at the tools/build/v2 subdirectory of your
# Boost installation. Absolute paths work, too.
boost-build $(BOOST_ROOT)/tools/build/src/kernel ;
# Copyright David Abrahams 2006. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Edit this path to point at the tools/build/v2 subdirectory of your
# Boost installation. Absolute paths work, too.
boost-build $(BOOST_ROOT)\\tools\\build\\src ;
@call set_env
@echo off
goto Start
:Not_found_compiler
echo Can't found compiler
goto :eof
:Start
if NOT exist boost-build.jam copy boost-build.jam.win boost-build.jam
if NOT exist Jamroot copy Jamroot.win Jamroot
set ADDRESS_MODEL_OUTPUT=
REM GUESS PROCESSOR_ARCHITECTURE
if "_%PROCESSOR_ARCHITECTURE%_" == "_AMD64_" (
set ADDRESS_MODEL=address-model=64
set ADDRESS_MODEL_OUTPUT=address-model-64
goto Guess_compiler)
:Guess_compiler
REM GUESS COMPILER
REM if NOT "_%VS140COMNTOOLS%_" == "__" (
REM set BUILD_OUTPUT_PATH=msvc-14.0\release\address-model-64\threading-multi
REM set TOOLSET=toolset=msvc-14.0
REM goto Start_build)
REM if NOT "_%VS120COMNTOOLS%_" == "__" (
REM set BUILD_OUTPUT_PATH=msvc-12.0\release\address-model-64\threading-multi
REM set TOOLSET=toolset=msvc-12.0
REM goto Start_build)
REM if NOT "_%VS150COMNTOOLS%_" == "__" (
REM set BUILD_OUTPUT_PATH=msvc-14.1\release\address-model-64\threading-multi
REM set TOOLSET=toolset=msvc-14.1
REM goto Start_build)
if NOT "_%VS100COMNTOOLS%_" == "__" (
set BUILD_OUTPUT_PATH=msvc-10.0\release\%ADDRESS_MODEL_OUTPUT%\threading-multi
set TOOLSET=toolset=msvc-10.0
goto Start_build)
if NOT "_%VS90COMNTOOLS%_" == "__" (
set BUILD_OUTPUT_PATH="msvc-9.0\release\%ADDRESS_MODEL_OUTPUT%\threading-multi"
set TOOLSET=toolset=msvc-9.0
goto Start_build)
goto Not_found_compiler
:Start_build
@echo on
%BOOST_ROOT%\b2 -j 4 link=shared threading=multi %ADDRESS_MODEL%
REM %TOOLSET% 需要利用Jamroot消除告警
@if NOT exist .\bin mkdir .\bin
del .\tools\hikyuu\*.dll
del .\tools\hikyuu\*.exe
del .\tools\hikyuu\*.pyd /S
copy .\extern-libs\boost\*.dll .\tools\hikyuu
copy .\extern-libs\hdf5\dll\*.dll .\tools\hikyuu
copy .\extern-libs\log4cplus\dll\*.dll .\tools\hikyuu
copy .\extern-libs\mysql\lib\*.dll .\tools\hikyuu
copy .\extern-libs\msvc\*.dll .\tools\hikyuu
copy .\build\extern-libs\%BUILD_OUTPUT_PATH%\*.dll .\tools\hikyuu
copy .\build\hikyuu\%BUILD_OUTPUT_PATH%\*.dll .\tools\hikyuu
copy .\build\hikyuu_utils\%BUILD_OUTPUT_PATH%\*.dll .\tools\hikyuu
copy .\build\importdata\%BUILD_OUTPUT_PATH%\*.exe .\tools\hikyuu
copy .\build\hikyuu_python\%BUILD_OUTPUT_PATH%\*.pyd .\tools\hikyuu
copy .\build\hikyuu_python\%BUILD_OUTPUT_PATH%\indicator\*.pyd .\tools\hikyuu\indicator
copy .\build\hikyuu_python\%BUILD_OUTPUT_PATH%\trade_manage\*.pyd .\tools\hikyuu\trade_manage
copy .\build\hikyuu_python\%BUILD_OUTPUT_PATH%\trade_sys\*.pyd .\tools\hikyuu\trade_sys
copy .\build\hikyuu_python\%BUILD_OUTPUT_PATH%\trade_instance\*.pyd .\tools\hikyuu\trade_instance
copy .\build\hikyuu_python\%BUILD_OUTPUT_PATH%\data_driver\*.pyd .\tools\hikyuu\data_driver
cd ./test
%BOOST_ROOT%\b2 -j 4 link=shared threading=multi %ADDRESS_MODEL%
cd ..
python .\tools\hikyuu\test\test.py
#!/bin/sh
cp boost-build.jam.linux boost-build.jam
cp Jamroot.linux Jamroot
b2 -j 4 link=shared
#toolset=clang-linux-3.8.0
toolset=gcc-5.4.0
#cd ./libs
#doxygen
#cd ..
rm -v -f ./tools/hikyuu/*.so
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
cp -v -f ./build/importdata/$toolset/release/importdata ./tools/hikyuu
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
cd test
b2 link=shared
python ../tools/hikyuu/test/test.py
cd ..
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
ADD_SUBDIRECTORY(sqlite3)
\ No newline at end of file
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment