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