diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/c++tokenizer/Jamfile | 17 |
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 ; +} + |