summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 15:30:24 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 21:28:31 +0000
commit62cc388a919b131c3dcd34db1e7b8d895ce1fa19 (patch)
tree0fcb76bbfe3c2b6c1c98f19cad8219570b1830a7
parentIgnore null-conversion warning in generated code (diff)
downloadlibdbpp-62cc388a919b131c3dcd34db1e7b8d895ce1fa19.tar.bz2
libdbpp-62cc388a919b131c3dcd34db1e7b8d895ce1fa19.tar.xz
libdbpp-62cc388a919b131c3dcd34db1e7b8d895ce1fa19.zip
Add libdbpp-odbc submodule
-rw-r--r--.gitmodules3
-rw-r--r--libdbpp/unittests/Jamfile.jam32
m---------libdbpp/unittests/libdbpp-odbc0
3 files changed, 35 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 502fbf9..c2332fd 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,3 +7,6 @@
[submodule "libdbpp/unittests/libdbpp-sqlite"]
path = libdbpp/unittests/libdbpp-sqlite
url = ssh://git.randomdan.homeip.net/var/git/libdbpp-sqlite
+[submodule "libdbpp/unittests/libdbpp-odbc"]
+ path = libdbpp/unittests/libdbpp-odbc
+ url = ssh://git.randomdan.homeip.net/var/git/libdbpp-odbc
diff --git a/libdbpp/unittests/Jamfile.jam b/libdbpp/unittests/Jamfile.jam
index 3bbd473..805863e 100644
--- a/libdbpp/unittests/Jamfile.jam
+++ b/libdbpp/unittests/Jamfile.jam
@@ -8,6 +8,7 @@ lib pq : : : :
;
lib mysqlclient : : : : <include>/usr/include/mysql ;
lib libsqlite : : <name>sqlite3 ;
+lib odbc ;
lib boost_date_time ;
lib boost_system ;
lib boost_utf : : <name>boost_unit_test_framework : : <toolset>tidy:<xcheckxx>hicpp-* ;
@@ -92,6 +93,21 @@ lib dbpp-local-sqlite :
<library>..//dbppcore
;
+lib dbpp-local-odbc :
+ [ glob libdbpp-odbc/libodbcpp/*.cpp ] :
+ <library>../..//glibmm
+ <library>odbc
+ <library>..//adhocutil
+ <library>..//dbppcore
+ <library>boost_date_time
+ <library>boost_system
+ <toolset>tidy:<xcheckxx>hicpp-signed-bitwise
+ : :
+ <include>libdbpp-odbc/libodbcpp
+ <library>../..//glibmm
+ <library>..//dbppcore
+ ;
+
run
testPatch.cpp
: :
@@ -197,3 +213,19 @@ run
<library>..//stdc++fs
<library>boost_system
;
+
+run
+ libdbpp-odbc/libodbcpp/unittests/testodbc.cpp
+ : :
+ libdbpp-odbc/libodbcpp/unittests/odbcschema.sql
+ :
+ <define>ROOT=\"$(me)/libdbpp-odbc/libodbcpp/unittests\"
+ <define>BOOST_TEST_DYN_LINK
+ <library>dbpp-local-odbc
+ <library>..//dbpptestcore
+ <library>..//adhocutil
+ <library>boost_utf
+ <library>..//stdc++fs
+ <library>boost_system
+ ;
+
diff --git a/libdbpp/unittests/libdbpp-odbc b/libdbpp/unittests/libdbpp-odbc
new file mode 160000
+Subproject 881033464c13398f78be306d8d785616f094789