| 1 | @ECHO OFF
|
|---|
| 2 |
|
|---|
| 3 | REM Copyright (C) 2009 Vladimir Prus
|
|---|
| 4 | REM
|
|---|
| 5 | REM Distributed under the Boost Software License, Version 1.0.
|
|---|
| 6 | REM (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
|---|
| 7 |
|
|---|
| 8 | ECHO Building Boost.Jam build engine
|
|---|
| 9 | if exist ".\tools\jam\src\bin.ntx86\bjam.exe" del tools\jam\src\bin.ntx86\bjam.exe
|
|---|
| 10 | cd tools\jam\src
|
|---|
| 11 |
|
|---|
| 12 | call .\build.bat > ..\..\..\bjam.log
|
|---|
| 13 | @ECHO OFF
|
|---|
| 14 | cd ..\..\..
|
|---|
| 15 |
|
|---|
| 16 | if exist ".\tools\jam\src\bin.ntx86\bjam.exe" (
|
|---|
| 17 | copy .\tools\jam\src\bin.ntx86\bjam.exe . > nul
|
|---|
| 18 | goto :bjam_built)
|
|---|
| 19 |
|
|---|
| 20 | if exist ".\tools\jam\src\bin.ntx86_64\bjam.exe" (
|
|---|
| 21 | copy .\tools\jam\src\bin.ntx86_64\bjam.exe . > nul
|
|---|
| 22 | goto :bjam_built)
|
|---|
| 23 |
|
|---|
| 24 | goto :bjam_failure
|
|---|
| 25 |
|
|---|
| 26 | :bjam_built
|
|---|
| 27 |
|
|---|
| 28 | REM Ideally, we should obtain the toolset that build.bat has
|
|---|
| 29 | REM guessed. However, it uses setlocal at the start and does
|
|---|
| 30 | REM export BOOST_JAM_TOOLSET, and I don't know how to do that
|
|---|
| 31 | REM properly. Default to msvc for now.
|
|---|
| 32 | set toolset=msvc
|
|---|
| 33 |
|
|---|
| 34 | ECHO using %toolset% ; > project-config.jam
|
|---|
| 35 |
|
|---|
| 36 | ECHO.
|
|---|
| 37 | ECHO Bootstrapping is done. To build, run:
|
|---|
| 38 | ECHO.
|
|---|
| 39 | ECHO .\bjam
|
|---|
| 40 | ECHO.
|
|---|
| 41 | ECHO To adjust configuration, edit 'project-config.jam'.
|
|---|
| 42 | ECHO Further information:
|
|---|
| 43 | ECHO.
|
|---|
| 44 | ECHO - Command line help:
|
|---|
| 45 | ECHO .\bjam --help
|
|---|
| 46 | ECHO.
|
|---|
| 47 | ECHO - Getting started guide:
|
|---|
| 48 | ECHO http://boost.org/more/getting_started/windows.html
|
|---|
| 49 | ECHO.
|
|---|
| 50 | ECHO - Boost.Build documentation:
|
|---|
| 51 | ECHO http://www.boost.org/boost-build2/doc/html/index.html
|
|---|
| 52 |
|
|---|
| 53 | goto :end
|
|---|
| 54 |
|
|---|
| 55 | :bjam_failure
|
|---|
| 56 |
|
|---|
| 57 | ECHO.
|
|---|
| 58 | ECHO Failed to build Boost.Jam build engine.
|
|---|
| 59 | ECHO Please consult bjam.log for furter diagnostics.
|
|---|
| 60 | ECHO.
|
|---|
| 61 | ECHO You can try to obtain a prebuilt binary from
|
|---|
| 62 | ECHO.
|
|---|
| 63 | ECHO http://sf.net/project/showfiles.php?group_id=7586^&package_id=72941
|
|---|
| 64 | ECHO.
|
|---|
| 65 | ECHO Also, you can file an issue at http://svn.boost.org
|
|---|
| 66 | ECHO Please attach bjam.log in that case.
|
|---|
| 67 |
|
|---|
| 68 | goto :end
|
|---|
| 69 |
|
|---|
| 70 | :end
|
|---|