bootstrap.bat 1.9 KB

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