2010-05-02 01:40:57 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
cls
|
|
|
|
echo This script builds the 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:
|
2010-05-02 03:36:33 +02:00
|
|
|
echo cd tools\jam\src
|
|
|
|
echo build.bat
|
2010-05-02 01:40:57 +02:00
|
|
|
echo .
|
|
|
|
|
|
|
|
cd \boost
|
|
|
|
echo bin\bjam --version
|
|
|
|
bin\bjam --version
|
|
|
|
|
|
|
|
echo .
|
|
|
|
echo .
|
|
|
|
echo .
|
|
|
|
echo About to build release libraries
|
|
|
|
pause
|
|
|
|
cls
|
|
|
|
bin\bjam 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:
|
2010-05-02 03:36:33 +02:00
|
|
|
del stage\lib\*s.lib
|
2010-05-02 01:40:57 +02:00
|
|
|
move stage\lib\* lib\
|
|
|
|
|
|
|
|
echo .
|
|
|
|
echo .
|
|
|
|
echo .
|
|
|
|
echo About to build debug libraries
|
|
|
|
pause
|
|
|
|
cls
|
|
|
|
bin\bjam 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:
|
2010-05-02 03:36:33 +02:00
|
|
|
del stage\lib\*-gd.lib
|
2010-05-02 01:40:57 +02:00
|
|
|
move stage\lib\* lib\
|
|
|
|
|
|
|
|
echo Done - try running "dir \boost\lib\"
|