5 REM Copyright 2019 Rene Rivera
6 REM Copyright (C) 2009 Vladimir Prus
8 REM Distributed under the Boost Software License, Version 1.0.
9 REM (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
11 ECHO Building Boost.Build engine
12 if exist ".\tools\build\src\engine\b2.exe" del tools\build\src\engine\b2.exe
13 pushd tools\build\src\engine
15 call .\build.bat %* > ..\..\..\..\bootstrap.log
20 if exist ".\tools\build\src\engine\b2.exe" (
21 copy .\tools\build\src\engine\b2.exe . > nul
28 REM Ideally, we should obtain the toolset that build.bat has
29 REM guessed. However, it uses setlocal at the start and does not
30 REM export BOOST_JAM_TOOLSET, and I don't know how to do that
31 REM properly. Default to msvc if not specified.
35 IF "%1"=="gcc" SET TOOLSET=gcc
37 IF "%1"=="vc71" SET TOOLSET=msvc : 7.1
38 IF "%1"=="vc8" SET TOOLSET=msvc : 8.0
39 IF "%1"=="vc9" SET TOOLSET=msvc : 9.0
40 IF "%1"=="vc10" SET TOOLSET=msvc : 10.0
41 IF "%1"=="vc11" SET TOOLSET=msvc : 11.0
42 IF "%1"=="vc12" SET TOOLSET=msvc : 12.0
43 IF "%1"=="vc14" SET TOOLSET=msvc : 14.0
44 IF "%1"=="vc141" SET TOOLSET=msvc : 14.1
45 IF "%1"=="vc142" SET TOOLSET=msvc : 14.2
48 ECHO Generating Boost.Build configuration in project-config.jam for %TOOLSET%...
49 ECHO # Boost.Build Configuration > project-config.jam
50 ECHO # Automatically generated by bootstrap.bat >> project-config.jam
51 ECHO. >> project-config.jam
52 ECHO import option ; >> project-config.jam
53 ECHO. >> project-config.jam
54 ECHO using %TOOLSET% ; >> project-config.jam
55 ECHO. >> project-config.jam
56 ECHO option.set keep-going : false ; >> project-config.jam
57 ECHO. >> project-config.jam
60 ECHO Bootstrapping is done. To build, run:
65 IF EXIST libs\config\include (
66 ECHO. To generate header files, run:
72 ECHO To adjust configuration, edit 'project-config.jam'.
73 ECHO Further information:
75 ECHO - Command line help:
78 ECHO - Getting started guide:
79 ECHO http://boost.org/more/getting_started/windows.html
81 ECHO - Boost.Build documentation:
82 ECHO http://www.boost.org/build/
90 ECHO Failed to build Boost.Build engine.
91 ECHO Please consult bootstrap.log for further diagnostics.
94 REM Set an error code to allow `bootstrap && b2`
95 cmd /c exit /b 1 > nul