Files
contract/Jamroot
2014-12-16 11:52:24 -08:00

31 lines
730 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 "Using Boost libraries from:" $(BOOST_ROOT) ;
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
;
echo """
Examples:
$ wave <file-path> # pre-process <file-name> to pp.*
$ b2 -n # find compiler command then cut-n-paste it adding pp only option
$ <compile-command-from-above> -E -P -DDEBUG > 00.cpp && vi 00.cpp
"""
;