Created
March 17, 2012 13:04
-
-
Save shanewfx/2058696 to your computer and use it in GitHub Desktop.
Compile Boost_v1.49.0 Batch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
em @echo off | |
rem 先编译bjam | |
start bootstrap.bat | |
rem 等待一分钟待bjam编译完成(如果电脑性能过差,可以设置等待时间更长一些) | |
SET SLEEP=ping 127.0.0.1 -n | |
%SLEEP% 60 > nul | |
rem 利用bjam编译boost库 | |
rem 在此,我们编译vs2005下的x86及x64共2类boost库文件 | |
rem 建立库文件夹 | |
rem vs2005 win32库文件夹 | |
md stage\lib\win32\vs8_0\ | |
rem vs2005 x64库文件夹 | |
md stage\lib\x64\vs8_0\ | |
rem ****************************************************************** | |
rem 先删除lib下所有文件(不删除文件夹) | |
del stage\lib\*.* /Q | |
rem 编译vs2005 win32库文件 | |
bjam --toolset=msvc-8.0 architecture=x86 --build-type=complete stage | |
rem 拷贝至\stage\lib\win32\vs8_0 | |
copy stage\lib\*.* stage\lib\win32\vs8_0\*.* /Y | |
rem ################################################################## | |
rem ****************************************************************** | |
rem 先删除lib下所有文件(不删除文件夹) | |
del stage\lib\*.* /Q | |
rem 编译vs2008 x64库文件 | |
bjam --toolset=msvc-8.0 architecture=x86 address-model=64 --build-type=complete stage | |
rem 拷贝至\stage\lib\x64\vs8_0 | |
copy stage\lib\*.* stage\lib\x64\vs8_0\*.* /Y | |
rem ################################################################## | |
rem 删除lib下所有文件(不删除文件夹) | |
del stage\lib\*.* /Q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment