From 7ddb134eed67e1490db8752e5f66daedb6ca3482 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 19 Oct 2019 15:37:38 +0100 Subject: Refactor to ease testing --- libmysqlpp/Jamfile.jam | 30 ++++++++++++++++++++++++------ libmysqlpp/unittests/Jamfile.jam | 3 ++- 2 files changed, 26 insertions(+), 7 deletions(-) (limited to 'libmysqlpp') 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 : : : : /usr/include/adhocutil ; lib dbppcore : : : : /usr/include/dbpp ; lib boost_date_time ; +pkg-config.import glibmm : : glibmm-2.4 ; +pkg-config.import mysqlclient ; + +project + : requirements + 17 + hidden + "-Wl,-z,defs,--warn-once,--gc-sections" + release:"-flto=2" + release:"-flto=2" + debug:extra + debug:on + coverage:on + ; + lib dbpp-mysql : [ glob my-*.cpp ] : - ..//glibmm - ..//mysqlclient - dbppcore + glibmm + mysqlclient + yes:../..//dbppcore + no:dbppcore adhocutil boost_date_time : : . - ..//mysqlclient - ..//glibmm - dbppcore + mysqlclient + glibmm + yes:../..//dbppcore + no: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 ROOT=\"$(me)\" BOOST_TEST_DYN_LINK ..//dbpp-mysql - dbpptestcore + yes:../../..//dbpptestcore + no:dbpptestcore ..//adhocutil boost_utf stdc++fs -- cgit v1.2.3