mosesdecoder/phrase-extract/Jamfile

20 lines
848 B
Plaintext
Raw Normal View History

local most-deps = [ glob *.cpp : ExtractionPhrasePair.cpp *Test.cpp *-main.cpp ] ;
2012-11-12 18:17:48 +04:00
#Build .o files with include path setting, reused.
for local d in $(most-deps) {
2012-11-14 17:43:04 +04:00
obj $(d:B).o : $(d) ;
2012-11-12 18:17:48 +04:00
}
#and stuff them into an alias.
2014-09-01 21:02:42 +04:00
alias deps : $(most-deps:B).o ..//z ..//boost_iostreams ../moses//moses ../moses//ThreadPool ../moses//Util ../util//kenutil ;
2012-11-12 18:17:48 +04:00
#ExtractionPhrasePair.cpp requires that main define some global variables.
2012-11-12 18:17:48 +04:00
#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 ExtractionPhrasePair.cpp
exe score : ExtractionPhrasePair.cpp score-main.cpp deps ;
2011-11-25 14:26:19 +04:00
import testing ;
run ScoreFeatureTest.cpp ExtractionPhrasePair.cpp deps ..//boost_unit_test_framework ..//boost_iostreams : : test.domain ;