bootstrap.bat 1.7 KB

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