summaryrefslogtreecommitdiff
path: root/buildscripts/buildboost64.bat
blob: 86f3e11abf87a9e24025f78924534f51f919c2c3 (plain)
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
59
60
61
@echo off

rem 64 bit version
rem address-model=64 

rem run
rem    bin\bjam --clean
rem if you switch compilers etc.

cls
echo This script builds the (64 bit) boost libs that MongoDB requires on Windows.
echo We assume boost source is in machine's \boost directory.
echo You can get boost at www.boost.org.
echo .
echo Note: you will want boost v1.42 or higher with VS2010.
echo .
echo We assume you have bjam.  To build bjam:
echo   cd tools\jam\src
echo   build.bat
echo .

cd \boost
echo bin\bjam --version
bin\bjam --version

echo .
echo .
echo .
echo About to build release libraries
pause
cls
bin\bjam --build-dir=c:\temp\boost64 address-model=64 variant=release runtime-link=static link=static --with-filesystem --with-thread --with-date_time --with-program_options --layout=versioned threading=multi toolset=msvc
echo .
echo .
echo .
echo About to try to move libs from /boost/stage/lib to /boost/lib/
pause
cls
rem bjam makes extra copies without the ver #; we kill those:
del stage\lib\*s.lib
move stage\lib\* lib\

echo .
echo .
echo .
echo About to build debug libraries
pause
cls
bin\bjam --build-dir=c:\temp\boost64 address-model=64 variant=debug --with-filesystem --with-thread --with-date_time --with-program_options --layout=versioned threading=multi toolset=msvc

echo .
echo .
echo .
echo About to try to move libs from /boost/stage/lib to /boost/lib/
pause
cls
rem bjam makes extra copies without the ver #; we kill those:
del stage\lib\*-gd.lib
move stage\lib\* lib\

echo Done - try running "dir \boost\lib\"