Files
boost/bootstrap.bat
SSimboeckMesu 7504c977a3
Some checks failed
Commit Bot / Commit Bot (push) Has been cancelled
CI / b2-posix (macos-14) (push) Has been cancelled
CI / b2-posix (macos-15) (push) Has been cancelled
CI / b2-posix (macos-26) (push) Has been cancelled
CI / b2-posix (ubuntu-22.04) (push) Has been cancelled
CI / b2-posix (ubuntu-22.04-arm) (push) Has been cancelled
CI / b2-posix (ubuntu-24.04) (push) Has been cancelled
CI / b2-posix (ubuntu-24.04-arm) (push) Has been cancelled
CI / b2-windows (windows-2022) (push) Has been cancelled
CI / b2-windows (windows-2025) (push) Has been cancelled
CI / cmake-install-posix (macos-14) (push) Has been cancelled
CI / cmake-install-posix (macos-15) (push) Has been cancelled
CI / cmake-install-posix (macos-26) (push) Has been cancelled
CI / cmake-install-posix (ubuntu-22.04) (push) Has been cancelled
CI / cmake-install-posix (ubuntu-22.04-arm) (push) Has been cancelled
CI / cmake-install-posix (ubuntu-24.04) (push) Has been cancelled
CI / cmake-install-posix (ubuntu-24.04-arm) (push) Has been cancelled
CI / cmake-install-windows (windows-2022) (push) Has been cancelled
CI / cmake-install-windows (windows-2025) (push) Has been cancelled
CI / cmake-test-posix (ubuntu-latest) (push) Has been cancelled
CI / cmake-test-posix-quick (macos-14) (push) Has been cancelled
CI / cmake-test-posix-quick (macos-15) (push) Has been cancelled
CI / cmake-test-posix-quick (macos-26) (push) Has been cancelled
CI / cmake-test-posix-quick (ubuntu-22.04) (push) Has been cancelled
CI / cmake-test-posix-quick (ubuntu-22.04-arm) (push) Has been cancelled
CI / cmake-test-posix-quick (ubuntu-24.04) (push) Has been cancelled
CI / cmake-test-posix-quick (ubuntu-24.04-arm) (push) Has been cancelled
CI / cmake-test-windows-quick (windows-2022) (push) Has been cancelled
CI / cmake-test-windows-quick (windows-2025) (push) Has been cancelled
vc145 support (#1121)
Add support for Visual Studio 2026 (vc145)
2026-01-22 04:35:29 +02:00

100 lines
2.5 KiB
Batchfile

@ECHO OFF
SETLOCAL
REM Copyright 2019-2020 Rene Rivera
REM Copyright (C) 2009 Vladimir Prus
REM
REM Distributed under the Boost Software License, Version 1.0.
REM (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
ECHO Building Boost.Build engine
if exist ".\tools\build\src\engine\b2.exe" del tools\build\src\engine\b2.exe
pushd tools\build\src\engine
call .\build.bat %*
@ECHO OFF
popd
if exist ".\tools\build\src\engine\b2.exe" (
copy .\tools\build\src\engine\b2.exe . > nul
goto :bjam_built)
goto :bjam_failure
:bjam_built
REM Ideally, we should obtain the toolset that build.bat has
REM guessed. However, it uses setlocal at the start and does not
REM export BOOST_JAM_TOOLSET, and I don't know how to do that
REM properly. Default to msvc if not specified.
SET TOOLSET=msvc
IF "%1"=="gcc" SET TOOLSET=gcc
IF "%1"=="clang" SET TOOLSET=clang
IF "%1"=="borland" SET TOOLSET=embarcadero
IF "%1"=="vc71" SET TOOLSET=msvc : 7.1
IF "%1"=="vc8" SET TOOLSET=msvc : 8.0
IF "%1"=="vc9" SET TOOLSET=msvc : 9.0
IF "%1"=="vc10" SET TOOLSET=msvc : 10.0
IF "%1"=="vc11" SET TOOLSET=msvc : 11.0
IF "%1"=="vc12" SET TOOLSET=msvc : 12.0
IF "%1"=="vc14" SET TOOLSET=msvc : 14.0
IF "%1"=="vc141" SET TOOLSET=msvc : 14.1
IF "%1"=="vc142" SET TOOLSET=msvc : 14.2
IF "%1"=="vc143" SET TOOLSET=msvc : 14.3
IF "%1"=="vc145" SET TOOLSET=msvc : 14.5
ECHO.
ECHO Generating Boost.Build configuration in project-config.jam for %TOOLSET%...
ECHO # Boost.Build Configuration > project-config.jam
ECHO # Automatically generated by bootstrap.bat >> project-config.jam
ECHO. >> project-config.jam
ECHO import option ; >> project-config.jam
ECHO. >> project-config.jam
ECHO using %TOOLSET% ; >> project-config.jam
ECHO. >> project-config.jam
ECHO option.set keep-going : false ; >> project-config.jam
ECHO. >> project-config.jam
ECHO.
ECHO Bootstrapping is done. To build, run:
ECHO.
ECHO .\b2
ECHO.
IF EXIST libs\config\include (
ECHO. To generate header files, run:
ECHO.
ECHO. .\b2 headers
ECHO.
)
ECHO To adjust configuration, edit 'project-config.jam'.
ECHO Further information:
ECHO.
ECHO - Command line help:
ECHO .\b2 --help
ECHO.
ECHO - Getting started guide:
ECHO http://boost.org/more/getting_started/windows.html
ECHO.
ECHO - Boost.Build documentation:
ECHO http://www.boost.org/build/
ECHO.
goto :end
:bjam_failure
ECHO.
ECHO Failed to build Boost.Build engine.
ECHO.
REM Set an error code to allow `bootstrap && b2`
cmd /c exit /b 1 > nul
:end