2012-11-12 18:17:48 +04:00
|
|
|
local most-deps = [ glob *.cpp : PhraseAlignment.cpp *Test.cpp *-main.cpp ] ;
|
|
|
|
#Build .o files with include path setting, reused.
|
|
|
|
for local d in $(most-deps) {
|
|
|
|
obj $(d:B).o : $(d) : <include>. <include>.. ;
|
|
|
|
}
|
|
|
|
#and stuff them into an alias.
|
|
|
|
alias deps : $(most-deps:B).o ..//z ..//boost_iostreams ../moses/src//ThreadPool ../util//kenutil : <include>. <include>.. ;
|
|
|
|
|
|
|
|
#PhraseAlignment.cpp requires that main define some global variables.
|
|
|
|
#Build the mains that do not need these global variables.
|
|
|
|
for local m in [ glob *-main.cpp : score-main.cpp ] {
|
|
|
|
exe [ MATCH "(.*)-main.cpp" : $(m) ] : $(m) deps ;
|
|
|
|
}
|
|
|
|
|
|
|
|
#The side dishes that use PhraseAlignment.cpp
|
|
|
|
exe score : PhraseAlignment.cpp score-main.cpp deps ;
|
2011-11-25 14:26:19 +04:00
|
|
|
|
2012-11-03 03:30:51 +04:00
|
|
|
import testing ;
|
2012-11-12 18:17:48 +04:00
|
|
|
run ScoreFeatureTest.cpp PhraseAlignment.cpp deps ..//boost_unit_test_framework ..//boost_iostreams : : test.domain ;
|