Files
contract/Jamroot
Lorenzo Caminiti 27c52325be pp parsing cleanup
2015-01-14 20:59:49 -08:00

38 lines
957 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
Parse specified file using to bin/.../<file-stem>-pp.ii:
$ bjam [-a] <file-stem>-pp [cxxflags=-UDEBUG] [toolset=msvc|gcc|clang]
Parse specified file to ./pp.cpp (and ./pp.dbg, see also <root>/wave.cfg):
$ wave <file-name>
Compile and run program <file-stem>.cpp:
$ bjam [-a] <file-stem> [toolset=msvc|gcc|clang]
Compile and run all programs in current directory:
$ bjam [-a] [toolset=msvc|gcc|clang]
"""
;