From 6df49b45f5e905a4ec9114e7a6cbe484ded798ed Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 19 Oct 2019 15:38:11 +0100 Subject: Refactor to ease testing --- Jamroot.jam | 17 ++--------------- libsqlitepp/Jamfile.jam | 28 +++++++++++++++++++++++----- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/Jamroot.jam b/Jamroot.jam index 8abf946..3915cab 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 - 17 - hidden - "-Wl,-z,defs,--warn-once,--gc-sections" - release:"-flto=2" - release:"-flto=2" - debug:extra - debug:on - coverage:on - ; +feature local-dbppcore : no ; build-project libsqlitepp ; -pkg-config.import glibmm : : glibmm-2.4 ; -pkg-config.import sqlite3 : : sqlite3 ; - diff --git a/libsqlitepp/Jamfile.jam b/libsqlitepp/Jamfile.jam index 3dbe005..ca5f886 100644 --- a/libsqlitepp/Jamfile.jam +++ b/libsqlitepp/Jamfile.jam @@ -1,22 +1,40 @@ import package ; +import pkg-config ; lib adhocutil : : : : /usr/include/adhocutil ; lib dbppcore : : : : /usr/include/dbpp ; lib boost_date_time ; lib stdc++fs ; +pkg-config.import glibmm : : glibmm-2.4 ; +pkg-config.import sqlite3 : : sqlite3 ; + +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-sqlite : [ glob *.cpp ] : - ..//glibmm - ..//sqlite3 + glibmm + sqlite3 adhocutil - dbppcore + yes:../..//dbppcore + no:dbppcore boost_date_time stdc++fs : : . - ..//glibmm - dbppcore + glibmm + yes:../..//dbppcore + no:dbppcore ; build-project unittests ; -- cgit v1.2.3