diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-19 15:37:38 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-19 15:37:38 +0100 |
commit | 7ddb134eed67e1490db8752e5f66daedb6ca3482 (patch) | |
tree | 2a501c096893f3961f55f5180e00ad58a32182a6 /libmysqlpp | |
parent | Fix literal booleans (diff) | |
download | libdbpp-mysql-7ddb134eed67e1490db8752e5f66daedb6ca3482.tar.bz2 libdbpp-mysql-7ddb134eed67e1490db8752e5f66daedb6ca3482.tar.xz libdbpp-mysql-7ddb134eed67e1490db8752e5f66daedb6ca3482.zip |
Refactor to ease testing
Diffstat (limited to 'libmysqlpp')
-rw-r--r-- | libmysqlpp/Jamfile.jam | 30 | ||||
-rw-r--r-- | libmysqlpp/unittests/Jamfile.jam | 3 |
2 files changed, 26 insertions, 7 deletions
diff --git a/libmysqlpp/Jamfile.jam b/libmysqlpp/Jamfile.jam index 486f77b..6a558fa 100644 --- a/libmysqlpp/Jamfile.jam +++ b/libmysqlpp/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 ; +pkg-config.import glibmm : : <name>glibmm-2.4 ; +pkg-config.import mysqlclient ; + +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-mysql : [ glob my-*.cpp ] : - <library>..//glibmm - <library>..//mysqlclient - <library>dbppcore + <library>glibmm + <library>mysqlclient + <local-dbppcore>yes:<library>../..//dbppcore + <local-dbppcore>no:<library>dbppcore <library>adhocutil <library>boost_date_time : : <include>. - <library>..//mysqlclient - <library>..//glibmm - <library>dbppcore + <library>mysqlclient + <library>glibmm + <local-dbppcore>yes:<library>../..//dbppcore + <local-dbppcore>no:<library>dbppcore ; build-project unittests ; diff --git a/libmysqlpp/unittests/Jamfile.jam b/libmysqlpp/unittests/Jamfile.jam index 8752f86..2884e82 100644 --- a/libmysqlpp/unittests/Jamfile.jam +++ b/libmysqlpp/unittests/Jamfile.jam @@ -12,7 +12,8 @@ run <define>ROOT=\"$(me)\" <define>BOOST_TEST_DYN_LINK <library>..//dbpp-mysql - <library>dbpptestcore + <local-dbppcore>yes:<library>../../..//dbpptestcore + <local-dbppcore>no:<library>dbpptestcore <library>..//adhocutil <library>boost_utf <library>stdc++fs |