diff options
-rw-r--r-- | Jamroot.jam | 17 | ||||
-rw-r--r-- | libodbcpp/Jamfile.jam | 28 | ||||
-rw-r--r-- | libodbcpp/unittests/Jamfile.jam | 3 |
3 files changed, 27 insertions, 21 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index efdd235..287129b 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -1,25 +1,12 @@ import os ; +import feature : feature ; using gcc : : [ os.environ CXX ] ; using pkg-config ; -import pkg-config ; variant coverage : debug ; -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 - ; +feature local-dbppcore : no ; build-project libodbcpp ; -pkg-config.import glibmm : : <name>glibmm-2.4 ; -pkg-config.import odbc : : <name>odbc ; - 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 ; diff --git a/libodbcpp/unittests/Jamfile.jam b/libodbcpp/unittests/Jamfile.jam index 1d9233d..457008e 100644 --- a/libodbcpp/unittests/Jamfile.jam +++ b/libodbcpp/unittests/Jamfile.jam @@ -13,7 +13,8 @@ run <define>BOOST_TEST_DYN_LINK <library>..//dbpp-odbc <library>..//adhocutil - <library>dbpptestcore + <local-dbppcore>yes:<library>../../..//dbpptestcore + <local-dbppcore>no:<library>dbpptestcore <library>boost_utf <library>stdc++fs : |