conditional compilation of VW feature functions

This commit is contained in:
Ales Tamchyna 2015-01-07 09:53:19 +01:00
parent ea5ebe3a84
commit dfae9f99a4

View File

@ -65,6 +65,13 @@ if [ option.get "with-mm" : no : yes ] = yes
alias mmlib ;
}
local with-vw = [ option.get "with-vw" ] ;
if $(with-vw) {
alias vwfiles : [ glob FF/VW/*.cpp ] ;
} else {
alias vwfiles ;
}
lib moses :
[ glob
*.cpp
@ -83,7 +90,7 @@ lib moses :
FF/*.cpp
FF/bilingual-lm/*.cpp
FF/OSM-Feature/*.cpp
FF/VW/*.cpp
vwfiles
FF/LexicalReordering/*.cpp
PP/*.cpp
: #exceptions