Skip to content

Commit

Permalink
Jamfile for tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuhoang committed Jan 25, 2015
1 parent 55f6bbb commit 5d2b022
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions Jamroot
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ biconcor
contrib/server//mosesserver
mm
rephraser
contrib/c++tokenizer//tokenizer
;


Expand Down
17 changes: 13 additions & 4 deletions contrib/c++tokenizer/Jamfile
Original file line number Diff line number Diff line change
@@ -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 ;
}

0 comments on commit 5d2b022

Please sign in to comment.