diff options
Diffstat (limited to 'lm/Jamfile')
-rw-r--r-- | lm/Jamfile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lm/Jamfile b/lm/Jamfile index eaf629fd0..4693f9e01 100644 --- a/lm/Jamfile +++ b/lm/Jamfile @@ -13,7 +13,16 @@ update-if-changed $(ORDER-LOG) $(max-order) ; max-order += <dependency>$(ORDER-LOG) ; -fakelib kenlm : [ glob *.cc : *main.cc *test.cc ] ../util//kenutil : <include>.. $(max-order) : : <include>.. $(max-order) ; +wrappers = ; +local with-nplm = [ option.get "with-nplm" ] ; +if $(with-nplm) { + lib neuralLM : : <search>$(with-nplm)/src ; + obj nplm.o : wrappers/nplm.cc : <include>.. <include>$(with-nplm)/src <cxxflags>-fopenmp ; + alias nplm : nplm.o neuralLM ..//boost_thread : : : <cxxflags>-fopenmp <linkflags>-fopenmp <define>WITH_NPLM <library>..//boost_thread ; + wrappers += nplm ; +} + +fakelib kenlm : $(wrappers) [ glob *.cc : *main.cc *test.cc ] ../util//kenutil : <include>.. $(max-order) : : <include>.. $(max-order) ; import testing ; |