From c883f62d87b7f6fa71bb64c060e25df8bf9d4210 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 25 Sep 2015 20:15:50 +0100 Subject: Install rules and use system dbpp --- libmysqlpp/Jamfile.jam | 18 +++++++++++++----- libmysqlpp/column.h | 2 +- libmysqlpp/command.h | 2 +- libmysqlpp/connection.h | 2 +- libmysqlpp/error.h | 2 +- libmysqlpp/modifycommand.h | 2 +- libmysqlpp/selectcommand.h | 2 +- libmysqlpp/unittests/Jamfile.jam | 7 ++++++- libmysqlpp/unittests/testmysql.cpp | 6 +++--- 9 files changed, 28 insertions(+), 15 deletions(-) (limited to 'libmysqlpp') diff --git a/libmysqlpp/Jamfile.jam b/libmysqlpp/Jamfile.jam index 8d6d2f6..3776f3d 100644 --- a/libmysqlpp/Jamfile.jam +++ b/libmysqlpp/Jamfile.jam @@ -1,3 +1,4 @@ +import package ; alias glibmm : : : : "`pkg-config --cflags glibmm-2.4`" "`pkg-config --libs glibmm-2.4`" @@ -5,26 +6,33 @@ alias glibmm : : : : lib mysql ; lib adhocutil : : : : /usr/include/adhocutil ; +lib dbppcore : : : : /usr/include/dbpp ; +lib boost_date_time ; +lib boost_system ; alias libmysql : : : : "`mysql_config --include`" "`mysql_config --libs`" ; - + lib dbpp-mysql : [ glob *.cpp ] : - glibmm + glibmm libmysql - ../libdbpp + dbppcore adhocutil + boost_date_time + boost_system -fvisibility=hidden release:-flto : : . "-I`mysql_config --include`" - glibmm - ../libdbpp + glibmm + dbppcore ; build-project unittests ; +package.install install : . : : dbpp-mysql : [ glob *.h ] ; + diff --git a/libmysqlpp/column.h b/libmysqlpp/column.h index 6146f53..38f4f39 100644 --- a/libmysqlpp/column.h +++ b/libmysqlpp/column.h @@ -1,7 +1,7 @@ #ifndef MY_COLUMN_H #define MY_COLUMN_H -#include "../libdbpp/column.h" +#include #include namespace MySQL { diff --git a/libmysqlpp/command.h b/libmysqlpp/command.h index 72828e0..2de1b85 100644 --- a/libmysqlpp/command.h +++ b/libmysqlpp/command.h @@ -1,7 +1,7 @@ #ifndef MY_COMMAND_H #define MY_COMMAND_H -#include "../libdbpp/command.h" +#include #include #include diff --git a/libmysqlpp/connection.h b/libmysqlpp/connection.h index 5b6fa79..69377a4 100644 --- a/libmysqlpp/connection.h +++ b/libmysqlpp/connection.h @@ -1,7 +1,7 @@ #ifndef MY_CONNECTION_H #define MY_CONNECTION_H -#include "../libdbpp/connection.h" +#include #include "error.h" #include #include diff --git a/libmysqlpp/error.h b/libmysqlpp/error.h index 9ab666b..b4f93b2 100644 --- a/libmysqlpp/error.h +++ b/libmysqlpp/error.h @@ -1,7 +1,7 @@ #ifndef MY_ERROR_H #define MY_ERROR_H -#include "../libdbpp/error.h" +#include namespace MySQL { class Error : public DB::Error { diff --git a/libmysqlpp/modifycommand.h b/libmysqlpp/modifycommand.h index 27c4620..abb3507 100644 --- a/libmysqlpp/modifycommand.h +++ b/libmysqlpp/modifycommand.h @@ -1,7 +1,7 @@ #ifndef MY_MODIFYCOMMAND_H #define MY_MODIFYCOMMAND_H -#include "../libdbpp/modifycommand.h" +#include #include "command.h" namespace MySQL { diff --git a/libmysqlpp/selectcommand.h b/libmysqlpp/selectcommand.h index 58c569b..d145ce8 100644 --- a/libmysqlpp/selectcommand.h +++ b/libmysqlpp/selectcommand.h @@ -1,7 +1,7 @@ #ifndef MY_SELECTCOMMAND_H #define MY_SELECTCOMMAND_H -#include "../libdbpp/selectcommand.h" +#include #include "command.h" namespace MySQL { diff --git a/libmysqlpp/unittests/Jamfile.jam b/libmysqlpp/unittests/Jamfile.jam index 3e7b030..ed3e78e 100644 --- a/libmysqlpp/unittests/Jamfile.jam +++ b/libmysqlpp/unittests/Jamfile.jam @@ -3,6 +3,9 @@ import testing ; path-constant me : . ; lib boost_utf : : boost_unit_test_framework ; +lib boost_filesystem ; +lib boost_system ; +lib dbpptestcore : : : : /usr/include/dbpp ; run testmysql.cpp @@ -10,8 +13,10 @@ run ROOT=\"$(me)\" BOOST_TEST_DYN_LINK ..//dbpp-mysql - ../../libdbpp//dbpptestcore + dbpptestcore boost_utf + boost_system + boost_filesystem : testmysql ; diff --git a/libmysqlpp/unittests/testmysql.cpp b/libmysqlpp/unittests/testmysql.cpp index 6e915c0..bcbe528 100644 --- a/libmysqlpp/unittests/testmysql.cpp +++ b/libmysqlpp/unittests/testmysql.cpp @@ -3,9 +3,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include -- cgit v1.2.3