-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
boost.bat
58 lines (49 loc) · 1.05 KB
/
boost.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
echo on
cd ..\boost\
call bootstrap.bat
b2 headers
rem add 'call :link XX.X' if you need to run for specific version of Visual C++ compiler.
call :link 14.0
call :link 12.0
call :link 11.0
call :link 10.0
call :link 9.0
goto :eof
:link
echo link {
echo toolset=%1
echo }
call :threading %1 shared shared
call :threading %1 static shared
call :threading %1 static static
goto :eof
:threading
echo threading {
echo toolset=%1
echo link=%2
echo runtime-link=%3
echo }
call :address_model %1 %2 %3 single
call :address_model %1 %2 %3 multi
goto :eof
:address_model
echo address_model {
echo toolset=%1
echo link=%2
echo runtime-link=%3
echo threading=%4
echo }
call :build %1 %2 %3 %4 32
call :build %1 %2 %3 %4 64
goto :eof
:build
echo build {
echo toolset=%1
echo link=%2
echo runtime-link=%3
echo threading=%4
echo address-model=%5
echo }
rem change this line if you need to specify additional options to compiler.
b2 architecture=x86 link=%2 runtime-link=%3 threading=%4 address-model=%5 stage --stagedir=address-model-%5 --toolset=msvc-%1 --without-python
goto :eof