2011-11-28 13:19:45 +04:00
|
|
|
alias headers : ../../util//kenutil : : : <include>. ;
|
2011-11-18 19:40:56 +04:00
|
|
|
|
2011-11-18 20:25:45 +04:00
|
|
|
alias ThreadPool : ThreadPool.cpp ;
|
|
|
|
|
2011-11-18 19:07:59 +04:00
|
|
|
if [ option.get "with-synlm" : no : yes ] = yes
|
|
|
|
{
|
|
|
|
lib m ;
|
2011-11-18 19:40:56 +04:00
|
|
|
obj SyntacticLanguageModel.o : SyntacticLanguageModel.cpp headers : <include>$(TOP)/synlm/hhmm/rvtl/include <include>$(TOP)/synlm/hhmm/wsjparse/include ;
|
2011-11-18 19:07:59 +04:00
|
|
|
alias synlm : SyntacticLanguageModel.o m : : : <define>HAVE_SYNLM ;
|
|
|
|
} else {
|
|
|
|
alias synlm ;
|
|
|
|
}
|
|
|
|
|
2012-09-25 18:20:23 +04:00
|
|
|
local have-clock = [ SHELL "bash -c \"g++ -dM -x c++ -E /dev/null -include time.h 2>/dev/null |grep CLOCK_MONOTONIC\"" : exit-status ] ;
|
|
|
|
if $(have-clock[2]) = 0 {
|
|
|
|
#required for clock_gettime. Threads already have rt.
|
|
|
|
lib rt : : <runtime-link>static:<link>static <runtime-link>shared:<link>shared ;
|
|
|
|
} else {
|
|
|
|
alias rt ;
|
|
|
|
}
|
2012-08-03 18:38:45 +04:00
|
|
|
|
2012-05-06 01:17:28 +04:00
|
|
|
lib moses_internal :
|
2011-11-21 15:42:46 +04:00
|
|
|
#All cpp files except those listed
|
2012-05-25 00:11:35 +04:00
|
|
|
[ glob *.cpp DynSAInclude/*.cpp : PhraseDictionary.cpp ThreadPool.cpp SyntacticLanguageModel.cpp *Test.cpp Mock*.cpp ]
|
2012-09-22 02:21:23 +04:00
|
|
|
synlm ThreadPool headers rt ;
|
2012-05-06 01:17:28 +04:00
|
|
|
|
2012-10-11 19:38:39 +04:00
|
|
|
lib moses : PhraseDictionary.cpp moses_internal CYKPlusParser//CYKPlusParser CompactPT//CompactPT LM//LM RuleTable//RuleTable Scope3Parser//Scope3Parser fuzzy-match//fuzzy-match Incremental//Incremental headers ../..//z ../../OnDiskPt//OnDiskPt ;
|
2012-02-13 23:31:37 +04:00
|
|
|
|
|
|
|
alias headers-to-install : [ glob-tree *.h ] ;
|
2011-12-15 16:36:07 +04:00
|
|
|
|
|
|
|
import testing ;
|
|
|
|
|
2012-10-12 00:33:11 +04:00
|
|
|
unit-test moses_test : [ glob *Test.cpp Mock*.cpp ] moses moses_internal CYKPlusParser//CYKPlusParser CompactPT//CompactPT LM//LM RuleTable//RuleTable Scope3Parser//Scope3Parser fuzzy-match//fuzzy-match headers ../..//z ../../OnDiskPt//OnDiskPt ../..//boost_unit_test_framework ;
|
|
|
|
|