Files
contract/Jamroot
2015-03-13 02:18:54 -07:00

32 lines
791 B
Plaintext

import os ;
if ! [ os.environ BOOST_ROOT ] {
exit "Error: Set BOOST_ROOT environment variable to Boost root directory" ;
}
local BOOST_ROOT = [ os.environ BOOST_ROOT ] ;
echo "Build Boost.Contract's source, tests, examples, documentation, etc." ;
echo "Using Boost libraries from (see $BOOST_ROOT): $(BOOST_ROOT)" ;
echo ;
echo """Usage:
Build all (-a), quit on first error (-q), using MSVC, GCC, and CLANG:
$ bjam -aq toolset=msvc,gcc,clang ...
Clock how long the build takes:
$ time bjam ...
""" ;
use-project boost : $(BOOST_ROOT) ;
project
: requirements
<toolset>gcc:<cxxflags>-std=c++11
<toolset>clang:<cxxflags>-std=c++11
<include>"./include"
<include>$(BOOST_ROOT)
<library-path>$(BOOST_ROOT)/stage/lib
;