mirror of
https://github.com/boostorg/contract.git
synced 2026-01-26 18:32:55 +00:00
38 lines
957 B
Plaintext
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]
|
|
"""
|
|
;
|
|
|