Skip to content

Instantly share code, notes, and snippets.

@SpareSimian
Created April 13, 2019 05:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SpareSimian/2a0f1fd1718d81ce2441218ded776778 to your computer and use it in GitHub Desktop.
Save SpareSimian/2a0f1fd1718d81ce2441218ded776778 to your computer and use it in GitHub Desktop.
Build Boost binary libraries with several Visual Studio versions
@rem build all variants needed of Boost library
@rem debug/release, static/dynamic CRT linkage, 32/64 bit
@rem vc10/vc12/vc14/vc141/vc142
@rem run from %boost_root% directory
pushd %boost_root%
call .\bootstrap.bat --without-python
@rem Visual Studio 2019
.\b2 --without-python toolset=msvc-14.2 address-model=32 runtime-link=shared --stagedir=stage
.\b2 --without-python toolset=msvc-14.2 address-model=32 runtime-link=static --stagedir=stage
.\b2 --without-python toolset=msvc-14.2 address-model=64 runtime-link=shared --stagedir=stage64
.\b2 --without-python toolset=msvc-14.2 address-model=64 runtime-link=static --stagedir=stage64
@rem Visual Studio 2017
.\b2 --without-python toolset=msvc-14.1 address-model=32 runtime-link=shared --stagedir=stage
.\b2 --without-python toolset=msvc-14.1 address-model=32 runtime-link=static --stagedir=stage
.\b2 --without-python toolset=msvc-14.1 address-model=64 runtime-link=shared --stagedir=stage64
.\b2 --without-python toolset=msvc-14.1 address-model=64 runtime-link=static --stagedir=stage64
@rem Visual Studio 2015
.\b2 --without-python toolset=msvc-14.0 address-model=32 runtime-link=shared --stagedir=stage
.\b2 --without-python toolset=msvc-14.0 address-model=32 runtime-link=static --stagedir=stage
.\b2 --without-python toolset=msvc-14.0 address-model=64 runtime-link=shared --stagedir=stage64
.\b2 --without-python toolset=msvc-14.0 address-model=64 runtime-link=static --stagedir=stage64
@rem Visual Studio 2013
.\b2 --without-python toolset=msvc-12.0 address-model=32 runtime-link=shared --stagedir=stage
.\b2 --without-python toolset=msvc-12.0 address-model=32 runtime-link=static --stagedir=stage
.\b2 --without-python toolset=msvc-12.0 address-model=64 runtime-link=shared --stagedir=stage64
.\b2 --without-python toolset=msvc-12.0 address-model=64 runtime-link=static --stagedir=stage64
@rem Visual Studio 2010
.\b2 --without-python toolset=msvc-10.0 address-model=32 runtime-link=shared --stagedir=stage
.\b2 --without-python toolset=msvc-10.0 address-model=32 runtime-link=static --stagedir=stage
.\b2 --without-python toolset=msvc-10.0 address-model=64 runtime-link=shared --stagedir=stage64
.\b2 --without-python toolset=msvc-10.0 address-model=64 runtime-link=static --stagedir=stage64
popd
:done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment