-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
32 lines (25 loc) · 856 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
:: Set the number of CPUs to use in building
SET CPU_USE=2
cd cantera
:: Have to use CALL to prevent the script from exiting after calling SCons
CALL scons clean
:: Put important settings into cantera.conf for the build. Use VS 2022 to
:: compile the interface.
ECHO msvc_version='14.3' >> cantera.conf
SET "ESC_MATLAB=%MW_HEADERS_DIR:\=/%"
ECHO %ESC_MATLAB%
ECHO matlab_toolbox='y' >> cantera.conf
ECHO matlab_path="%ESC_MATLAB%" >> cantera.conf
ECHO debug='n' >> cantera.conf
ECHO f90_interface='n' >> cantera.conf
ECHO system_sundials='n' >> cantera.conf
ECHO python_package='none' >> cantera.conf
SET "ESC_BOOST=%BOOST_ROOT:\=/%"
ECHO boost_inc_dir="%ESC_BOOST%" >> cantera.conf
CALL scons build -j%CPU_USE% logging=debug
IF ERRORLEVEL 1 EXIT 1
CALL scons msi
IF ERRORLEVEL 1 EXIT 1
dir
move cantera.msi "Cantera-x64.msi"
IF ERRORLEVEL 1 EXIT 1