forked from Studiofreya/boost-build-scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_boost_1_65_vs2017.5.bat
31 lines (22 loc) · 1.22 KB
/
build_boost_1_65_vs2017.5.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
@echo off
rem Directory to boost root
set boost_dir=boost_1_65_1
rem Number of cores to use when building boost
set cores=%NUMBER_OF_PROCESSORS%
rem What toolset to use when building boost.
rem Visual Studio 2012 -> set msvcver=msvc-11.0
rem Visual Studio 2013 -> set msvcver=msvc-12.0
rem Visual Studio 2015 -> set msvcver=msvc-14.0
rem Visual Studio 2017 -> set msvcver=msvc-14.1
set msvcver=msvc-14.1
rem Start building boost
echo Building %boost_dir% with %cores% cores using toolset %msvcver%.
cd %boost_dir%
call bootstrap.bat
rem Static libraries
rem b2 -j%cores% toolset=%msvcver% address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/x64
rem b2 -j%cores% toolset=%msvcver% address-model=32 architecture=x86 link=static threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/win32
rem Build DLLs
b2 -j%cores% toolset=%msvcver% address-model=64 architecture=x86 link=shared threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/x64
rem b2 -j%cores% toolset=%msvcver% address-model=32 architecture=x86 link=shared threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/win32
pause