2011-11-18 18:37:01 +04:00
|
|
|
project : default-build
|
|
|
|
<threading>multi
|
|
|
|
<warnings>on
|
|
|
|
<variant>release
|
|
|
|
<link>static
|
|
|
|
;
|
|
|
|
|
2011-11-18 20:25:45 +04:00
|
|
|
#The linked Boost libraries we use so far. Link shared because most people don't have the static version.
|
|
|
|
import boost ;
|
|
|
|
boost.use-project ;
|
|
|
|
alias boost_thread : /boost//thread : <link>shared ;
|
|
|
|
alias boost_unit_test_framework : /boost//unit_test_framework : <link>shared ;
|
|
|
|
alias boost_program_options : /boost//program_options : <link>shared ;
|
2011-11-18 18:37:01 +04:00
|
|
|
|
2011-11-18 20:25:45 +04:00
|
|
|
import option ;
|
2011-11-18 19:40:56 +04:00
|
|
|
if [ option.get "notrace" : no : yes ] = yes
|
2011-11-18 18:37:01 +04:00
|
|
|
{
|
|
|
|
trace = ;
|
|
|
|
} else {
|
|
|
|
trace = <define>TRACE_ENABLE=1 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
project : requirements
|
|
|
|
<threading>multi:<define>WITH_THREADS
|
|
|
|
<threading>multi:<library>boost_thread
|
2011-11-18 20:25:45 +04:00
|
|
|
<define>_FILE_OFFSET_BITS=64 <define>_LARGE_FILES <define>USE_HYPO_POOL
|
|
|
|
$(trace)
|
2011-11-18 18:37:01 +04:00
|
|
|
;
|
|
|
|
|
2011-11-18 20:25:45 +04:00
|
|
|
# Shell with trailing line removed http://lists.boost.org/boost-build/2007/08/17051.php
|
|
|
|
rule trim-nl ( str )
|
|
|
|
{
|
|
|
|
return [ MATCH "([^
|
|
|
|
]*)" : $(str) ] ;
|
|
|
|
}
|
|
|
|
rule _shell ( cmd )
|
|
|
|
{
|
|
|
|
return [ trim-nl [ SHELL $(cmd) ] ] ;
|
|
|
|
}
|
|
|
|
|
2011-11-18 18:37:01 +04:00
|
|
|
path-constant TOP : . ;
|
|
|
|
|
|
|
|
build-project lm ;
|
|
|
|
build-project util ;
|
|
|
|
build-project moses/src ;
|
|
|
|
build-project OnDiskPt/src ;
|
|
|
|
build-project CreateOnDisk/src ;
|
|
|
|
build-project moses-chart-cmd/src ;
|
|
|
|
build-project moses-cmd/src ;
|
2011-11-18 20:25:45 +04:00
|
|
|
build-project mert ;
|
2011-11-18 18:37:01 +04:00
|
|
|
|
|
|
|
install dist :
|
|
|
|
lm//query
|
|
|
|
lm//build_binary
|
|
|
|
moses-chart-cmd/src//moses_chart
|
|
|
|
moses-cmd/src//programs
|
|
|
|
CreateOnDisk/src//CreateOnDisk
|
2011-11-18 20:25:45 +04:00
|
|
|
mert//programs
|
2011-11-18 18:37:01 +04:00
|
|
|
: <location>dist <install-type>EXE <install-dependencies>on <dll-path>$(TOP)/dist <link>shared:<install-type>LIB ;
|