summaryrefslogtreecommitdiff
path: root/libodbcpp/Jamfile.jam
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-10-19 15:37:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-10-19 15:37:51 +0100
commitafe07041f84c851abce233fc5cacbbfc269d7a01 (patch)
tree2c0a75c07dd91cf45830405b49520ecb3847d22b /libodbcpp/Jamfile.jam
parentModernize build (diff)
downloadlibdbpp-odbc-afe07041f84c851abce233fc5cacbbfc269d7a01.tar.bz2
libdbpp-odbc-afe07041f84c851abce233fc5cacbbfc269d7a01.tar.xz
libdbpp-odbc-afe07041f84c851abce233fc5cacbbfc269d7a01.zip
Refactor to ease testing
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 ;