Files
contract/Jamroot
2015-03-12 23:34:45 -07:00

38 lines
1.0 KiB
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
Pre-process specified file to bin/.../<file-stem>-pp.ii using compiler:
$ bjam [-aq] <file-stem>-pp [cxxflags=-UDEBUG] [toolset=msvc|gcc|clang]
Pre-process specified file to bin/.../<file-stem>-wave.ii using WAVE:
$ bjam [-aq] <file-stem>-wave
(Edit wave.cfg for -UDEBUG, lib paths, etc.)
Compile and run program <file-stem>.cpp:
$ bjam [-aq] <file-stem> [toolset=msvc,gcc,clang]
Compile and run all programs in current directory:
$ bjam [-aq] [toolset=msvc,gcc,clang]
"""
;