@@ -13,10 +13,22 @@ environment:
13
13
COMPILER : MSVC15
14
14
PLATFORM : " Win32"
15
15
PYTHON_VERSION : 27
16
+ CONDA_INSTALL_LOCN : C:\\Miniconda35
17
+ WITH_MPFR : yes
18
+ WITH_MPC : yes
16
19
- BUILD_TYPE : " Release"
17
20
COMPILER : MSVC15
18
21
PLATFORM : " x64"
19
22
PYTHON_VERSION : 35-x64
23
+ CONDA_INSTALL_LOCN : C:\\Miniconda35-x64
24
+ WITH_MPFR : yes
25
+ WITH_MPC : yes
26
+ WITH_LLVM : yes
27
+ - BUILD_TYPE : " Release"
28
+ COMPILER : MSVC15
29
+ PLATFORM : " x64"
30
+ PYTHON_VERSION : 36-x64
31
+ CONDA_INSTALL_LOCN : C:\\Miniconda36-x64
20
32
# - BUILD_TYPE: "Debug"
21
33
# COMPILER: MinGW
22
34
# PYTHON_VERSION: 27
@@ -35,13 +47,15 @@ install:
35
47
- set PYTHON_SOURCE_DIR=%CD%
36
48
- git clone https://github.com/sympy/symengine symengine-cpp
37
49
38
- - if [%COMPILER%]==[MSVC15] set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
39
- - if [%COMPILER%]==[MSVC15] call symengine-cpp\bin\appveyor-download.cmd https://raw.githubusercontent.com/symengine/dependencies/fd912ad34c848e7a7a9dab4628f836ab167b9e59/mpir-2.7.0.zip
40
- - if [%COMPILER%]==[MSVC15] 7z x mpir-2.7.0.zip > NUL
41
- - if [%COMPILER%]==[MSVC15] msbuild mpir-2.7.0/build.vc14/lib_mpir_gc/lib_mpir_gc.vcxproj /p:Configuration=%BUILD_TYPE% /p:Platform=%PLATFORM% /p:PlatformToolset=%PLATFORMTOOLSET% /verbosity:minimal
42
- - if [%COMPILER%]==[MSVC15] msbuild mpir-2.7.0/build.vc14/lib_mpir_cxx/lib_mpir_cxx.vcxproj /p:Configuration=%BUILD_TYPE% /p:Platform=%PLATFORM% /p:PlatformToolset=%PLATFORMTOOLSET% /verbosity:minimal
43
- - if [%COMPILER%]==[MSVC15] copy mpir-2.7.0\build.vc14\lib_mpir_gc\%PLATFORM%\%BUILD_TYPE%\mpir.lib mpir-2.7.0\lib\%PLATFORM%\%BUILD_TYPE%\gmp.lib
44
- - if [%COMPILER%]==[MSVC15] copy mpir-2.7.0\build.vc14\lib_mpir_cxx\%PLATFORM%\%BUILD_TYPE%\mpirxx.lib mpir-2.7.0\lib\%PLATFORM%\%BUILD_TYPE%\gmpxx.lib
50
+ - if [%COMPILER%]==[MSVC15] call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
51
+ - if [%COMPILER%]==[MSVC15] conda update --yes --quiet conda
52
+ - if [%COMPILER%]==[MSVC15] conda config --add channels conda-forge
53
+ - if [%COMPILER%]==[MSVC15] if [%BUILD_TYPE%]==[Debug] conda config --add channels symengine/label/debug
54
+ - if [%COMPILER%]==[MSVC15] conda create -n test --yes mpir=3.0.0 vc=14
55
+ - if [%COMPILER%]==[MSVC15] call activate test
56
+ - if [%COMPILER%]==[MSVC15] if [%WITH_MPFR%]==[yes] conda install --yes mpfr=3.1.5
57
+ - if [%COMPILER%]==[MSVC15] if [%WITH_MPC%]==[yes] conda install --yes mpc=1.0.3
58
+ - if [%COMPILER%]==[MSVC15] if [%WITH_LLVM%]==[yes] conda install --yes llvmdev=3.9
45
59
46
60
- if [%COMPILER%]==[MinGW] set PATH=C:\MinGW\bin;%PATH%
47
61
- if [%COMPILER%]==[MinGW] mingw-get update
@@ -72,19 +86,22 @@ install:
72
86
- mkdir build
73
87
- cd build
74
88
75
- - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[Win32] cmake -G "Visual Studio 14 2015" -DCMAKE_PREFIX_PATH=../mpir-2.7.0/lib/%PLATFORM%/%BUILD_TYPE% -DCMAKE_CXX_FLAGS_RELEASE="/MT /W1 /O2 /Ob2 /D NDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 /W1" ..
76
- - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[x64] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH=../mpir-2.7.0/lib/%PLATFORM%/%BUILD_TYPE% -DCMAKE_CXX_FLAGS_RELEASE="/MT /W1 /O2 /Ob2 /D NDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 /W1" ..
89
+ - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[Win32] cmake -G "Visual Studio 14 2015" -DCMAKE_PREFIX_PATH=%CONDA_PREFIX%\Library ..
90
+ - if [%COMPILER%]==[MSVC15] if [%PLATFORM%]==[x64] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH=%CONDA_PREFIX%\Library ..
91
+ - if [%COMPILER%]==[MinGW] cmake -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH=C:\MinGW -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
92
+ - if [%COMPILER%]==[MinGW-w64] cmake -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH=C:\mingw64 -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
77
93
78
- - if [%COMPILER%]==[MinGW] cmake -G "MinGW Makefiles" -DCOMMON_DIR=C:\MinGW -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
79
- - if [%COMPILER%]==[MinGW-w64] cmake -G "MinGW Makefiles" -DWITH_MINGW_W64=yes -DCOMMON_DIR=C:\mingw64 -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
94
+ - if [%WITH_MPFR%]==[yes] cmake -DWITH_MPFR=yes ..
95
+ - if [%WITH_MPC%]==[yes] cmake -DWITH_MPC=yes ..
96
+ - if [%WITH_LLVM%]==[yes] cmake -DWITH_LLVM=yes -DMSVC_USE_MT=no ..
80
97
81
- - cmake -DBUILD_TESTS=no -DBUILD_BENCHMARKS=no ..
98
+ - cmake -DBUILD_SHARED_LIBS=yes - DBUILD_TESTS=no -DBUILD_BENCHMARKS=no -DCMAKE_INSTALL_PREFIX=C:\symengine ..
82
99
83
100
- cmake --build . --config %BUILD_TYPE% --target install
84
101
- cd ../../
85
102
86
103
build_script :
87
-
104
+ - set PATH=C:\symengine\bin\;%PATH%
88
105
- if [%COMPILER%]==[MSVC15] python setup.py install build_ext --compiler=msvc --build-type=%BUILD_TYPE%
89
106
- if [%COMPILER%]==[MinGW] python setup.py install build_ext --compiler=mingw --inplace
90
107
- if [%COMPILER%]==[MinGW-w64] python setup.py install build_ext --compiler=mingw --inplace
0 commit comments