summaryrefslogtreecommitdiff
path: root/libodbcpp/Jamfile.jam
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/Jamfile.jam')
-rw-r--r--libodbcpp/Jamfile.jam28
1 files changed, 23 insertions, 5 deletions
diff --git a/libodbcpp/Jamfile.jam b/libodbcpp/Jamfile.jam
index bc80fd4..6c2f9b3 100644
--- a/libodbcpp/Jamfile.jam
+++ b/libodbcpp/Jamfile.jam
@@ -1,21 +1,39 @@
import package ;
+import pkg-config ;
lib adhocutil : : : : <include>/usr/include/adhocutil ;
lib dbppcore : : : : <include>/usr/include/dbpp ;
lib boost_date_time ;
lib boost_system ;
+pkg-config.import glibmm : : <name>glibmm-2.4 ;
+pkg-config.import odbc : : <name>odbc ;
+
+project
+ : requirements
+ <cxxstd>17
+ <visibility>hidden
+ <linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
+ <variant>release:<cxxflags>"-flto=2"
+ <variant>release:<linkflags>"-flto=2"
+ <variant>debug:<warnings>extra
+ <variant>debug:<warnings-as-errors>on
+ <variant>coverage:<coverage>on
+ ;
+
lib dbpp-odbc :
[ glob *.cpp ] :
- <library>..//glibmm
- <library>..//odbc
+ <library>glibmm
+ <library>odbc
<library>adhocutil
- <library>dbppcore
+ <local-dbppcore>yes:<library>../..//dbppcore
+ <local-dbppcore>no:<library>dbppcore
<library>boost_date_time
: :
<include>.
- <library>..//glibmm
- <library>dbppcore
+ <local-dbppcore>yes:<library>../..//dbppcore
+ <local-dbppcore>no:<library>dbppcore
+ <library>glibmm
;
build-project unittests ;