Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-01-25 17:00:35 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-01-25 17:00:35 +0300
commit5d2b0224d6dde00a1d63031f0099142e6d2af802 (patch)
treeebfd31601680ef686fe6d0effc27a3fa3d7751a3 /contrib
parent55f6bbb14ae40bdf67058aa33d12978a86c53c85 (diff)
Jamfile for tokenizer
Diffstat (limited to 'contrib')
-rw-r--r--contrib/c++tokenizer/Jamfile17
1 files changed, 13 insertions, 4 deletions
diff --git a/contrib/c++tokenizer/Jamfile b/contrib/c++tokenizer/Jamfile
index 78b2dd531..55bc3e4e0 100644
--- a/contrib/c++tokenizer/Jamfile
+++ b/contrib/c++tokenizer/Jamfile
@@ -1,4 +1,13 @@
-external-lib re2 ;
-external-lib glib-2.0 ;
-glib-cflags = [ _shell "pkg-config --cflags glib-2.0" ] ;
-exe tokenizer : tokenizer.cpp tokenizer_main.cpp re2 glib-2.0 : <cflags>-std=c++11 <cflags>$(glib-cflags) ;
+
+with-re2 = [ option.get "with-re2" ] ;
+if $(with-re2) {
+ lib re2 : : <search>$(with-re2)/lib ;
+ external-lib glib-2.0 ;
+ glib-cflags = [ _shell "pkg-config --cflags glib-2.0" ] ;
+ includes += <include>$(with-re2)/include ;
+ exe tokenizer : tokenizer.cpp tokenizer_main.cpp re2 glib-2.0 : <cflags>-std=c++11 <cflags>$(glib-cflags) $(includes) ;
+}
+else {
+ alias tokenizer ;
+}
+