summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-05-07 16:26:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-05-07 16:26:41 +0300
commit0bd6524e3258faee44acedf758ccfbcd55368fc2 (patch)
tree80b236d64bd1247a3c083eb818fadb960bb43006
parentd22e4b44f3e543d3f1587c227e101e6ee918612f (diff)
Turn odb-examples repository into package for muti-package repositoryodb-examples
-rw-r--r--.gitignore23
-rw-r--r--INSTALL163
-rw-r--r--INSTALL-GIT78
-rw-r--r--Makefile.am23
-rw-r--r--NEWS1
-rw-r--r--README97
-rw-r--r--access/makefile125
-rw-r--r--boost/boost-vc10.vcxproj174
-rw-r--r--boost/boost-vc10.vcxproj.filters25
-rw-r--r--boost/boost-vc11.vcxproj178
-rw-r--r--boost/boost-vc11.vcxproj.filters25
-rw-r--r--boost/boost-vc12.vcxproj182
-rw-r--r--boost/boost-vc12.vcxproj.filters25
-rw-r--r--boost/boost-vc8.vcproj350
-rw-r--r--boost/boost-vc9.vcproj357
-rw-r--r--boost/makefile151
-rwxr-xr-xbootstrap16
-rw-r--r--build/bootstrap.make173
-rw-r--r--build/configuration-rules.make18
-rw-r--r--build/configuration.make33
-rwxr-xr-xbuild/configure34
-rw-r--r--build/import/libboost/configuration-rules.make13
-rwxr-xr-xbuild/import/libboost/configure72
-rw-r--r--build/import/libboost/date-time/rules.make49
-rw-r--r--build/import/libboost/date-time/stub.make34
-rw-r--r--build/import/libboost/header-only/rules.make16
-rw-r--r--build/import/libboost/header-only/stub.make26
-rw-r--r--build/import/libboost/version1
-rw-r--r--build/import/libodb-boost/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-boost/configure53
-rw-r--r--build/import/libodb-boost/stub.make28
-rw-r--r--build/import/libodb-mssql/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-mssql/configure53
-rw-r--r--build/import/libodb-mssql/stub.make28
-rw-r--r--build/import/libodb-mysql/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-mysql/configure53
-rw-r--r--build/import/libodb-mysql/stub.make28
-rw-r--r--build/import/libodb-oracle/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-oracle/configure53
-rw-r--r--build/import/libodb-oracle/stub.make28
-rw-r--r--build/import/libodb-pgsql/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-pgsql/configure53
-rw-r--r--build/import/libodb-pgsql/stub.make28
-rw-r--r--build/import/libodb-qt/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-qt/configure53
-rw-r--r--build/import/libodb-qt/stub.make28
-rw-r--r--build/import/libodb-sqlite/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-sqlite/configure53
-rw-r--r--build/import/libodb-sqlite/stub.make28
-rw-r--r--build/import/libodb/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb/configure53
-rw-r--r--build/import/libodb/stub.make28
-rw-r--r--build/import/libqt/configuration-rules.make13
-rwxr-xr-xbuild/import/libqt/configure97
-rw-r--r--build/import/libqt/core/rules.make26
-rw-r--r--build/import/libqt/core/stub.make35
-rw-r--r--build/import/libqt/version1
-rw-r--r--build/import/odb/configuration-rules.make13
-rwxr-xr-xbuild/import/odb/configure53
-rw-r--r--build/import/odb/hxx-cxx.make127
-rw-r--r--build/import/odb/stub.make28
-rwxr-xr-xbuild/mssql/configure52
-rwxr-xr-xbuild/mssql/mssql51
-rwxr-xr-xbuild/mysql/configure75
-rwxr-xr-xbuild/mysql/mysql57
-rwxr-xr-xbuild/oracle/configure97
-rwxr-xr-xbuild/oracle/oracle80
-rwxr-xr-xbuild/pgsql/configure63
-rwxr-xr-xbuild/pgsql/pgsql53
-rwxr-xr-xbuild/sqlite/configure20
-rw-r--r--c++11/makefile139
-rw-r--r--composite/makefile125
-rw-r--r--configure.ac106
-rw-r--r--container/makefile125
-rw-r--r--hello/makefile124
-rw-r--r--inheritance/polymorphism/makefile126
-rw-r--r--inheritance/reuse/makefile125
-rw-r--r--inverse/makefile126
-rw-r--r--m4/acx-pthread.m4259
-rw-r--r--m4/c++11.m437
-rw-r--r--m4/database.m459
-rw-r--r--m4/libboost.m4184
-rw-r--r--m4/libodb-boost.m482
-rw-r--r--m4/libodb-mssql.m482
-rw-r--r--m4/libodb-mysql.m482
-rw-r--r--m4/libodb-oracle.m482
-rw-r--r--m4/libodb-pgsql.m482
-rw-r--r--m4/libodb-qt.m482
-rw-r--r--m4/libodb-sqlite.m482
-rw-r--r--m4/libodb.m481
-rw-r--r--m4/libqt.m4121
-rw-r--r--m4/libtool-link.m445
-rw-r--r--m4/mssql.m4224
-rw-r--r--m4/mysql.m4270
-rw-r--r--m4/odb.m443
-rw-r--r--m4/oracle.m4243
-rw-r--r--m4/pgsql.m4204
-rw-r--r--m4/sqlite.m459
-rw-r--r--m4/threads.m468
-rw-r--r--m4/tr1-memory.m438
-rw-r--r--makefile88
-rw-r--r--mapping/makefile127
-rw-r--r--mssql-driver.bat61
-rw-r--r--mssql.options10
-rw-r--r--mysql-driver.bat46
-rw-r--r--mysql.options10
-rw-r--r--odb-examples/.gitignore39
-rw-r--r--odb-examples/GPLv2 (renamed from GPLv2)0
-rw-r--r--odb-examples/LICENSE (renamed from LICENSE)0
-rw-r--r--odb-examples/README.md102
-rw-r--r--odb-examples/access/README (renamed from access/README)2
-rw-r--r--odb-examples/access/buildfile44
-rw-r--r--odb-examples/access/database.hxx (renamed from access/database.hxx)15
-rw-r--r--odb-examples/access/driver.cxx (renamed from access/driver.cxx)4
-rw-r--r--odb-examples/access/person.hxx (renamed from access/person.hxx)0
-rw-r--r--odb-examples/access/testscript13
-rw-r--r--odb-examples/boost/README (renamed from boost/README)0
-rw-r--r--odb-examples/boost/database.hxx (renamed from boost/database.hxx)0
-rw-r--r--odb-examples/boost/driver.cxx (renamed from boost/driver.cxx)0
-rw-r--r--odb-examples/boost/employee.hxx (renamed from boost/employee.hxx)0
-rw-r--r--odb-examples/build/.gitignore3
-rw-r--r--odb-examples/build/bootstrap.build9
-rw-r--r--odb-examples/build/root.build274
-rw-r--r--odb-examples/buildfile6
-rw-r--r--odb-examples/c++11/README (renamed from c++11/README)16
-rw-r--r--odb-examples/c++11/buildfile44
-rw-r--r--odb-examples/c++11/database.hxx (renamed from c++11/database.hxx)3
-rw-r--r--odb-examples/c++11/driver.cxx (renamed from c++11/driver.cxx)0
-rw-r--r--odb-examples/c++11/employee.hxx (renamed from c++11/employee.hxx)2
-rw-r--r--odb-examples/c++11/testscript13
-rw-r--r--odb-examples/composite/README (renamed from composite/README)2
-rw-r--r--odb-examples/composite/buildfile44
-rw-r--r--odb-examples/composite/database.hxx (renamed from composite/database.hxx)15
-rw-r--r--odb-examples/composite/driver.cxx (renamed from composite/driver.cxx)10
-rw-r--r--odb-examples/composite/person.hxx (renamed from composite/person.hxx)0
-rw-r--r--odb-examples/composite/testscript13
-rw-r--r--odb-examples/container/README (renamed from container/README)2
-rw-r--r--odb-examples/container/buildfile43
-rw-r--r--odb-examples/container/database.hxx (renamed from container/database.hxx)15
-rw-r--r--odb-examples/container/driver.cxx (renamed from container/driver.cxx)8
-rw-r--r--odb-examples/container/person.hxx (renamed from container/person.hxx)0
-rw-r--r--odb-examples/container/testscript13
-rw-r--r--odb-examples/database-options.testscript148
-rw-r--r--odb-examples/hello/README (renamed from hello/README)2
-rw-r--r--odb-examples/hello/buildfile44
-rw-r--r--odb-examples/hello/database.hxx (renamed from hello/database.hxx)15
-rw-r--r--odb-examples/hello/driver.cxx (renamed from hello/driver.cxx)8
-rw-r--r--odb-examples/hello/person.hxx (renamed from hello/person.hxx)0
-rw-r--r--odb-examples/hello/testscript13
-rw-r--r--odb-examples/inheritance/polymorphism/README (renamed from inheritance/polymorphism/README)2
-rw-r--r--odb-examples/inheritance/polymorphism/buildfile44
-rw-r--r--odb-examples/inheritance/polymorphism/database.hxx (renamed from inheritance/polymorphism/database.hxx)15
-rw-r--r--odb-examples/inheritance/polymorphism/driver.cxx (renamed from inheritance/polymorphism/driver.cxx)20
-rw-r--r--odb-examples/inheritance/polymorphism/employee.cxx (renamed from inheritance/polymorphism/employee.cxx)0
-rw-r--r--odb-examples/inheritance/polymorphism/employee.hxx (renamed from inheritance/polymorphism/employee.hxx)0
-rw-r--r--odb-examples/inheritance/polymorphism/testscript13
-rw-r--r--odb-examples/inheritance/reuse/README (renamed from inheritance/reuse/README)2
-rw-r--r--odb-examples/inheritance/reuse/buildfile44
-rw-r--r--odb-examples/inheritance/reuse/database.hxx (renamed from inheritance/reuse/database.hxx)15
-rw-r--r--odb-examples/inheritance/reuse/driver.cxx (renamed from inheritance/reuse/driver.cxx)6
-rw-r--r--odb-examples/inheritance/reuse/employee.hxx (renamed from inheritance/reuse/employee.hxx)0
-rw-r--r--odb-examples/inheritance/reuse/testscript13
-rw-r--r--odb-examples/inverse/README (renamed from inverse/README)10
-rw-r--r--odb-examples/inverse/buildfile46
-rw-r--r--odb-examples/inverse/database.hxx (renamed from inverse/database.hxx)15
-rw-r--r--odb-examples/inverse/driver.cxx (renamed from inverse/driver.cxx)6
-rw-r--r--odb-examples/inverse/employee.hxx (renamed from inverse/employee.hxx)39
-rw-r--r--odb-examples/inverse/testscript13
-rw-r--r--odb-examples/manifest98
-rw-r--r--odb-examples/mapping/README (renamed from mapping/README)2
-rw-r--r--odb-examples/mapping/buildfile45
-rw-r--r--odb-examples/mapping/database.hxx (renamed from mapping/database.hxx)15
-rw-r--r--odb-examples/mapping/driver.cxx (renamed from mapping/driver.cxx)4
-rw-r--r--odb-examples/mapping/person.hxx (renamed from mapping/person.hxx)0
-rw-r--r--odb-examples/mapping/testscript13
-rw-r--r--odb-examples/mapping/traits-mssql.hxx (renamed from mapping/traits-mssql.hxx)0
-rw-r--r--odb-examples/mapping/traits-mysql.hxx (renamed from mapping/traits-mysql.hxx)0
-rw-r--r--odb-examples/mapping/traits-oracle.hxx (renamed from mapping/traits-oracle.hxx)0
-rw-r--r--odb-examples/mapping/traits-pgsql.hxx (renamed from mapping/traits-pgsql.hxx)0
-rw-r--r--odb-examples/mapping/traits-sqlite.hxx (renamed from mapping/traits-sqlite.hxx)0
-rw-r--r--odb-examples/mapping/traits.hxx (renamed from mapping/traits.hxx)0
-rw-r--r--odb-examples/mssql-schema.testscript6
-rw-r--r--odb-examples/mssql.testscript12
-rw-r--r--odb-examples/mysql-schema.testscript9
-rw-r--r--odb-examples/mysql.testscript12
-rw-r--r--odb-examples/optimistic/README (renamed from optimistic/README)2
-rw-r--r--odb-examples/optimistic/buildfile43
-rw-r--r--odb-examples/optimistic/database.hxx (renamed from optimistic/database.hxx)15
-rw-r--r--odb-examples/optimistic/driver.cxx (renamed from optimistic/driver.cxx)4
-rw-r--r--odb-examples/optimistic/person.hxx (renamed from optimistic/person.hxx)0
-rw-r--r--odb-examples/optimistic/testscript13
-rw-r--r--odb-examples/oracle-schema.testscript6
-rw-r--r--odb-examples/oracle.testscript12
-rw-r--r--odb-examples/pgsql-schema.testscript6
-rw-r--r--odb-examples/pgsql.testscript12
-rw-r--r--odb-examples/pimpl/README (renamed from pimpl/README)2
-rw-r--r--odb-examples/pimpl/buildfile44
-rw-r--r--odb-examples/pimpl/database.hxx (renamed from pimpl/database.hxx)15
-rw-r--r--odb-examples/pimpl/driver.cxx (renamed from pimpl/driver.cxx)4
-rw-r--r--odb-examples/pimpl/person.cxx (renamed from pimpl/person.cxx)0
-rw-r--r--odb-examples/pimpl/person.hxx (renamed from pimpl/person.hxx)0
-rw-r--r--odb-examples/pimpl/testscript13
-rw-r--r--odb-examples/prepared/README (renamed from prepared/README)4
-rw-r--r--odb-examples/prepared/buildfile45
-rw-r--r--odb-examples/prepared/database.hxx (renamed from prepared/database.hxx)15
-rw-r--r--odb-examples/prepared/driver.cxx (renamed from prepared/driver.cxx)28
-rw-r--r--odb-examples/prepared/person.hxx (renamed from prepared/person.hxx)0
-rw-r--r--odb-examples/prepared/testscript13
-rw-r--r--odb-examples/qt/README (renamed from qt/README)0
-rw-r--r--odb-examples/qt/database.hxx (renamed from qt/database.hxx)0
-rw-r--r--odb-examples/qt/driver.cxx (renamed from qt/driver.cxx)0
-rw-r--r--odb-examples/qt/employee.hxx (renamed from qt/employee.hxx)0
-rw-r--r--odb-examples/query/README (renamed from query/README)2
-rw-r--r--odb-examples/query/buildfile44
-rw-r--r--odb-examples/query/database.hxx (renamed from query/database.hxx)15
-rw-r--r--odb-examples/query/driver.cxx (renamed from query/driver.cxx)10
-rw-r--r--odb-examples/query/person.hxx (renamed from query/person.hxx)0
-rw-r--r--odb-examples/query/testscript13
-rw-r--r--odb-examples/relationship/README (renamed from relationship/README)10
-rw-r--r--odb-examples/relationship/buildfile46
-rw-r--r--odb-examples/relationship/database.hxx (renamed from relationship/database.hxx)15
-rw-r--r--odb-examples/relationship/driver.cxx (renamed from relationship/driver.cxx)8
-rw-r--r--odb-examples/relationship/employee.hxx (renamed from relationship/employee.hxx)18
-rw-r--r--odb-examples/relationship/testscript13
-rw-r--r--odb-examples/schema/custom/README (renamed from schema/custom/README)10
-rw-r--r--odb-examples/schema/custom/buildfile44
-rw-r--r--odb-examples/schema/custom/database.hxx (renamed from schema/custom/database.hxx)15
-rw-r--r--odb-examples/schema/custom/driver.cxx (renamed from schema/custom/driver.cxx)6
-rw-r--r--odb-examples/schema/custom/employee.hxx (renamed from schema/custom/employee.hxx)16
-rw-r--r--odb-examples/schema/custom/testscript13
-rw-r--r--odb-examples/schema/embedded/README (renamed from schema/embedded/README)2
-rw-r--r--odb-examples/schema/embedded/buildfile42
-rw-r--r--odb-examples/schema/embedded/database.hxx (renamed from schema/embedded/database.hxx)15
-rw-r--r--odb-examples/schema/embedded/driver.cxx (renamed from schema/embedded/driver.cxx)4
-rw-r--r--odb-examples/schema/embedded/person.hxx (renamed from schema/embedded/person.hxx)0
-rw-r--r--odb-examples/schema/embedded/testscript9
-rw-r--r--odb-examples/section/README (renamed from section/README)2
-rw-r--r--odb-examples/section/buildfile43
-rw-r--r--odb-examples/section/database.hxx (renamed from section/database.hxx)15
-rw-r--r--odb-examples/section/driver.cxx (renamed from section/driver.cxx)12
-rw-r--r--odb-examples/section/person.hxx (renamed from section/person.hxx)0
-rw-r--r--odb-examples/section/testscript13
-rw-r--r--odb-examples/sqlite-schema.testscript5
-rw-r--r--odb-examples/sqlite.testscript10
-rw-r--r--odb-examples/view/README (renamed from view/README)14
-rw-r--r--odb-examples/view/buildfile46
-rw-r--r--odb-examples/view/database.hxx (renamed from view/database.hxx)15
-rw-r--r--odb-examples/view/driver.cxx (renamed from view/driver.cxx)6
-rw-r--r--odb-examples/view/employee.hxx (renamed from view/employee.hxx)34
-rw-r--r--odb-examples/view/testscript13
-rw-r--r--optimistic/makefile125
-rw-r--r--oracle-driver.bat42
-rw-r--r--oracle.options9
-rw-r--r--pgsql-driver.bat50
-rw-r--r--pgsql.options10
-rw-r--r--pimpl/makefile126
-rw-r--r--prepared/makefile125
-rw-r--r--qt/makefile168
-rw-r--r--qt/qt4-vc10.vcxproj174
-rw-r--r--qt/qt4-vc10.vcxproj.filters25
-rw-r--r--qt/qt4-vc11.vcxproj178
-rw-r--r--qt/qt4-vc11.vcxproj.filters25
-rw-r--r--qt/qt4-vc12.vcxproj182
-rw-r--r--qt/qt4-vc12.vcxproj.filters25
-rw-r--r--qt/qt4-vc8.vcproj350
-rw-r--r--qt/qt4-vc9.vcproj357
-rw-r--r--qt/qt5-vc10.vcxproj174
-rw-r--r--qt/qt5-vc10.vcxproj.filters25
-rw-r--r--qt/qt5-vc11.vcxproj178
-rw-r--r--qt/qt5-vc11.vcxproj.filters25
-rw-r--r--qt/qt5-vc12.vcxproj182
-rw-r--r--qt/qt5-vc12.vcxproj.filters25
-rw-r--r--qt/qt5-vc9.vcproj357
-rw-r--r--query/makefile125
-rw-r--r--relationship/makefile126
-rw-r--r--schema/custom/makefile123
-rw-r--r--schema/embedded/makefile124
-rw-r--r--section/makefile124
-rw-r--r--sqlite-driver.bat2
-rw-r--r--sqlite.options5
-rw-r--r--template-vc10.sln15
-rw-r--r--template-vc11.sln15
-rw-r--r--template-vc12.sln17
-rw-r--r--template-vc8.sln15
-rw-r--r--template-vc9.sln15
-rw-r--r--template/Makefile.am50
-rw-r--r--template/database.hxx94
-rw-r--r--template/driver.cxx38
-rw-r--r--template/makefile125
-rw-r--r--template/person.hxx53
-rw-r--r--template/template-vc10.vcxproj174
-rw-r--r--template/template-vc10.vcxproj.filters25
-rw-r--r--template/template-vc11.vcxproj178
-rw-r--r--template/template-vc11.vcxproj.filters25
-rw-r--r--template/template-vc12.vcxproj182
-rw-r--r--template/template-vc12.vcxproj.filters25
-rw-r--r--template/template-vc8.vcproj350
-rw-r--r--template/template-vc9.vcproj357
-rw-r--r--test.bat79
-rw-r--r--tester.bat41
-rwxr-xr-xtester.in27
-rw-r--r--version1
-rw-r--r--view/makefile125
303 files changed, 2067 insertions, 13924 deletions
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 8d08e72..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# Compiler/linker output.
-#
-*.o
-*.o.d
-*.so
-*.a
-*.l
-*.l.cpp-options
-
-# Generated documentation.
-#
-*.pdf
-*.ps
-
-# Generated build system files.
-#
-*-dynamic.make
-build/*.options
-build/*-driver
-
-# Generated .gitignore files.
-#
-.gitignore
diff --git a/INSTALL b/INSTALL
deleted file mode 100644
index 7f4cad7..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,163 +0,0 @@
-In this document we use <database> to refer to the name of the database
-system you would like to use. Valid values for <database> are:
-
- 'mysql' - The MySQL database system
- 'sqlite' - The SQLite database system
- 'pgsql' - The PostgreSQL database system
- 'oracle' - The Oracle database system
- 'mssql' - The Microsoft SQL Server database system
-
-Prerequisites
-=============
-
-Required:
- - odb http://www.codesynthesis.com/products/odb/
- - libodb http://www.codesynthesis.com/products/odb/
- - libodb-<database> http://www.codesynthesis.com/products/odb/
-
-Optional:
- - libodb-boost http://www.codesynthesis.com/products/odb/
- - Boost http://www.boost.org
- - libodb-qt http://www.codesynthesis.com/products/odb/
- - Qt http://qt.nokia.com
-
-Building on UNIX
-================
-
-The following build instructions are for the Linux/UNIX/Mac OS X
-operating systems as well as for Cygwin and MinGW on Windows.
-
-The standard autotools-based build system is used on these platforms.
-After unpacking the source code archive, change to the odb-examples
-package directory (referred to as odb-examples/ from now on) and run
-the configure script, for example:
-
-./configure --with-database=<database>
-
-To see the available configuration options run configure with --help:
-
-./configure --help
-
-The required --database option specifies the database system you would
-like to use.
-
-The configure script expects the directory where the ODB compiler
-binary is installed to be in the executable search path (the PATH
-environment variable). If that's not the case, you can use the ODB
-configure variable to specify the path to the ODB compiler, for
-example:
-
-./configure ODB=/opt/odb/bin/odb
-
-If the ODB compiler is not installed and you would like to run it from
-its build directory instead, you can use the --with-odb configure option
-to specify the build directory, for example:
-
-./configure --with-odb=/tmp/odb
-
-The configure script also expects the libodb and libodb-<database>
-headers and libraries to be installed in a directory where the C++
-compiler and linker will search for them by default (normally /usr
-and /usr/local). If these libraries are installed in other directories,
-you can use the CPPFLAGS and LDFLAGS configure variables to specify
-their locations, for example:
-
-./configure CPPFLAGS=-I/opt/libodb/include LDFLAGS=-L/opt/libodb/lib
-
-If these libraries are not installed and you would like to use their
-build directories instead, you can use the --with-libodb and
---with-libodb-<database> configure options to specify their locations,
-for example:
-
-./configure --with-libodb=/tmp/libodb
-
-If you would also like to build the boost example, then the configure
-script should be able to find headers and libraries for libodb-boost
-and Boost. Similarly, if you would like to build the qt example, then
-the configure script should be able to find headers and libraries for
-libodb-qt and Qt. The same mechanisms as described above can be used
-to specify locations of these libraries if they cannot be discovered
-automatically.
-
-For each <database> value the configure script has a set of options in
-the form --with-<database>-* that allow you to specify various database
-system parameters, such as the login name, password, and database name,
-that should be used when running the examples. Run configure with --help
-to see the available options for your database.
-
-As another example, the following configure command uses the specified
-C++ compiler and compiles with optimization and without debug information:
-
-./configure CXX=g++-4.5 CXXFLAGS=-O3
-
-If you would like to build the 'c++11' example as well as other examples
-in the C++11 mode, then you will need to pass the necessary options to
-turn the C++ compiler into this mode. For example:
-
-./configure CXXFLAGS=-std=c++0x
-
-Once configuration is complete, run make to build the examples:
-
-make
-
-Once the build is completed successfully, you can run each example
-manually from the command line. See the README file accompanying each
-example for more information on how to do this. Alternatively, you can
-run all the examples using the check target:
-
-make check
-
-
-Building on Windows
-===================
-
-The following build instructions are for Windows using Microsoft Visual
-Studio. If you would like to build odb-examples with GCC either using
-Cygwin or MinGW, refer to the "Building on UNIX" section above.
-
-The standard Visual Studio project and solution files are used on this
-platform. The provided project files expect the directory where the ODB
-compiler binary is installed to be in the executable search path (the
-PATH environment variable). They also expect the libodb and libodb-<database>
-header and import library directories to be in the VC++ Directories Include
-and Library search lists. See the INSTALL files in the ODB library packages
-for more information on how to setup their VC++ Directories.
-
-If you would also like to build the boost example, then the header and
-import library directories for libodb-boost and Boost must be in the VC++
-Directories Include and Library search lists. Similarly, if you would like
-to build the qt example, then the header and import library directories
-for libodb-qt and Qt must be in the VC++ Directories Include and Library
-search lists. See the INSTALL files in the ODB library packages for more
-information on how to setup their VC++ Directories. For Boost and Qt,
-refer to their documentation.
-
-To build the examples, unpack the source code archive and open the
-examples-<database>-vc<N>.sln file located in the odb-examples package
-directory (referred to as odb-examples\ from now on). Here <N> is the
-version of Visual Studio that you are using. Once the solution is open,
-select the desired build configuration (Debug or Release) and platform
-(Win32 or x64) and build the solution. Note that with Visual Studio 10
-(2010) and later the examples are built in the C++11 mode.
-
-If you would like to build the boost example (requires Boost and
-libodb-boost), also open and build the solution in the boost/
-subdirectory.
-
-If you would like to build the qt example (requires Qt and libodb-qt),
-also open and build the solution in the qt/ subdirectory.
-
-Once the build is completed successfully, you can run each example
-manually from the command line. See the README file accompanying each
-example for more information on how to do this. Alternatively, you can
-run all the examples using the test.bat batch file located in the
-odb-examples\ directory.
-
-Before you can run test.bat, you may need to adjust the database system
-parameters, such as the login name, password, and database name, that
-should be used when running the examples. To do this, edit the
-<database>.options and <database>-driver.bat files located in the
-odb-examples\ directory. Once this is done, you can run the examples by
-executing the following command from the command prompt:
-
-test.bat <database>
diff --git a/INSTALL-GIT b/INSTALL-GIT
deleted file mode 100644
index f917af5..0000000
--- a/INSTALL-GIT
+++ /dev/null
@@ -1,78 +0,0 @@
-The following instructions describe how to work with the source code that was
-checked out from the git repository.
-
-The major difference between using a released source code package and source
-code from the repository is that the former does not contain autotools-based
-makefiles or Visual Studio project files. Instead, it contains templates for
-these files as well as its own, custom build system. This build system is
-used for development as well as to automatically generate the autotools and
-Visual Studio files.
-
-This file describes how to use this build system to build the package as well
-as to create a release-ready source distribution which contains the autotools
-build system and Visual Studio project files.
-
-
-Prerequisites
-=============
-
-Besides the prerequisites listed in the INSTALL file, you will need the
-following additional packages:
-
- - GNU bash >= 2.0.0 http://www.gnu.org/software/bash/
- - GNU make >= 3.81 http://www.gnu.org/software/make/
- - build >= latest http://www.codesynthesis.com/projects/build/
-
-If you are planning to create the source code distributions, then you will
-also need the following packages:
-
- - GNU m4 >= 1.4.0 http://www.gnu.org/software/m4/
- - GNU sed >= 4.0.0 http://www.gnu.org/software/sed/
- - tofrodos >= 1.7.0 http://www.thefreecountry.com/tofrodos/
-
-As we as the GNU autotools:
-
- - GNU libtool >= 2.2.6b http://www.gnu.org/software/libtool/
- - GNU autoconf >= 2.67 http://www.gnu.org/software/autoconf/
- - GNU automake >= 1.11.1 http://www.gnu.org/software/automake/
-
-Any reasonably up to date GNU/Linux installation would normally have all of
-the above packages already present, except for build and maybe tofrodos.
-
-
-Configuring and Building
-========================
-
-To build the source code simply run make in the root directory of the package.
-The first time you run make, the build process will also configure the
-package by asking you several questions. On the subsequent runs, make will
-only rebuild what has changed.
-
-To run the automated test suite (if any), run 'make test'. To clean the object
-files, executables, etc., run 'make clean'. To de-configure the package (that
-is, to remove configuration files in addition to objects, executables, etc.),
-run 'make disfigure'.
-
-
-Creating Distribution
-=====================
-
-To create the source code distribution, use the dist make target as well as
-the dist_prefix variable to specify the directory where the distribution files
-should be placed. For example:
-
-make dist dist_prefix=/tmp/package-1.1.0
-
-Once the distribution files are ready, change to the distribution directory
-and run the bootstrap script to bootstrap the autotools build system, for
-example:
-
-cd /tmp/package-1.1.0
-./bootsrap
-
-To create the source code archives, use the autotools build system. First
-configuring the package (see the INSTALL file for more information on this
-step) and then use the dist target to make the archives, for example:
-
-./configure
-make dist
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 9e83a2f..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-# file : Makefile.am
-# license : GNU GPL v2; see accompanying LICENSE file
-
-SUBDIRS = __path__(dirs)
-
-if HAVE_TR1_MEMORY
-SUBDIRS += __path__(tr1_dirs)
-endif
-
-if HAVE_CXX11
-SUBDIRS += __path__(cxx11_dirs)
-endif
-
-if ODB_EXAMPLES_BOOST
-SUBDIRS += __path__(boost_dirs)
-endif
-
-if ODB_EXAMPLES_QT
-SUBDIRS += __path__(qt_dirs)
-endif
-
-EXTRA_DIST = __file__(extra_dist)
-ACLOCAL_AMFLAGS = -I m4
diff --git a/NEWS b/NEWS
deleted file mode 100644
index 72d0f8b..0000000
--- a/NEWS
+++ /dev/null
@@ -1 +0,0 @@
-See the common NEWS file in the ODB compiler package.
diff --git a/README b/README
deleted file mode 100644
index 0c35ecd..0000000
--- a/README
+++ /dev/null
@@ -1,97 +0,0 @@
-ODB is an object-relational mapping (ORM) system for C++. It provides
-tools, APIs, and library support that allow you to persist C++ objects
-to a relational database (RDBMS) without having to deal with tables,
-columns, or SQL and without manually writing any of the mapping code.
-For more information see:
-
-http://www.codesynthesis.com/products/odb/
-
-This package contains the ODB examples. The following list gives an
-overview of the available examples. See the README file accompanying
-each example for more information.
-
-Note also that most of the examples use the --table-prefix ODB compiler
-option to assign a unique prefix to tables created by each example. This
-is done to allow examples to run against the same database without
-causing any schema conflicts. You don't have to use this option in your
-own applications.
-
-hello
- A "Hello World" example that shows how to use ODB to perform basic
- database operations.
-
-query
- Shows how to use the ODB Query Language to search the database for
- persistent objects matching certain criteria.
-
-composite
- Shows how to declare and use composite value types.
-
-container
- Shows how to use containers as data members in persistent objects.
-
-relationship
- Shows how to declare and use unidirectional to-one and to-many
- relationships.
-
-inverse
- Shows how to declare and use bidirectional one-to-one, one-to-many, and
- many-to-many relationships.
-
-inheritance/reuse
- Shows how to use reuse inheritance with ODB.
-
-inheritance/polymorphism
- Shows how to use polymorphism inheritance with ODB.
-
-section
- Shows how to use object sections to implement lazy-loading and change-
- updating of a subset of data members in a persistent class.
-
-view
- Shows how to define and use object, table, mixed, and native views.
-
-prepared
- Shows how to use prepared queries.
-
-optimistic
- Shows how to use optimistic concurrency in ODB.
-
-pimpl
- Shows how to use virtual data members to implement a persistent class that
- employs the pimpl C++ idiom.
-
-c++11
- Shows how to use ODB with C++11.
-
-access
- Shows various approaches used by ODB to access data members that cannot be
- accessed directly.
-
-boost
- Shows how to persist objects that use Boost smart pointers, containers,
- and value types with the help of the Boost profile library (libodb-boost).
-
-qt
- Shows how to persist objects that use Qt smart pointers, containers, and
- value types with the help of the Qt profile library (libodb-qt).
-
-schema/embedded
- Shows how to generate and use a database schema that is embedded into the
- application.
-
-schema/custom
- Shows how to map persistent C++ classes to a custom database schema.
-
-mapping
- Shows how to customize the mapping between C++ value types and database
- types.
-
-See the NEWS file for the user-visible changes from the previous release.
-
-See the LICENSE file for distribution conditions.
-
-See the INSTALL file for prerequisites and installation instructions.
-
-Send questions, bug reports, or any other feedback to the
-odb-users@codesynthesis.com mailing list.
diff --git a/access/makefile b/access/makefile
deleted file mode 100644
index d244601..0000000
--- a/access/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : access/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---table-prefix access_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/boost/boost-vc10.vcxproj b/boost/boost-vc10.vcxproj
deleted file mode 100644
index c6e5083..0000000
--- a/boost/boost-vc10.vcxproj
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-boost-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-boost-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-boost.lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-boost.lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/boost/boost-vc10.vcxproj.filters b/boost/boost-vc10.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/boost/boost-vc10.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/boost/boost-vc11.vcxproj b/boost/boost-vc11.vcxproj
deleted file mode 100644
index ef60fc2..0000000
--- a/boost/boost-vc11.vcxproj
+++ /dev/null
@@ -1,178 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-boost-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-boost-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-boost.lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-boost.lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/boost/boost-vc11.vcxproj.filters b/boost/boost-vc11.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/boost/boost-vc11.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/boost/boost-vc12.vcxproj b/boost/boost-vc12.vcxproj
deleted file mode 100644
index db230a3..0000000
--- a/boost/boost-vc12.vcxproj
+++ /dev/null
@@ -1,182 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-boost-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-boost-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-boost.lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-boost.lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/boost/boost-vc12.vcxproj.filters b/boost/boost-vc12.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/boost/boost-vc12.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/boost/boost-vc8.vcproj b/boost/boost-vc8.vcproj
deleted file mode 100644
index 661f6b3..0000000
--- a/boost/boost-vc8.vcproj
+++ /dev/null
@@ -1,350 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="8.00"
- Name="__value__(name)"
- ProjectGUID="{__uuid__()}"
- RootNamespace="__value__(name)"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-boost-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-boost.lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-boost-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-boost.lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cxx"
- UniqueIdentifier="{__uuid__()}"
- >
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hxx;ixx;txx"
- UniqueIdentifier="{__uuid__()}"
- >
-__file_entry_custom_build__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
-__file_entry__(__path__(odb_header_stem)-odb.hxx)
-__file_entry__(__path__(odb_header_stem)-odb.ixx)
-__file_entry__(database.hxx)
-__file_entries__(extra_headers)
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/boost/boost-vc9.vcproj b/boost/boost-vc9.vcproj
deleted file mode 100644
index e3f5252..0000000
--- a/boost/boost-vc9.vcproj
+++ /dev/null
@@ -1,357 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="__value__(name)"
- ProjectGUID="{__uuid__()}"
- RootNamespace="__value__(name)"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-boost-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-boost.lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-boost-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-boost.lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cxx"
- UniqueIdentifier="{__uuid__()}"
- >
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hxx;ixx;txx"
- UniqueIdentifier="{__uuid__()}"
- >
-__file_entry_custom_build__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
-__file_entry__(__path__(odb_header_stem)-odb.hxx)
-__file_entry__(__path__(odb_header_stem)-odb.ixx)
-__file_entry__(database.hxx)
-__file_entries__(extra_headers)
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/boost/makefile b/boost/makefile
deleted file mode 100644
index 5d1d1bc..0000000
--- a/boost/makefile
+++ /dev/null
@@ -1,151 +0,0 @@
-# file : boost/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libodb-boost/stub.make,\
- l: odb_boost.l,cpp-options: odb_boost.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libboost/header-only/stub.make,\
- cpp-options: boost.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libboost/date-time/stub.make,\
- l: boost_date_time.l)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb_boost.l) $(odb.l) $(boost_date_time.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_boost.l.cpp-options) \
-$(odb_db.l.cpp-options) $(boost.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --profile boost \
---generate-query --generate-schema --generate-session --table-prefix boost_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options) $(odb_boost.l.cpp-options) $(boost.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README \
-$(call vc8projs,$(name)) $(call vc9projs,$(name)) $(call vc10projs,$(name)) \
-$(call vc11projs,$(name)) $(call vc12projs,$(name)) \
-$(call vc8slns,$(name)) $(call vc9slns,$(name)) $(call vc10slns,$(name)) \
-$(call vc11slns,$(name)) $(call vc12slns,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,$(name),$(name))
- $(call meta-vc9projs,$(name),$(name))
- $(call meta-vc10projs,$(name),$(name))
- $(call meta-vc11projs,$(name),$(name))
- $(call meta-vc12projs,$(name),$(name))
- $(call meta-vc8slns,$(name))
- $(call meta-vc9slns,$(name))
- $(call meta-vc10slns,$(name))
- $(call meta-vc11slns,$(name))
- $(call meta-vc12slns,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8sln.make)
-$(call include,$(bld_root)/meta/vc9sln.make)
-$(call include,$(bld_root)/meta/vc10sln.make)
-$(call include,$(bld_root)/meta/vc11sln.make)
-$(call include,$(bld_root)/meta/vc12sln.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/bootstrap b/bootstrap
deleted file mode 100755
index 85d1399..0000000
--- a/bootstrap
+++ /dev/null
@@ -1,16 +0,0 @@
-#! /bin/sh
-
-# file : bootstrap
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# Bootstrap the automake build system.
-#
-
-rm -f config.cache
-
-if test ! -d m4; then
- mkdir m4
-fi
-
-autoreconf --install
diff --git a/build/bootstrap.make b/build/bootstrap.make
deleted file mode 100644
index 5ad75c5..0000000
--- a/build/bootstrap.make
+++ /dev/null
@@ -1,173 +0,0 @@
-# file : build/bootstrap.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-project_name := odb-examples
-
-# First try to include the bundled bootstrap.make if it exist. If that
-# fails, let make search for the external bootstrap.make.
-#
-build := build-0.3
-
--include $(dir $(lastword $(MAKEFILE_LIST)))../../$(build)/bootstrap.make
-
-ifeq ($(patsubst %build/bootstrap.make,,$(lastword $(MAKEFILE_LIST))),)
-include $(build)/bootstrap.make
-endif
-
-# Configuration
-#
-$(call include,$(scf_root)/configuration.make)
-
-def_goal := $(.DEFAULT_GOAL)
-
-# Include C++ configuration. We need to know if we are using the generic
-# C++ compiler in which case we need to compensate for missing dependency
-# auto-generation (see below).
-#
-$(call include,$(bld_root)/cxx/configuration.make)
-
-# Aliases
-#
-.PHONY: $(out_base)/ \
- $(out_base)/.test \
- $(out_base)/.dist \
- $(out_base)/.clean
-
-ifdef %interactive%
-
-.PHONY: test dist clean
-
-test: $(out_base)/.test
-dist: $(out_base)/.dist
-clean: $(out_base)/.clean
-
-endif
-
-# Database schema creation.
-#
-ifeq ($(filter $(db_id),sqlite),)
-$(out_base)/.test: schema = \
-$(foreach h,$(header),$(call \
-message,sql $$1,$(dcf_root)/$(db_id)-driver \
-$$1,$(out_base)/$(basename $h).sql)$(literal_newline)$(literal_tab))
-endif
-
-# Dist setup.
-#
-ifneq ($(filter $(MAKECMDGOALS),dist),)
-
-# Make sure the distribution prefix is set if the goal is dist.
-#
-ifeq ($(dist_prefix),)
-$(error dist_prefix is not set)
-endif
-
-databases := mysql sqlite pgsql oracle mssql
-$(dist): databases := $(databases)
-
-# $1 project template without the -vcN.vc[x]proj suffix.
-# $2 project name without the -vcN.vc[x]proj suffix.
-#
-$(dist): meta-vc8projs = \
-$(foreach d,$(databases),$(call \
-meta-vc8proj,$1-vc8.vcproj,$(if $2,$2,$(notdir \
-$1))-$d-vc8.vcproj,database,$d)$(literal_newline)$(literal_tab))@:
-
-$(dist): meta-vc9projs = \
-$(foreach d,$(databases),$(call \
-meta-vc9proj,$1-vc9.vcproj,$(if $2,$2,$(notdir \
-$1))-$d-vc9.vcproj,database,$d)$(literal_newline)$(literal_tab))@:
-
-$(dist): meta-vc10projs = \
-$(foreach d,$(databases),$(call \
-meta-vc10proj,$1-vc10.vcxproj,$(if $2,$2,$(notdir \
-$1))-$d-vc10.vcxproj,database,$d)$(literal_newline)$(literal_tab))@:
-
-$(dist): meta-vc11projs = \
-$(foreach d,$(databases),$(call \
-meta-vc11proj,$1-vc11.vcxproj,$(if $2,$2,$(notdir \
-$1))-$d-vc11.vcxproj,database,$d)$(literal_newline)$(literal_tab))@:
-
-$(dist): meta-vc12projs = \
-$(foreach d,$(databases),$(call \
-meta-vc12proj,$1-vc12.vcxproj,$(if $2,$2,$(notdir \
-$1))-$d-vc12.vcxproj,database,$d)$(literal_newline)$(literal_tab))@:
-
-
-# $1 project name without the -vcN.vc[x]proj suffix.
-#
-vc8projs = $(addprefix $1-,$(addsuffix -vc8.vcproj,$(databases)))
-
-vc9projs = $(addprefix $1-,$(addsuffix -vc9.vcproj,$(databases)))
-
-vc10projs = $(addprefix $1-,$(addsuffix -vc10.vcxproj,$(databases))) \
-$(addprefix $1-,$(addsuffix -vc10.vcxproj.filters,$(databases)))
-
-vc11projs = $(addprefix $1-,$(addsuffix -vc11.vcxproj,$(databases))) \
-$(addprefix $1-,$(addsuffix -vc11.vcxproj.filters,$(databases)))
-
-vc12projs = $(addprefix $1-,$(addsuffix -vc12.vcxproj,$(databases))) \
-$(addprefix $1-,$(addsuffix -vc12.vcxproj.filters,$(databases)))
-
-# $1 solution name without the -vcN.sln suffix.
-# $2 extra project suffix in addition to -<db>-vcN.vcproj (optional)
-#
-$(dist): meta-vc8slns = \
-$(foreach d,$(databases),$(call \
-meta-vc8sln,$(src_root)/template-vc8.sln,$1-$d-vc8.sln,$2-$d-vc8.vcproj,database,$d)$(literal_newline)\
-$(literal_tab))@:
-
-$(dist): meta-vc9slns = \
-$(foreach d,$(databases),$(call \
-meta-vc9sln,$(src_root)/template-vc9.sln,$1-$d-vc9.sln,$2-$d-vc9.vcproj,database,$d)$(literal_newline)\
-$(literal_tab))@:
-
-$(dist): meta-vc10slns = \
-$(foreach d,$(databases),$(call \
-meta-vc10sln,$(src_root)/template-vc10.sln,$1-$d-vc10.sln,$2-$d-vc10.vcxproj,database,$d)$(literal_newline)\
-$(literal_tab))@:
-
-$(dist): meta-vc11slns = \
-$(foreach d,$(databases),$(call \
-meta-vc11sln,$(src_root)/template-vc11.sln,$1-$d-vc11.sln,$2-$d-vc11.vcxproj,database,$d)$(literal_newline)\
-$(literal_tab))@:
-
-$(dist): meta-vc12slns = \
-$(foreach d,$(databases),$(call \
-meta-vc12sln,$(src_root)/template-vc12.sln,$1-$d-vc12.sln,$2-$d-vc12.vcxproj,database,$d)$(literal_newline)\
-$(literal_tab))@:
-
-vc8slns = $(addprefix $1-,$(addsuffix -vc8.sln,$(databases)))
-vc9slns = $(addprefix $1-,$(addsuffix -vc9.sln,$(databases)))
-vc10slns = $(addprefix $1-,$(addsuffix -vc10.sln,$(databases)))
-vc11slns = $(addprefix $1-,$(addsuffix -vc11.sln,$(databases)))
-vc12slns = $(addprefix $1-,$(addsuffix -vc12.sln,$(databases)))
-
-endif
-
-# If we don't have dependency auto-generation then we need to manually
-# make sure that ODB files are generated before C++ file are compiler.
-# To do this we make the object files ($2) depend in order-only on
-# generated files ($3).
-#
-ifeq ($(cxx_id),generic)
-
-define include-dep
-$(if $2,$(eval $2: | $3))
-endef
-
-else
-
-define include-dep
-$(call -include,$1)
-endef
-
-endif
-
-# Don't include dependency info for certain targets.
-#
-ifneq ($(filter $(MAKECMDGOALS),clean disfigure dist),)
-include-dep =
-endif
-
-.DEFAULT_GOAL := $(def_goal)
diff --git a/build/configuration-rules.make b/build/configuration-rules.make
deleted file mode 100644
index ee464cd..0000000
--- a/build/configuration-rules.make
+++ /dev/null
@@ -1,18 +0,0 @@
-# file : build/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/configuration-dynamic.make: | $(dcf_root)/.
- $(call message,,$(scf_root)/configure $@)
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $$1,rm -f $$1,$(dcf_root)/configuration-dynamic.make)
- $(call message,rm $$1,rm -f $$1,$(dcf_root)/*.options)
- $(call message,rm $$1,rm -f $$1,$(dcf_root)/*-driver)
-
-endif
-
-ifeq ($(.DEFAULT_GOAL),$(dcf_root)/configuration-dynamic.make)
-.DEFAULT_GOAL :=
-endif
diff --git a/build/configuration.make b/build/configuration.make
deleted file mode 100644
index 6c4eab2..0000000
--- a/build/configuration.make
+++ /dev/null
@@ -1,33 +0,0 @@
-# file : build/configuration.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/configuration-rules.make,$(dcf_root))
-
-# Dynamic configuration.
-#
-db_id :=
-
-$(call -include,$(dcf_root)/configuration-dynamic.make)
-
-ifdef db_id
-
-ifeq ($(db_id),mysql)
-db_macro := DATABASE_MYSQL
-else ifeq ($(db_id),sqlite)
-db_macro := DATABASE_SQLITE
-else ifeq ($(db_id),pgsql)
-db_macro := DATABASE_PGSQL
-else ifeq ($(db_id),oracle)
-db_macro := DATABASE_ORACLE
-else ifeq ($(db_id),mssql)
-db_macro := DATABASE_MSSQL
-endif
-
-$(out_root)/%: db_id := $(db_id)
-$(out_root)/%: db_macro := $(db_macro)
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/configure b/build/configure
deleted file mode 100755
index fa05813..0000000
--- a/build/configure
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-# $1 out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-$echo
-$echo
-$echo "configuring '$project_name'"
-$echo
-$echo
-
-$echo
-$echo "Please select the database you would like to use:"
-$echo
-$echo "(1) MySQL"
-$echo "(2) SQLite"
-$echo "(3) PostgreSQL"
-$echo "(4) Oracle"
-$echo "(5) Microsoft SQL Server"
-$echo
-
-db_id=`read_option "mysql sqlite pgsql oracle mssql"`
-
-echo "db_id := $db_id" >$1
-
-source $scf_root/$db_id/configure
diff --git a/build/import/libboost/configuration-rules.make b/build/import/libboost/configuration-rules.make
deleted file mode 100644
index dba014c..0000000
--- a/build/import/libboost/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libboost/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libboost/configuration-dynamic.make: | $(dcf_root)/import/libboost/.
- $(call message,,$(scf_root)/import/libboost/configure $@)
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libboost/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libboost/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libboost/configure b/build/import/libboost/configure
deleted file mode 100755
index 84d03b2..0000000
--- a/build/import/libboost/configure
+++ /dev/null
@@ -1,72 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libboost/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out config file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'boost libraries' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'boost libraries' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-if [ "$installed" = "n" ]; then
-
- $echo
- $echo "Please enter the 'boost' root directory."
- $echo
-
- root=`read_path --directory --exist`
-
- $echo
- $echo "Please select the library type you would like to use:"
- $echo
- $echo "(1) archive"
- $echo "(2) shared object"
- $echo
-
- type=`read_option "archive shared" "shared"`
-fi
-
-$echo
-$echo "Link explicitly to the boost system library? This library"
-$echo "is available since boost 1.35.0 and linking to it explicitly"
-$echo "may be required by newer linkers."
-$echo
-
-link_system=`read_y_n y`
-
-$echo
-$echo "Please enter optional suffix that may be embedded into the"
-$echo "boost library names. For example, if your library names are in"
-$echo "the libboost_regex-gcc41-mt-d.so form, then enter -gcc41-mt-d"
-$echo "Otherwise leave this field blank."
-$echo
-
-suffix=
-read -e -p "[]: " suffix
-
-echo libboost_installed := $installed >$1
-echo libboost_suffix := $suffix >>$1
-echo libboost_system := $link_system >>$1
-
-if [ "$installed" = "n" ]; then
-
- echo libboost_root := $root >>$1
- echo libboost_type := $type >>$1
-
-fi
diff --git a/build/import/libboost/date-time/rules.make b/build/import/libboost/date-time/rules.make
deleted file mode 100644
index abc8819..0000000
--- a/build/import/libboost/date-time/rules.make
+++ /dev/null
@@ -1,49 +0,0 @@
-# file : build/import/libboost/date-time/rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libboost/%: root := $(libboost_root)
-
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- | $(dcf_root)/import/libboost/date-time/.
-
-ifeq ($(libboost_type),archive)
-
-ifeq ($(libboost_system),y)
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- $(libboost_root)/stage/lib/libboost_date_time$(libboost_suffix).a \
- $(libboost_root)/stage/lib/libboost_system$(libboost_suffix).a
-else
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- $(libboost_root)/stage/lib/libboost_date_time$(libboost_suffix).a
-endif
- @echo $^ >$@
-
-else
-
-ifeq ($(libboost_system),y)
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- $(libboost_root)/stage/lib/libboost_date_time$(libboost_suffix).so \
- $(libboost_root)/stage/lib/libboost_system$(libboost_suffix).so
-else
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- $(libboost_root)/stage/lib/libboost_date_time$(libboost_suffix).so
-endif
- @echo $^ >$@
- @echo rpath:$(root)/stage/lib >>$@
-
-endif
-
-
-$(dcf_root)/import/libboost/date-time/date-time.l.cpp-options: \
- | $(dcf_root)/import/libboost/date-time/.
- @echo include: -I$(root) >$@
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libboost/date-time/date-time.l,\
-rm -f $(dcf_root)/import/libboost/date-time/date-time.l)
- $(call message,,\
-rm -f $(dcf_root)/import/libboost/date-time/date-time.l.cpp-options)
-
-endif
diff --git a/build/import/libboost/date-time/stub.make b/build/import/libboost/date-time/stub.make
deleted file mode 100644
index 6f3aad2..0000000
--- a/build/import/libboost/date-time/stub.make
+++ /dev/null
@@ -1,34 +0,0 @@
-# file : build/import/libboost/date-time/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libboost/configuration-rules.make,$(dcf_root))
-
-libboost_installed :=
-
-$(call -include,$(dcf_root)/import/libboost/configuration-dynamic.make)
-
-ifdef libboost_installed
-
-ifeq ($(libboost_installed),y)
-
-ifeq ($(libboost_system),y)
-$(call export,l: -lboost_date_time$(libboost_suffix) -lboost_system$(libboost_suffix),cpp_options: )
-else
-$(call export,l: -lboost_date_time$(libboost_suffix),cpp_options: )
-endif
-
-else
-
-$(call include-once,$(scf_root)/import/libboost/date-time/rules.make,$(dcf_root))
-
-$(call export,\
- l: $(dcf_root)/import/libboost/date-time/date-time.l,\
- cpp-options: $(dcf_root)/import/libboost/date-time/date-time.l.cpp-options)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libboost/header-only/rules.make b/build/import/libboost/header-only/rules.make
deleted file mode 100644
index b5b0726..0000000
--- a/build/import/libboost/header-only/rules.make
+++ /dev/null
@@ -1,16 +0,0 @@
-# file : build/import/libboost/header-only/rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libboost/%: root := $(libboost_root)
-
-$(dcf_root)/import/libboost/header-only/header-only.l.cpp-options: \
- | $(dcf_root)/import/libboost/header-only/.
- @echo include: -I$(root) >$@
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libboost/header-only/header-only.l,\
-rm -f $(dcf_root)/import/libboost/header-only/header-only.l.cpp-options)
-
-endif
diff --git a/build/import/libboost/header-only/stub.make b/build/import/libboost/header-only/stub.make
deleted file mode 100644
index eebddbf..0000000
--- a/build/import/libboost/header-only/stub.make
+++ /dev/null
@@ -1,26 +0,0 @@
-# file : build/import/libboost/header-only/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libboost/configuration-rules.make,$(dcf_root))
-
-libboost_installed :=
-
-$(call -include,$(dcf_root)/import/libboost/configuration-dynamic.make)
-
-ifdef libboost_installed
-
-ifeq ($(libboost_installed),n)
-
-$(call include-once,$(scf_root)/import/libboost/header-only/rules.make,$(dcf_root))
-
-$(call export,\
- l: ,\
- cpp-options: $(dcf_root)/import/libboost/header-only/header-only.l.cpp-options)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libboost/version b/build/import/libboost/version
deleted file mode 100644
index faef31a..0000000
--- a/build/import/libboost/version
+++ /dev/null
@@ -1 +0,0 @@
-0.7.0
diff --git a/build/import/libodb-boost/configuration-rules.make b/build/import/libodb-boost/configuration-rules.make
deleted file mode 100644
index a347655..0000000
--- a/build/import/libodb-boost/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-boost/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-boost/configuration-dynamic.make: | $(dcf_root)/import/libodb-boost/.
- $(call message,,$(scf_root)/import/libodb-boost/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-boost/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-boost/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-boost/configure b/build/import/libodb-boost/configure
deleted file mode 100755
index 8330535..0000000
--- a/build/import/libodb-boost/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-boost/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-boost' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-boost' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-boost'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-boost'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_boost_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-boost/stub.make b/build/import/libodb-boost/stub.make
deleted file mode 100644
index 73e80e6..0000000
--- a/build/import/libodb-boost/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-boost/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-boost/configuration-rules.make,$(dcf_root))
-
-libodb_boost_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-boost/configuration-dynamic.make)
-
-ifdef libodb_boost_installed
-
-ifeq ($(libodb_boost_installed),y)
-
-$(call export,l: -lodb-boost -lodb,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-boost/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb-mssql/configuration-rules.make b/build/import/libodb-mssql/configuration-rules.make
deleted file mode 100644
index 5fd58bc..0000000
--- a/build/import/libodb-mssql/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-mssql/configuration-rules.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-mssql/configuration-dynamic.make: | $(dcf_root)/import/libodb-mssql/.
- $(call message,,$(scf_root)/import/libodb-mssql/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-mssql/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-mssql/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-mssql/configure b/build/import/libodb-mssql/configure
deleted file mode 100755
index 5e2a28a..0000000
--- a/build/import/libodb-mssql/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-mssql/configure
-# license : ODB NCUEL; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-mssql' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-mssql' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-mssql'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-mssql'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_mssql_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-mssql/stub.make b/build/import/libodb-mssql/stub.make
deleted file mode 100644
index eebf11a..0000000
--- a/build/import/libodb-mssql/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-mssql/stub.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-mssql/configuration-rules.make,$(dcf_root))
-
-libodb_mssql_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-mssql/configuration-dynamic.make)
-
-ifdef libodb_mssql_installed
-
-ifeq ($(libodb_mssql_installed),y)
-
-$(call export,l: -lodb-mssql -lodb -lodbc,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-mssql/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb-mysql/configuration-rules.make b/build/import/libodb-mysql/configuration-rules.make
deleted file mode 100644
index 384d3d4..0000000
--- a/build/import/libodb-mysql/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-mysql/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-mysql/configuration-dynamic.make: | $(dcf_root)/import/libodb-mysql/.
- $(call message,,$(scf_root)/import/libodb-mysql/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-mysql/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-mysql/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-mysql/configure b/build/import/libodb-mysql/configure
deleted file mode 100755
index 2a1fa8d..0000000
--- a/build/import/libodb-mysql/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-mysql/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-mysql' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-mysql' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-mysql'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-mysql'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_mysql_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-mysql/stub.make b/build/import/libodb-mysql/stub.make
deleted file mode 100644
index 1b1ecbb..0000000
--- a/build/import/libodb-mysql/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-mysql/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-mysql/configuration-rules.make,$(dcf_root))
-
-libodb_mysql_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-mysql/configuration-dynamic.make)
-
-ifdef libodb_mysql_installed
-
-ifeq ($(libodb_mysql_installed),y)
-
-$(call export,l: -lodb-mysql -lodb -lmysqlclient_r,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-mysql/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb-oracle/configuration-rules.make b/build/import/libodb-oracle/configuration-rules.make
deleted file mode 100644
index cef4150..0000000
--- a/build/import/libodb-oracle/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-oracle/configuration-rules.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-oracle/configuration-dynamic.make: | $(dcf_root)/import/libodb-oracle/.
- $(call message,,$(scf_root)/import/libodb-oracle/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-oracle/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-oracle/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-oracle/configure b/build/import/libodb-oracle/configure
deleted file mode 100755
index 81cd5e4..0000000
--- a/build/import/libodb-oracle/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-oracle/configure
-# license : ODB NCUEL; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-oracle' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-oracle' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-oracle'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-oracle'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_oracle_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-oracle/stub.make b/build/import/libodb-oracle/stub.make
deleted file mode 100644
index 6861dc7..0000000
--- a/build/import/libodb-oracle/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-oracle/stub.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-oracle/configuration-rules.make,$(dcf_root))
-
-libodb_oracle_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-oracle/configuration-dynamic.make)
-
-ifdef libodb_oracle_installed
-
-ifeq ($(libodb_oracle_installed),y)
-
-$(call export,l: -lodb-oracle -lodb -lclntsh,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-oracle/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb-pgsql/configuration-rules.make b/build/import/libodb-pgsql/configuration-rules.make
deleted file mode 100644
index 326a60c..0000000
--- a/build/import/libodb-pgsql/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-pgsql/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-pgsql/configuration-dynamic.make: | $(dcf_root)/import/libodb-pgsql/.
- $(call message,,$(scf_root)/import/libodb-pgsql/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-pgsql/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-pgsql/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-pgsql/configure b/build/import/libodb-pgsql/configure
deleted file mode 100755
index 9d75cad..0000000
--- a/build/import/libodb-pgsql/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-pgsql/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-pgsql' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-pgsql' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-pgsql'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-pgsql'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_pgsql_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-pgsql/stub.make b/build/import/libodb-pgsql/stub.make
deleted file mode 100644
index b770a63..0000000
--- a/build/import/libodb-pgsql/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-pgsql/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-pgsql/configuration-rules.make,$(dcf_root))
-
-libodb_pgsql_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-pgsql/configuration-dynamic.make)
-
-ifdef libodb_pgsql_installed
-
-ifeq ($(libodb_pgsql_installed),y)
-
-$(call export,l: -lodb-pgsql -lodb -lpq,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-pgsql/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb-qt/configuration-rules.make b/build/import/libodb-qt/configuration-rules.make
deleted file mode 100644
index 9765a0c..0000000
--- a/build/import/libodb-qt/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-qt/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-qt/configuration-dynamic.make: | $(dcf_root)/import/libodb-qt/.
- $(call message,,$(scf_root)/import/libodb-qt/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-qt/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-qt/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-qt/configure b/build/import/libodb-qt/configure
deleted file mode 100755
index 6213974..0000000
--- a/build/import/libodb-qt/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-qt/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-qt' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-qt' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-qt'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-qt'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_qt_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-qt/stub.make b/build/import/libodb-qt/stub.make
deleted file mode 100644
index bd5e2ea..0000000
--- a/build/import/libodb-qt/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-qt/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-qt/configuration-rules.make,$(dcf_root))
-
-libodb_qt_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-qt/configuration-dynamic.make)
-
-ifdef libodb_qt_installed
-
-ifeq ($(libodb_qt_installed),y)
-
-$(call export,l: -lodb-qt -lodb,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-qt/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb-sqlite/configuration-rules.make b/build/import/libodb-sqlite/configuration-rules.make
deleted file mode 100644
index bf8dee4..0000000
--- a/build/import/libodb-sqlite/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-sqlite/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-sqlite/configuration-dynamic.make: | $(dcf_root)/import/libodb-sqlite/.
- $(call message,,$(scf_root)/import/libodb-sqlite/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-sqlite/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-sqlite/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-sqlite/configure b/build/import/libodb-sqlite/configure
deleted file mode 100755
index 9f245f5..0000000
--- a/build/import/libodb-sqlite/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-sqlite/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-sqlite' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-sqlite' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-sqlite'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-sqlite'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_sqlite_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-sqlite/stub.make b/build/import/libodb-sqlite/stub.make
deleted file mode 100644
index 417e65a..0000000
--- a/build/import/libodb-sqlite/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-sqlite/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-sqlite/configuration-rules.make,$(dcf_root))
-
-libodb_sqlite_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-sqlite/configuration-dynamic.make)
-
-ifdef libodb_sqlite_installed
-
-ifeq ($(libodb_sqlite_installed),y)
-
-$(call export,l: -lodb-sqlite -lodb -lsqlite3,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-sqlite/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb/configuration-rules.make b/build/import/libodb/configuration-rules.make
deleted file mode 100644
index 340c418..0000000
--- a/build/import/libodb/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb/configuration-dynamic.make: | $(dcf_root)/import/libodb/.
- $(call message,,$(scf_root)/import/libodb/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb/configure b/build/import/libodb/configure
deleted file mode 100755
index 261a202..0000000
--- a/build/import/libodb/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed "
-$echo "version of 'libodb' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb/stub.make b/build/import/libodb/stub.make
deleted file mode 100644
index 04dc786..0000000
--- a/build/import/libodb/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb/configuration-rules.make,$(dcf_root))
-
-libodb_installed :=
-
-$(call -include,$(dcf_root)/import/libodb/configuration-dynamic.make)
-
-ifdef libodb_installed
-
-ifeq ($(libodb_installed),y)
-
-$(call export,l: -lodb,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libqt/configuration-rules.make b/build/import/libqt/configuration-rules.make
deleted file mode 100644
index badc561..0000000
--- a/build/import/libqt/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libqt/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libqt/configuration-dynamic.make: | $(dcf_root)/import/libqt/.
- $(call message,,$(scf_root)/import/libqt/configure $@)
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libqt/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libqt/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libqt/configure b/build/import/libqt/configure
deleted file mode 100755
index 904d126..0000000
--- a/build/import/libqt/configure
+++ /dev/null
@@ -1,97 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libqt/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out config file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'Qt libraries' for '$project_name'."
-$echo
-
-$echo
-$echo "Which version of Qt would you like to use?"
-$echo
-$echo "(1) Qt5"
-$echo "(2) Qt4"
-$echo
-version=`read_option "5 4" "5"`
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'Qt libraries' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-if [ "$installed" = "n" ]; then
-
- $echo
- $echo "Please enter the 'Qt' root directory."
- $echo
-
- root=`read_path --directory --exist`
-
- $echo
- $echo "Please select the library type you would like to use:"
- $echo
- $echo "(1) archive"
- $echo "(2) shared object"
- $echo
-
- type=`read_option "archive shared" "shared"`
-
-else
- core_libs=
- if [ "$version" = "5" ]; then
-
- if pkg-config --exists Qt5Core; then
- core_cppflags=`pkg-config --cflags Qt5Core`
- core_libs=`pkg-config --libs Qt5Core`
- fi
-
- else
-
- if pkg-config --exists QtCore; then
- core_cppflags=`pkg-config --cflags QtCore`
- core_libs=`pkg-config --libs QtCore`
- fi
-
- fi
-
- if [ "$core_libs" = "" ]; then
-
- $echo
- $echo "Unable to discover installed 'Qt libraries' using pkg-config."
- $echo "Assuming the C++ compiler will find them automatically."
- $echo
-
- core_cppflags=
-
- if [ "$version" = "5" ]; then
- core_libs=-lQt5Core
- else
- core_libs=-lQtCore
- fi
- fi
-fi
-
-
-echo libqt_version := $version >$1
-echo libqt_installed := $installed >>$1
-
-if [ "$installed" = "n" ]; then
- echo libqt_root := $root >>$1
- echo libqt_type := $type >>$1
-else
- echo libqt_core_cppflags := $core_cppflags >>$1
- echo libqt_core_libs := $core_libs >>$1
-fi
diff --git a/build/import/libqt/core/rules.make b/build/import/libqt/core/rules.make
deleted file mode 100644
index 1fd6f10..0000000
--- a/build/import/libqt/core/rules.make
+++ /dev/null
@@ -1,26 +0,0 @@
-# file : build/import/libqt/core/rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libqt/%: root := $(libqt_root)
-$(dcf_root)/import/libqt/core/core.l: | $(dcf_root)/import/libqt/core/.
-
-ifeq ($(libqt_type),archive)
-$(dcf_root)/import/libqt/core/core.l: $(libqt_root)/lib/libQtCore.a
- @echo $^ >$@
-else
-$(dcf_root)/import/libqt/core/core.l: $(libqt_root)/lib/libQtCore.so
- @echo $^ >$@
- @echo rpath:$(root)/lib >>$@
-endif
-
-$(dcf_root)/import/libqt/core/core.l.cpp-options: | $(dcf_root)/import/libqt/core/.
- @echo include: -I$(root)/include -I$(root)/include/QtCore >$@
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libqt/core/core.l,\
-rm -f $(dcf_root)/import/libqt/core/core.l)
- $(call message,,rm -f $(dcf_root)/import/libqt/core/core.l.cpp-options)
-
-endif
diff --git a/build/import/libqt/core/stub.make b/build/import/libqt/core/stub.make
deleted file mode 100644
index 1a13bde..0000000
--- a/build/import/libqt/core/stub.make
+++ /dev/null
@@ -1,35 +0,0 @@
-# file : build/import/libqt/core/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libqt/configuration-rules.make,$(dcf_root))
-
-libqt_version :=
-libqt_installed :=
-
-$(call -include,$(dcf_root)/import/libqt/configuration-dynamic.make)
-
-ifdef libqt_installed
-
-ifeq ($(libqt_installed),y)
-
-$(call export,\
- l: $(libqt_core_libs),\
- cpp-options: ,\
- cpp-options-inline: $(libqt_core_cppflags))
-
-else
-
-$(call include-once,$(scf_root)/import/libqt/core/rules.make,$(dcf_root))
-
-$(call export,\
- l: $(dcf_root)/import/libqt/core/core.l,\
- cpp-options: $(dcf_root)/import/libqt/core/core.l.cpp-options,\
- cpp-options-inline: )
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libqt/version b/build/import/libqt/version
deleted file mode 100644
index 6e8bf73..0000000
--- a/build/import/libqt/version
+++ /dev/null
@@ -1 +0,0 @@
-0.1.0
diff --git a/build/import/odb/configuration-rules.make b/build/import/odb/configuration-rules.make
deleted file mode 100644
index eef9b0e..0000000
--- a/build/import/odb/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/odb/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/odb/configuration-dynamic.make: | $(dcf_root)/import/odb/.
- $(call message,,$(scf_root)/import/odb/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/odb/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/odb/configuration-dynamic.make)
-
-endif
diff --git a/build/import/odb/configure b/build/import/odb/configure
deleted file mode 100755
index ee0cdfa..0000000
--- a/build/import/odb/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/odb/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'odb' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed "
-$echo "version of 'odb' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'odb'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'odb'."
-$eche
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo odb_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/odb/hxx-cxx.make b/build/import/odb/hxx-cxx.make
deleted file mode 100644
index 987acc0..0000000
--- a/build/import/odb/hxx-cxx.make
+++ /dev/null
@@ -1,127 +0,0 @@
-# file : build/import/odb/hxx-cxx.make
-# license : GNU GPL v3; see accompanying LICENSE file
-
-# Here we are operating in the importing project's space, not in odb's.
-#
-
-# Get the C++ configuration (file extensions, and extra CPP options).
-#
-$(call include,$(bld_root)/cxx/configuration.make)
-
-odb_databases := mysql sqlite pgsql oracle mssql
-
-odb_pattern := \
-$(out_base)/%-odb.$(cxx_s_suffix) \
-$(out_base)/%-odb.$(cxx_h_suffix) \
-$(out_base)/%-odb.$(cxx_i_suffix) \
-$(out_base)/%.sql
-
-odb_patterns := $(odb_pattern)
-
-define odb-db-pattern
-odb_$1_pattern := \
-$$(out_base)/%-odb-$1.$$(cxx_s_suffix) \
-$$(out_base)/%-odb-$1.$$(cxx_h_suffix) \
-$$(out_base)/%-odb-$1.$$(cxx_i_suffix) \
-$$(out_base)/%-$1.sql
-
-odb_patterns += $$(odb_$1_pattern)
-
-endef # Trailing newline is important.
-
-$(foreach d,$(odb_databases),$(eval $(call odb-db-pattern,$d)))
-
-$(odb_patterns): odb_options := \
---hxx-suffix .$(cxx_h_suffix) \
---ixx-suffix .$(cxx_i_suffix) \
---cxx-suffix .$(cxx_s_suffix)
-
-$(odb_patterns): odb-expand-cpp-options-impl = \
-$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1))
-
-$(odb_patterns): odb-expand-cpp-options = \
-$(call odb-expand-cpp-options-impl,$(filter %.cpp-options,$1))
-
-# We only check for the long option name to avoid false positives.
-#
-$(odb_pattern): odb-default-database = \
-$(if $(filter --multi-database ,$(odb_options)),--database common )
-
-$(odb_pattern): odb-default-database-message = \
-$(if $(filter --multi-database ,$(odb_options)),[common] )
-
-.PRECIOUS: $(odb_patterns)
-
-ifeq ($(out_base),$(src_base))
-
-$(odb_pattern): $(src_base)/%.$(cxx_h_suffix)
- $(call message,odb $(call odb-default-database-message)$<,$(odb) \
-$(cpp_options) $(call odb-expand-cpp-options,$^) $(cxx_pp_extra_options) \
-$(odb_options) $(call odb-default-database)--output-dir $(dir $@) $<)
-
-define odb-db-rule
-$$(odb_$1_pattern): $$(src_base)/%.$$(cxx_h_suffix)
- $$(call message,odb [$1] $$<,$$(odb) $$(cpp_options) \
-$$(call odb-expand-cpp-options,$$^) $$(cxx_pp_extra_options) $$(odb_options) \
---database $1 --output-dir $$(dir $$@) $$<)
-
-endef # Trailing newline is important.
-
-else
-
-$(odb_pattern): $(src_base)/%.$(cxx_h_suffix) | $$(dir $$@).
- $(call message,odb $(call odb-default-database-message)$<,$(odb) \
-$(cpp_options) $(call odb-expand-cpp-options,$^) $(cxx_pp_extra_options) \
-$(odb_options) $(call odb-default-database)--output-dir $(dir $@) $<)
-
-$(odb_pattern): $(out_base)/%.$(cxx_h_suffix) | $$(dir $$@).
- $(call message,odb $(call odb-default-database-message)$<,$(odb) \
-$(cpp_options) $(call odb-expand-cpp-options,$^) $(cxx_pp_extra_options) \
-$(odb_options) $(call odb-default-database) --output-dir $(dir $@) $<)
-
-define odb-db-rule
-$$(odb_$1_pattern): $$(src_base)/%.$$(cxx_h_suffix) | $$$$(dir $$$$@).
- $$(call message,odb [$1] $$<,$$(odb) $$(cpp_options) \
-$$(call odb-expand-cpp-options,$$^) $$(cxx_pp_extra_options) $$(odb_options) \
---database $1 --output-dir $$(dir $$@) $$<)
-
-$$(odb_$1_pattern): $$(out_base)/%.$$(cxx_h_suffix) | $$$$(dir $$$$@).
- $$(call message,odb [$1] $$<,$$(odb) $$(cpp_options) \
-$$(call odb-expand-cpp-options,$$^) $$(cxx_pp_extra_options) $$(odb_options) \
---database $1 --output-dir $$(dir $$@) $$<)
-
-endef # Trailing newline is important.
-endif
-
-$(foreach d,$(odb_databases),$(eval $(call odb-db-rule,$d)))
-
-# Clean.
-#
-.PHONY: $(out_base)/%-odb.cxx.hxx.clean
-
-$(out_base)/%-odb.cxx.hxx.clean: cxx_s_suffix := $(cxx_s_suffix)
-$(out_base)/%-odb.cxx.hxx.clean: cxx_h_suffix := $(cxx_h_suffix)
-$(out_base)/%-odb.cxx.hxx.clean: cxx_i_suffix := $(cxx_i_suffix)
-
-$(out_base)/%-odb.cxx.hxx.clean:
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.hxx.clean=.$(cxx_s_suffix)))
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.hxx.clean=.$(cxx_h_suffix)))
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.hxx.clean=.$(cxx_i_suffix)))
- $(call message,rm $$1,rm -f $$1,$(@:-odb.cxx.hxx.clean=.sql))
-
-define odb-db-clean-rule
-.PHONY: $$(out_base)/%-odb-$1.cxx.hxx.clean
-
-$$(out_base)/%-odb-$1.cxx.hxx.clean: cxx_s_suffix := $$(cxx_s_suffix)
-$$(out_base)/%-odb-$1.cxx.hxx.clean: cxx_h_suffix := $$(cxx_h_suffix)
-$$(out_base)/%-odb-$1.cxx.hxx.clean: cxx_i_suffix := $$(cxx_i_suffix)
-
-$$(out_base)/%-odb-$1.cxx.hxx.clean:
- $$(call message,rm $$$$1,rm -f $$$$1,$$(@:.cxx.hxx.clean=.$$(cxx_s_suffix)))
- $$(call message,rm $$$$1,rm -f $$$$1,$$(@:.cxx.hxx.clean=.$$(cxx_h_suffix)))
- $$(call message,rm $$$$1,rm -f $$$$1,$$(@:.cxx.hxx.clean=.$$(cxx_i_suffix)))
- $$(call message,rm $$$$1,rm -f $$$$1,$$(@:-odb-$1.cxx.hxx.clean=-$1.sql))
-
-endef # Trailing newline is important.
-
-$(foreach d,$(odb_databases),$(eval $(call odb-db-clean-rule,$d)))
diff --git a/build/import/odb/stub.make b/build/import/odb/stub.make
deleted file mode 100644
index 21ff9f2..0000000
--- a/build/import/odb/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/odb/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/odb/configuration-rules.make,$(dcf_root))
-
-odb_installed :=
-
-$(call -include,$(dcf_root)/import/odb/configuration-dynamic.make)
-
-ifdef odb_installed
-
-ifeq ($(odb_installed),y)
-
-$(call export,odb: odb,odb-rules: $(scf_root)/import/odb/hxx-cxx.make)
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/odb/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/mssql/configure b/build/mssql/configure
deleted file mode 100755
index 52cf34b..0000000
--- a/build/mssql/configure
+++ /dev/null
@@ -1,52 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/mssql/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# dcf_root - dynamic configuration root
-#
-
-$echo
-$echo "Please enter the SQL Server client program path."
-$echo
-
-driver=`read_path --command sqlcmd`
-
-$echo
-$echo "Please enter the SQL Server database user."
-$echo
-
-user=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the SQL Server database password."
-$echo
-
-passwd=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the SQL Server database name. Note that it WILL BE"
-$echo "MODIFIED by the tests."
-$echo
-
-db=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the SQL Server instance address."
-$echo
-
-server=`read_value ""`
-
-opt=$dcf_root/mssql.options
-drv=$dcf_root/mssql-driver
-
-echo "--user '$user'" >$opt
-echo "--password '$passwd'" >>$opt
-echo "--database '$db'" >>$opt
-echo "--server '$server'" >>$opt
-
-echo "#!/bin/sh" >$drv
-echo "opt=\`cat $opt\`" >>$drv
-echo "eval $scf_root/mssql/mssql --driver $driver \$opt \$*" >>$drv
-chmod 755 $drv
diff --git a/build/mssql/mssql b/build/mssql/mssql
deleted file mode 100755
index 37792f6..0000000
--- a/build/mssql/mssql
+++ /dev/null
@@ -1,51 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/mssql/mssql
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# SQL Server driver wrapper.
-#
-
-opt=
-driver=
-
-while [ $# -gt 0 ]; do
- case $1 in
- --driver)
- driver=$2
- shift 2
- ;;
- --user)
- opt="$opt -U $2"
- shift 2
- ;;
- --password)
- opt="$opt -P $2"
- shift 2
- ;;
- --database)
- opt="$opt -d $2"
- shift 2
- ;;
- --server)
- opt="$opt -S $2"
- shift 2
- ;;
- *)
- break
- ;;
- esac
-done
-
-if [ -z "$driver" ]; then
- driver=sqlcmd
-fi
-
-opt="-x -r -b $opt"
-
-if [ -n "$1" ]; then
- exec $driver $opt -i $1
-else
- exec $driver $opt
-fi
diff --git a/build/mysql/configure b/build/mysql/configure
deleted file mode 100755
index 0ea5120..0000000
--- a/build/mysql/configure
+++ /dev/null
@@ -1,75 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/mysql/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# dcf_root - dynamic configuration root
-#
-
-$echo
-$echo "Please enter the MySQL client program path."
-$echo
-
-driver=`read_path --command mysql`
-
-$echo
-$echo "Please enter the MySQL database user."
-$echo
-
-user=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the MySQL database password. Enter NULL for"
-$echo "unspecified password as opposed to the empty password."
-$echo
-
-passwd=`read_value "NULL"`
-
-$echo
-$echo "Please enter the MySQL database name. Note that it WILL BE"
-$echo "MODIFIED by the tests."
-$echo
-
-db=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the MySQL database host."
-$echo
-
-host=`read_value ""`
-
-$echo
-$echo "Please enter the MySQL database port."
-$echo
-
-port=`read_value "0"`
-
-$echo
-$echo "Please enter the MySQL database socket name. Enter NULL for"
-$echo "unspecified name as opposed to the empty name."
-$echo
-
-socket=`read_value "NULL"`
-
-opt=$dcf_root/mysql.options
-drv=$dcf_root/mysql-driver
-
-echo "--user '$user'" >$opt
-
-if [ "$passwd" != "NULL" ]; then
-echo "--password '$passwd'" >>$opt
-fi
-
-echo "--database '$db'" >>$opt
-echo "--host '$host'" >>$opt
-echo "--port $port" >>$opt
-
-if [ "$socket" != "NULL" ]; then
-echo "--socket '$socket'" >>$opt
-fi
-
-echo "#!/bin/sh" >$drv
-echo "opt=\`cat $opt\`" >>$drv
-echo "eval $scf_root/mysql/mysql --driver $driver \$opt \$*" >>$drv
-chmod 755 $drv
diff --git a/build/mysql/mysql b/build/mysql/mysql
deleted file mode 100755
index 7d224c8..0000000
--- a/build/mysql/mysql
+++ /dev/null
@@ -1,57 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/mysql/mysql
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# MySQL driver wrapper.
-#
-
-opt=
-driver=
-
-while [ $# -gt 0 ]; do
- case $1 in
- --driver)
- driver=$2
- shift 2
- ;;
- --user)
- opt="$opt --user=$2"
- shift 2
- ;;
- --password)
- opt="$opt --password=$2"
- shift 2
- ;;
- --database)
- opt="$opt --database=$2"
- shift 2
- ;;
- --host)
- opt="$opt --host=$2"
- shift 2
- ;;
- --port)
- opt="$opt --port=$2"
- shift 2
- ;;
- --socket)
- opt="$opt --socket=$2"
- shift 2
- ;;
- *)
- break
- ;;
- esac
-done
-
-if [ -z "$driver" ]; then
- driver=mysql
-fi
-
-if [ -n "$1" ]; then
- exec $driver $opt <$1
-else
- exec $driver $opt
-fi
diff --git a/build/oracle/configure b/build/oracle/configure
deleted file mode 100755
index 4a87e51..0000000
--- a/build/oracle/configure
+++ /dev/null
@@ -1,97 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/oracle/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# dcf_root - dynamic configuration root
-#
-
-$echo
-$echo "Please enter the Oracle client program path."
-$echo
-
-driver=`read_path --command sqlplus`
-
-$echo
-$echo "Please enter the Oracle database user."
-$echo
-
-user=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the Oracle database password."
-$echo
-
-# If the user is odb_test then default to odb_test as a password since
-# it is unlikely there is the odb_test user with external authentication.
-#
-if [ "$user" = "odb_test" ]; then
- def_passwd=odb_test
-else
- def_passwd=
-fi
-
-passwd=`read_value "$def_passwd"`
-
-$echo
-$echo "Please enter the Oracle listener host (localhost if left empty)."
-$echo
-
-host=`read_value ""`
-
-$echo
-$echo "Please enter the Oracle listener port (default port if left empty)."
-$echo
-
-port=`read_value ""`
-
-$echo
-$echo "Please enter the Oracle service to use (default service if left"
-$echo "empty). Note that the database associated with user $user on this"
-$echo "service WILL BE MODIFIED."
-$echo
-
-service=`read_value ""`
-
-opt=$dcf_root/oracle.options
-drv=$dcf_root/oracle-driver
-
-if [ -n "$user" ]; then
-echo "--user '$user'" >$opt
-fi
-
-if [ -n "$passwd" ]; then
-echo "--password '$passwd'" >>$opt
-fi
-
-if [ -n "$service" ]; then
-echo "--service '$service'" >>$opt
-fi
-
-if [ -n "$host" ]; then
-echo "--host '$host'" >>$opt
-fi
-
-if [ -n "$port" ]; then
-echo "--port '$port'" >>$opt
-fi
-
-echo "#!/bin/sh" >$drv
-
-dir=`dirname $driver`
-if [ "$dir" != "." ]; then
- echo >>$drv
- echo 'LD_LIBRARY_PATH="'$dir':$LD_LIBRARY_PATH"' >>$drv
- echo "export LD_LIBRARY_PATH" >>$drv
- echo >>$drv
- echo 'if [ -z "$SQLPATH" ]; then' >>$drv
- echo ' SQLPATH="'$dir'"' >>$drv
- echo " export SQLPATH" >>$drv
- echo "fi" >>$drv
- echo >>$drv
-fi
-
-echo "opt=\`cat $opt\`" >>$drv
-echo "eval $scf_root/oracle/oracle --driver $driver \$opt \$*" >>$drv
-chmod 755 $drv
diff --git a/build/oracle/oracle b/build/oracle/oracle
deleted file mode 100755
index 58e94f2..0000000
--- a/build/oracle/oracle
+++ /dev/null
@@ -1,80 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/oracle/oracle
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# Oracle driver wrapper.
-#
-
-driver=
-user=
-passwd=
-service=
-host=
-port=
-
-while [ $# -gt 0 ]; do
- case $1 in
- --driver)
- driver=$2
- shift 2
- ;;
- --user)
- user="$2"
- shift 2
- ;;
- --password)
- passwd="$2"
- shift 2
- ;;
- --service)
- service="$2"
- shift 2
- ;;
- --host)
- host="$2"
- shift 2
- ;;
- --port)
- port="$2"
- shift 2
- ;;
- *)
- break
- ;;
- esac
-done
-
-if [ -z "$driver" ]; then
- driver=sqlplus
-fi
-
-conn=$user
-
-if [ -n "$passwd" ]; then
- conn="$conn/$passwd"
-fi
-
-if [ -n "$host" ]; then
- conn="$conn@//$host"
-
- if [ -n "$port" ]; then
- conn="$conn:$port"
- fi
-
- if [ -n "$service" ]; then
- conn="$conn/$service"
- fi
-elif [ -n "$service" ]; then
- conn="$conn@$service"
-fi
-
-opt="-L"
-
-if [ -n "$1" ]; then
- opt="-S $opt"
- exec $driver $opt $conn @$1
-else
- exec $driver $opt $conn
-fi
diff --git a/build/pgsql/configure b/build/pgsql/configure
deleted file mode 100755
index 9673c15..0000000
--- a/build/pgsql/configure
+++ /dev/null
@@ -1,63 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/pgsql/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# dcf_root - dynamic configuration root
-#
-
-$echo
-$echo "Please enter the PostgreSQL client program path."
-$echo
-
-driver=`read_path --command psql`
-
-$echo
-$echo "Please enter the PostgreSQL database user. Note that the named"
-$echo "user must be allowed to connect to the database server without"
-$echo "specifying credentials."
-$echo
-
-user=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the PostgreSQL database name. Note that it WILL BE"
-$echo "MODIFIED by the tests."
-$echo
-
-db=`read_value "odb_test"`
-
-$echo
-$echo "Please enter the PostgreSQL database host. Leaving this field"
-$echo "blank results in using Unix-domain sockets. Machines without"
-$echo "Unix-domain sockets will connect to localhost."
-$echo
-
-host=`read_value ""`
-
-$echo
-$echo "Please enter the PostgreSQL database port or the socket file name"
-$echo "extension for Unix-domain connections."
-$echo
-
-port=`read_value ""`
-
-opt=$dcf_root/pgsql.options
-drv=$dcf_root/pgsql-driver
-
-echo "--user '$user'" >$opt
-echo "--database '$db'" >>$opt
-
-if [ -n "$host" ]; then
-echo "--host '$host'" >>$opt
-fi
-
-if [ -n "$port" ]; then
-echo "--port '$port'" >>$opt
-fi
-
-echo "#!/bin/sh" >$drv
-echo "opt=\`cat $opt\`" >>$drv
-echo "eval $scf_root/pgsql/pgsql --driver $driver \$opt \$*" >>$drv
-chmod 755 $drv
diff --git a/build/pgsql/pgsql b/build/pgsql/pgsql
deleted file mode 100755
index d30a102..0000000
--- a/build/pgsql/pgsql
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/pgsql/pgsql
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# PostgreSQL driver wrapper.
-#
-
-driver=
-opt=
-
-while [ $# -gt 0 ]; do
- case $1 in
- --driver)
- driver=$2
- shift 2
- ;;
- --user)
- opt="$opt --user=$2"
- shift 2
- ;;
- --database)
- opt="$opt --dbname=$2"
- shift 2
- ;;
- --host)
- opt="$opt --host=$2"
- shift 2
- ;;
- --port)
- opt="$opt --port=$2"
- shift 2
- ;;
- *)
- break
- ;;
- esac
-done
-
-if [ -z "$driver" ]; then
- driver=psql
-fi
-
-opt="--quiet $opt"
-
-export PGOPTIONS=--client-min-messages=warning
-
-if [ -n "$1" ]; then
- exec $driver $opt --set ON_ERROR_STOP=1 -f $1
-else
- exec $driver $opt
-fi
diff --git a/build/sqlite/configure b/build/sqlite/configure
deleted file mode 100755
index 24cc288..0000000
--- a/build/sqlite/configure
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/sqlite/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# dcf_root - dynamic configuration root
-#
-
-$echo
-$echo "Please enter the SQLite database file name. Note that it WILL"
-$echo "BE MODIFIED by the tests. You can also specify ':memory:' as a"
-$echo "file name to use a temporary in-memory database."
-$echo
-
-db=`read_value "/tmp/odb-test.db"`
-
-opt=$dcf_root/sqlite.options
-
-echo "--database '$db'" >$opt
diff --git a/c++11/makefile b/c++11/makefile
deleted file mode 100644
index baee22b..0000000
--- a/c++11/makefile
+++ /dev/null
@@ -1,139 +0,0 @@
-# file : c++11/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libodb-boost/stub.make,\
- l: odb_boost.l,cpp-options: odb_boost.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libboost/header-only/stub.make,\
- cpp-options: boost.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libboost/date-time/stub.make,\
- l: boost_date_time.l)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb_boost.l) $(odb.l) $(boost_date_time.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_boost.l.cpp-options) \
-$(odb_db.l.cpp-options) $(boost.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-schema \
---table-prefix boost_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options) $(odb_boost.l.cpp-options) $(boost.l.cpp-options)
-
-# Don't generate dependencies unless we are in the C++11 mode.
-#
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-
-ifeq ($(cxx_standard),c++11)
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-endif
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc10projs,$(name)) \
-$(call vc11projs,$(name)) $(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/composite/makefile b/composite/makefile
deleted file mode 100644
index a619b1b..0000000
--- a/composite/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : composite/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---table-prefix c_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 9895953..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,106 +0,0 @@
-# file : configure.ac
-# license : GNU GPL v2; see accompanying LICENSE file
-
-AC_PREREQ(2.60)
-AC_INIT([odb-examples], [__value__(version)], [odb-users@codesynthesis.com])
-AC_CONFIG_AUX_DIR([config])
-AC_CONFIG_MACRO_DIR([m4])
-AC_CONFIG_SRCDIR([hello/driver.cxx])
-
-AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc subdir-objects dist-bzip2 dist-zip tar-ustar])
-m4_equote()[m4_ifdef]m4_dquote()([AM_PROG_AR], [AM_PROG_AR]) # Required by automake 1.12.
-
-LT_INIT
-
-AC_CANONICAL_HOST
-
-# Check for C++ compiler and use it to compile the tests.
-#
-AC_PROG_CXX
-AC_LANG(C++)
-
-# Create the libtool executable so that we can use it in further tests.
-#
-LT_OUTPUT
-
-# Check for threads.
-#
-THREADS
-
-AM_CONDITIONAL([ODB_EXAMPLES_THREADS], [test x$threads != xnone])
-
-# Check for C++11.
-#
-CXX11([HAVE_CXX11], [Compiling in the C++11 mode.])
-
-# Check for the ODB compiler.
-#
-ODB_COMPILER([], [AC_MSG_ERROR([odb compiler is not found; consider setting ODB variable or using --with-odb=DIR])])
-
-# Check for the ODB libs.
-#
-LIBODB([], [AC_MSG_ERROR([libodb is not found; consider using --with-libodb=DIR])])
-
-# Check for TR1 <memory> availability (has to be after libodb).
-#
-TR1_MEMORY
-
-# Check for boost.
-#
-odb_examples_boost=yes
-LIBBOOST([], [odb_examples_boost=no])
-LIBBOOST_SYSTEM
-LIBBOOST_SMART_PTR([], [odb_examples_boost=no])
-LIBBOOST_UNORDERED([], [odb_examples_boost=no])
-LIBBOOST_DATE_TIME([], [odb_examples_boost=no])
-
-# Check for libodb-boost.
-#
-LIBODB_BOOST([], [odb_examples_boost=no])
-
-AM_CONDITIONAL([ODB_EXAMPLES_BOOST], [test x$odb_examples_boost != xno])
-
-# Check for Qt.
-#
-odb_examples_qt=yes
-LIBQTCORE([], [odb_examples_qt=no])
-
-# Check for libodb-qt.
-#
-LIBODB_QT([], [odb_examples_qt=no])
-
-AM_CONDITIONAL([ODB_EXAMPLES_QT], [test x$odb_examples_qt != xno])
-
-# Check which database we are using.
-#
-DATABASE
-
-case $database in
- mysql)
- LIBODB_MYSQL([], [AC_MSG_ERROR([libodb-mysql is not found; consider using --with-libodb-mysql=DIR])])
- MYSQL
- ;;
- sqlite)
- LIBODB_SQLITE([], [AC_MSG_ERROR([libodb-sqlite is not found; consider using --with-libodb-sqlite=DIR])])
- SQLITE
- ;;
- pgsql)
- LIBODB_PGSQL([], [AC_MSG_ERROR([libodb-pgsql is not found; consider using --with-libodb-pgsql=DIR])])
- PGSQL
- ;;
- oracle)
- LIBODB_ORACLE([], [AC_MSG_ERROR([libodb-oracle is not found; consider using --with-libodb-oracle=DIR])])
- ORACLE
- ;;
- mssql)
- LIBODB_MSSQL([], [AC_MSG_ERROR([libodb-mssql is not found; consider using --with-libodb-mssql=DIR])])
- MSSQL
- ;;
-esac
-
-# Output.
-#
-AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([__path__(config_files)])
-AC_CONFIG_COMMANDS([tester-mode], [chmod +x tester])
-AC_OUTPUT
diff --git a/container/makefile b/container/makefile
deleted file mode 100644
index 65aa4fb..0000000
--- a/container/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : container/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema \
---table-prefix container_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/hello/makefile b/hello/makefile
deleted file mode 100644
index 3f540a1..0000000
--- a/hello/makefile
+++ /dev/null
@@ -1,124 +0,0 @@
-# file : hello/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-schema
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/inheritance/polymorphism/makefile b/inheritance/polymorphism/makefile
deleted file mode 100644
index 38ef06a..0000000
--- a/inheritance/polymorphism/makefile
+++ /dev/null
@@ -1,126 +0,0 @@
-# file : inheritance/polymorphism/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
-
-cxx_tun := driver.cxx employee.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---table-prefix inh_poly_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export extra_sources := $(filter-out driver.cxx,$(cxx_tun))
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../../template/Makefile.am)
- $(call meta-vc8projs,../../template/template,$(name))
- $(call meta-vc9projs,../../template/template,$(name))
- $(call meta-vc10projs,../../template/template,$(name))
- $(call meta-vc11projs,../../template/template,$(name))
- $(call meta-vc12projs,../../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/inheritance/reuse/makefile b/inheritance/reuse/makefile
deleted file mode 100644
index 9477844..0000000
--- a/inheritance/reuse/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : inheritance/reuse/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---table-prefix inh_reuse_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../../template/Makefile.am)
- $(call meta-vc8projs,../../template/template,$(name))
- $(call meta-vc9projs,../../template/template,$(name))
- $(call meta-vc10projs,../../template/template,$(name))
- $(call meta-vc11projs,../../template/template,$(name))
- $(call meta-vc12projs,../../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/inverse/makefile b/inverse/makefile
deleted file mode 100644
index 385cdf1..0000000
--- a/inverse/makefile
+++ /dev/null
@@ -1,126 +0,0 @@
-# file : inverse/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-schema \
---generate-session --default-pointer std::tr1::shared_ptr \
---table-prefix inverse_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/m4/acx-pthread.m4 b/m4/acx-pthread.m4
deleted file mode 100644
index 204b32d..0000000
--- a/m4/acx-pthread.m4
+++ /dev/null
@@ -1,259 +0,0 @@
-dnl
-dnl NOTE: This file was modified. See the comments starting with 'CS:'
-dnl for more information. In particular, it was changed to use C++
-dnl instead of C.
-dnl
-dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl @summary figure out how to build C++ programs using POSIX threads
-dnl
-dnl This macro figures out how to build C++ programs using POSIX threads.
-dnl It sets the PTHREAD_LIBS output variable to the threads library and
-dnl linker flags, and the PTHREAD_CXXFLAGS output variable to any special
-dnl C++ compiler flags that are needed. (The user can also force certain
-dnl compiler flags/libs to be tested by setting these environment
-dnl variables.)
-dnl
-dnl Also sets PTHREAD_CXX to any special C++ compiler that is needed for
-dnl multi-threaded programs (defaults to the value of CXX otherwise).
-dnl (This is necessary on AIX to use the special xlC_r compiler alias.)
-dnl
-dnl NOTE: You are assumed to not only compile your program with these
-dnl flags, but also link it with them as well. e.g. you should link
-dnl with $PTHREAD_CXX $CXXFLAGS $PTHREAD_CXXFLAGS $LDFLAGS ... $PTHREAD_LIBS
-dnl $LIBS
-dnl
-dnl If you are only building threads programs, you may wish to use
-dnl these variables in your default LIBS, CXXFLAGS, and CXX:
-dnl
-dnl LIBS="$PTHREAD_LIBS $LIBS"
-dnl CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
-dnl CXX="$PTHREAD_CXX"
-dnl
-dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
-dnl constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
-dnl that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
-dnl
-dnl ACTION-IF-FOUND is a list of shell commands to run if a threads
-dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to
-dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the
-dnl default action will define HAVE_PTHREAD.
-dnl
-dnl Please let the authors know if this macro fails on any platform, or
-dnl if you have any other suggestions or comments. This macro was based
-dnl on work by SGJ on autoconf scripts for FFTW (www.fftw.org) (with
-dnl help from M. Frigo), as well as ac_pthread and hb_pthread macros
-dnl posted by Alejandro Forero Cuervo to the autoconf macro repository.
-dnl We are also grateful for the helpful feedback of numerous users.
-dnl
-dnl @category InstalledPackages
-dnl @author Steven G. Johnson <stevenj@alum.mit.edu>
-dnl @version 2006-05-29
-dnl @license GPLWithACException
-
-AC_DEFUN([ACX_PTHREAD], [
-AC_REQUIRE([AC_CANONICAL_HOST])
-AC_LANG_SAVE
-AC_LANG(C++)
-acx_pthread_ok=no
-
-# We used to check for pthread.h first, but this fails if pthread.h
-# requires special compiler flags (e.g. on True64 or Sequent).
-# It gets checked for in the link test anyway.
-
-# First of all, check if the user has set any of the PTHREAD_LIBS,
-# etcetera environment variables, and if threads linking works using
-# them:
-if test x"$PTHREAD_LIBS$PTHREAD_CXXFLAGS" != x; then
- save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS])
- AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
- AC_MSG_RESULT($acx_pthread_ok)
- if test x"$acx_pthread_ok" = xno; then
- PTHREAD_LIBS=""
- PTHREAD_CXXFLAGS=""
- fi
- LIBS="$save_LIBS"
- CXXFLAGS="$save_CXXFLAGS"
-fi
-
-# We must check for the threads library under a number of different
-# names; the ordering is very important because some systems
-# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
-# libraries is broken (non-POSIX).
-
-# Create a list of thread flags to try. Items starting with a "-" are
-# C compiler flags, and other items are library names, except for "none"
-# which indicates that we try without any flags at all, and "pthread-config"
-# which is a program returning the flags for the Pth emulation library.
-
-# CS: On GNU/Linux with gcc both -pthread and -lpthread are valid.
-# However, libtool links libraries with -nostdlib which results in
-# -pthread being stripped from the linker command line. To resolve
-# this we move pthread from after -mthreads to after pthreads.
-#
-acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
-
-# The ordering *is* (sometimes) important. Some notes on the
-# individual items follow:
-
-# pthreads: AIX (must check this before -lpthread)
-# none: in case threads are in libc; should be tried before -Kthread and
-# other compiler flags to prevent continual compiler warnings
-# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
-# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
-# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
-# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
-# -pthreads: Solaris/gcc
-# -mthreads: Mingw32/gcc, Lynx/gcc
-# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
-# doesn't hurt to check since this sometimes defines pthreads too;
-# also defines -D_REENTRANT)
-# ... -mt is also the pthreads flag for HP/aCC
-# pthread: Linux, etcetera
-# --thread-safe: KAI C++
-# pthread-config: use pthread-config program (for GNU Pth library)
-
-case "${host_cpu}-${host_os}" in
- *solaris*)
-
- # On Solaris (at least, for some versions), libc contains stubbed
- # (non-functional) versions of the pthreads routines, so link-based
- # tests will erroneously succeed. (We need to link with -pthreads/-mt/
- # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
- # a function called by this macro, so we could check for that, but
- # who knows whether they'll stub that too in a future libc.) So,
- # we'll just look for -pthreads and -lpthread first:
-
- # CS: Move -mt to the front of the list; Sun CC will use -mt,
- # gcc will use -pthreads.
- #
- acx_pthread_flags="-mt -pthreads pthread -pthread $acx_pthread_flags"
- ;;
-esac
-
-if test x"$acx_pthread_ok" = xno; then
-for flag in $acx_pthread_flags; do
-
- case $flag in
- none)
- AC_MSG_CHECKING([whether pthreads work without any flags])
- ;;
-
- -*)
- AC_MSG_CHECKING([whether pthreads work with $flag])
- PTHREAD_CXXFLAGS="$flag"
- ;;
-
- pthread-config)
- AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
- if test x"$acx_pthread_config" = xno; then continue; fi
- PTHREAD_CXXFLAGS="`pthread-config --cflags`"
- PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
- ;;
-
- *)
- AC_MSG_CHECKING([for the pthreads library -l$flag])
- PTHREAD_LIBS="-l$flag"
- ;;
- esac
-
- save_LIBS="$LIBS"
- save_CXXFLAGS="$CXXFLAGS"
- LIBS="$PTHREAD_LIBS $LIBS"
- CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
-
- # Check for various functions. We must include pthread.h,
- # since some functions may be macros. (On the Sequent, we
- # need a special flag -Kthread to make this header compile.)
- # We check for pthread_join because it is in -lpthread on IRIX
- # while pthread_create is in libc. We check for pthread_attr_init
- # due to DEC craziness with -lpthreads. We check for
- # pthread_cleanup_push because it is one of the few pthread
- # functions on Solaris that doesn't have a non-functional libc stub.
- # We try pthread_create on general principles.
- #
- AC_TRY_LINK([#include <pthread.h>],
- [pthread_t th; pthread_join(th, 0);
- pthread_attr_init(0); pthread_cleanup_push(0, 0);
- pthread_create(0,0,0,0); pthread_cleanup_pop(0);],
- [acx_pthread_ok=yes])
-
- LIBS="$save_LIBS"
- CXXFLAGS="$save_CXXFLAGS"
-
- AC_MSG_RESULT($acx_pthread_ok)
- if test "x$acx_pthread_ok" = xyes; then
- break;
- fi
-
- PTHREAD_LIBS=""
- PTHREAD_CXXFLAGS=""
-done
-fi
-
-# Various other checks:
-if test "x$acx_pthread_ok" = xyes; then
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
-
-dnl # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
-dnl AC_MSG_CHECKING([for joinable pthread attribute])
-dnl attr_name=unknown
-dnl for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
-dnl AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
-dnl [attr_name=$attr; break])
-dnl done
-dnl AC_MSG_RESULT($attr_name)
-dnl if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
-dnl AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
-dnl [Define to necessary symbol if this constant
-dnl uses a non-standard name on your system.])
-dnl fi
-
- AC_MSG_CHECKING([if more special flags are required for pthreads])
- flag=no
- case "${host_cpu}-${host_os}" in
- *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
- # CS: Add _REENTRANT in Linux to emulate -pthread.
- #
- *-linux* | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
- esac
- AC_MSG_RESULT(${flag})
- if test "x$flag" != xno; then
- PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
- fi
-
- LIBS="$save_LIBS"
- CXXFLAGS="$save_CXXFLAGS"
-
-dnl # More AIX lossage: must compile with xlC_r
-dnl if test x"$GXX" != xyes; then
-dnl AC_CHECK_PROGS(PTHREAD_CXX, xlC_r, ${CXX})
-dnl else
-dnl PTHREAD_CXX=$CXX
-dnl fi
-
-else
- PTHREAD_CXX="$CXX"
-fi
-
-AC_SUBST(PTHREAD_LIBS)
-AC_SUBST(PTHREAD_CXXFLAGS)
-AC_SUBST(PTHREAD_CXX)
-
-# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
-if test x"$acx_pthread_ok" = xyes; then
- ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
- :
-else
- acx_pthread_ok=no
- $2
-fi
-AC_LANG_RESTORE
-])dnl ACX_PTHREAD
diff --git a/m4/c++11.m4 b/m4/c++11.m4
deleted file mode 100644
index 42d38ad..0000000
--- a/m4/c++11.m4
+++ /dev/null
@@ -1,37 +0,0 @@
-dnl file : m4/cxx11.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl CXX11(MACRO, DESCRIPTION)
-dnl
-dnl Check if we are compiling in the C++11 mode. If we are, define MACRO as
-dnl both a macro and conditional as well as set the cxx11 variable to 'yes'.
-dnl
-AC_DEFUN([CXX11],
-[
-cxx11=no
-
-AC_MSG_CHECKING([whether we are in C++11 mode])
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <memory>
-
-int
-main ()
-{
- std::shared_ptr<int> p (new int (10));
- *p = 11;
-}
-])],
-[cxx11=yes])
-
-if test x"$cxx11" = xyes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE([$1], [1], [$2])
-else
- AC_MSG_RESULT([no])
-fi
-
-AM_CONDITIONAL([$1], [test x$cxx11 = xyes])
-
-])dnl
diff --git a/m4/database.m4 b/m4/database.m4
deleted file mode 100644
index baa0fb5..0000000
--- a/m4/database.m4
+++ /dev/null
@@ -1,59 +0,0 @@
-dnl file : m4/database.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl DATABASE
-dnl
-AC_DEFUN([DATABASE], [
-database=none
-
-AC_MSG_CHECKING([for database to use])
-
-AC_ARG_WITH(
- [database],
- [AC_HELP_STRING([--with-database=DB],
- [database to use for tests; valid values are: 'mysql', 'sqlite', 'pgsql', 'oracle', and 'mssql'])],
- [case $withval in
- no | yes)
- AC_MSG_RESULT([])
- AC_MSG_ERROR([no database specified in the --with-database option])
- ;;
- mysql)
- database=mysql
- AC_DEFINE([DATABASE_MYSQL], [1], [Using MySQL.])
- ;;
- sqlite)
- database=sqlite
- AC_DEFINE([DATABASE_SQLITE], [1], [Using SQLite.])
- ;;
- pgsql)
- database=pgsql
- AC_DEFINE([DATABASE_PGSQL], [1], [Using PostgreSQL.])
- ;;
- oracle)
- database=oracle
- AC_DEFINE([DATABASE_ORACLE], [1], [Using Oracle.])
- ;;
- mssql)
- database=mssql
- AC_DEFINE([DATABASE_MSSQL], [1], [Using SQL Server.])
- ;;
- *)
- AC_MSG_RESULT([])
- AC_MSG_ERROR([unknown database $withval])
- ;;
- esac],
- [
- AC_MSG_RESULT([])
- AC_MSG_ERROR([no database specified with the --with-database option])
- ])
-
-AC_MSG_RESULT([$database])
-AC_SUBST([database])
-
-AM_CONDITIONAL([DATABASE_MYSQL], [test x$database = xmysql])
-AM_CONDITIONAL([DATABASE_SQLITE], [test x$database = xsqlite])
-AM_CONDITIONAL([DATABASE_PGSQL], [test x$database = xpgsql])
-AM_CONDITIONAL([DATABASE_ORACLE], [test x$database = xoracle])
-AM_CONDITIONAL([DATABASE_MSSQL], [test x$database = xmssql])
-
-])dnl
diff --git a/m4/libboost.m4 b/m4/libboost.m4
deleted file mode 100644
index 2223493..0000000
--- a/m4/libboost.m4
+++ /dev/null
@@ -1,184 +0,0 @@
-dnl file : m4/libboost.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBBOOST([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBBOOST], [
-libboost_found=no
-
-AC_MSG_CHECKING([for boost base headers])
-
-AC_ARG_WITH(
- [boost],
- [AC_HELP_STRING([--with-boost=DIR],[location of boost build directory])],
- [libboost_dir=${withval}],
- [libboost_dir=])
-
-# If libboost_dir was given, add the necessary preprocessor and linker flags.
-#
-if test x"$libboost_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libboost_dir], [$ac_pwd], [$libboost_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libboost_dir"
- LDFLAGS="$LDFLAGS -L$abs_libboost_dir/stage/lib"
-fi
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <boost/version.hpp>
-
-#ifndef BOOST_VERSION
-# error BOOST_VERSION not defined
-#endif
-
-int
-main ()
-{
-}
-])],
-[
-libboost_found=yes
-])
-
-if test x"$libboost_found" = xno; then
- if test x"$libboost_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libboost_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
-dnl
-dnl LIBBOOST_HEADER_LIB(NAME, SOURCE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-dnl
-AC_DEFUN([LIBBOOST_HEADER_LIB], [
-libboost_$1_found=no
-
-AC_MSG_CHECKING([for boost $1 library])
-CXX_LIBTOOL_LINK_IFELSE([$2],[libboost_$1_found=yes])
-
-if test x"$libboost_$1_found" = xyes; then
- AC_MSG_RESULT([yes])
- [$3]
-else
- AC_MSG_RESULT([no])
- [$4]
-fi
-])dnl
-dnl
-dnl LIBBOOST_LIB(NAME, SOURCE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-dnl
-AC_DEFUN([LIBBOOST_LIB], [
-libboost_$1_found=no
-
-AC_MSG_CHECKING([for boost $1 library])
-
-save_LIBS="$LIBS"
-LIBS="-lboost_$1 $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([$2],[libboost_$1_found=yes])
-
-# Try to fall back on the -mt version for backwards-compatibility.
-#
-if test x"$libboost_$1_found" = xno; then
- LIBS="-lboost_$1-mt $save_LIBS"
- CXX_LIBTOOL_LINK_IFELSE([$2],[libboost_$1_found=yes])
-fi
-
-if test x"$libboost_$1_found" = xno; then
- LIBS="$save_LIBS"
-fi
-
-if test x"$libboost_$1_found" = xyes; then
- AC_MSG_RESULT([yes])
- [$3]
-else
- AC_MSG_RESULT([no])
- [$4]
-fi
-])dnl
-dnl
-dnl LIBBOOST_SMART_PTR([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-AC_DEFUN([LIBBOOST_SMART_PTR], [
-LIBBOOST_HEADER_LIB([smart_ptr],[
-AC_LANG_SOURCE([
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
-int
-main ()
-{
- boost::shared_ptr<int> sp (new int (10));
- boost::weak_ptr<int> wp (sp);
-}
-])],
-[$1],
-[$2])
-])dnl
-dnl
-dnl LIBBOOST_UNORDERED([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-AC_DEFUN([LIBBOOST_UNORDERED], [
-LIBBOOST_HEADER_LIB([unordered],[
-AC_LANG_SOURCE([
-#include <boost/unordered_set.hpp>
-#include <boost/unordered_map.hpp>
-
-int
-main ()
-{
- boost::unordered_set<int> s;
- boost::unordered_map<int, int> m;
-
- s.insert (1);
- return m.find (1) != m.end ();
-}
-])],
-[$1],
-[$2])
-])dnl
-dnl
-dnl LIBBOOST_SYSTEM([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-AC_DEFUN([LIBBOOST_SYSTEM], [
-LIBBOOST_LIB([system],[
-AC_LANG_SOURCE([
-int
-main ()
-{
-}
-])],
-[$1],
-[$2])
-])dnl
-dnl
-dnl LIBBOOST_DATE_TIME([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-AC_DEFUN([LIBBOOST_DATE_TIME], [
-LIBBOOST_LIB([date_time],[
-AC_LANG_SOURCE([
-#include <boost/date_time/gregorian/gregorian.hpp>
-
-int
-main ()
-{
- boost::gregorian::greg_month m (1);
- const char* s (m.as_short_string ());
- return s == 0;
-}
-])],
-[$1],
-[$2])
-])dnl
diff --git a/m4/libodb-boost.m4 b/m4/libodb-boost.m4
deleted file mode 100644
index 454bd90..0000000
--- a/m4/libodb-boost.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl file : m4/libodb-boost.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB_BOOST([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB_BOOST], [
-libodb_boost_found=no
-
-AC_ARG_WITH(
- [libodb-boost],
- [AC_HELP_STRING([--with-libodb-boost=DIR],[location of libodb-boost build directory])],
- [libodb_boost_dir=${withval}],
- [libodb_boost_dir=])
-
-AC_MSG_CHECKING([for libodb-boost])
-
-# If libodb_boost_dir was given, add the necessary preprocessor and
-# linker flags.
-#
-if test x"$libodb_boost_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_boost_dir], [$ac_pwd], [$libodb_boost_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_boost_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_boost_dir/odb/boost"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb-boost $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/boost/exception.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::boost::exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_boost_found=yes])
-
-if test x"$libodb_boost_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_boost_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_boost_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libodb-mssql.m4 b/m4/libodb-mssql.m4
deleted file mode 100644
index 7ab52d8..0000000
--- a/m4/libodb-mssql.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl file : m4/libodb-mssql.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB_MSSQL([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB_MSSQL], [
-libodb_mssql_found=no
-
-AC_ARG_WITH(
- [libodb-mssql],
- [AC_HELP_STRING([--with-libodb-mssql=DIR],[location of libodb-mssql build directory])],
- [libodb_mssql_dir=${withval}],
- [libodb_mssql_dir=])
-
-AC_MSG_CHECKING([for libodb-mssql])
-
-# If libodb_mssql_dir was given, add the necessary preprocessor and
-# linker flags.
-#
-if test x"$libodb_mssql_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_mssql_dir], [$ac_pwd], [$libodb_mssql_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_mssql_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_mssql_dir/odb/mssql"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb-mssql $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/mssql/exceptions.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::mssql::database_exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_mssql_found=yes])
-
-if test x"$libodb_mssql_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_mssql_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_mssql_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libodb-mysql.m4 b/m4/libodb-mysql.m4
deleted file mode 100644
index f0f6d1b..0000000
--- a/m4/libodb-mysql.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl file : m4/libodb-mysql.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB_MYSQL([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB_MYSQL], [
-libodb_mysql_found=no
-
-AC_ARG_WITH(
- [libodb-mysql],
- [AC_HELP_STRING([--with-libodb-mysql=DIR],[location of libodb-mysql build directory])],
- [libodb_mysql_dir=${withval}],
- [libodb_mysql_dir=])
-
-AC_MSG_CHECKING([for libodb-mysql])
-
-# If libodb_mysql_dir was given, add the necessary preprocessor and
-# linker flags.
-#
-if test x"$libodb_mysql_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_mysql_dir], [$ac_pwd], [$libodb_mysql_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_mysql_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_mysql_dir/odb/mysql"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb-mysql $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/mysql/exceptions.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::mysql::database_exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_mysql_found=yes])
-
-if test x"$libodb_mysql_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_mysql_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_mysql_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libodb-oracle.m4 b/m4/libodb-oracle.m4
deleted file mode 100644
index 10028ff..0000000
--- a/m4/libodb-oracle.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl file : m4/libodb-oracle.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB_ORACLE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB_ORACLE], [
-libodb_oracle_found=no
-
-AC_ARG_WITH(
- [libodb-oracle],
- [AC_HELP_STRING([--with-libodb-oracle=DIR],[location of libodb-oracle build directory])],
- [libodb_oracle_dir=${withval}],
- [libodb_oracle_dir=])
-
-AC_MSG_CHECKING([for libodb-oracle])
-
-# If libodb_oracle_dir was given, add the necessary preprocessor and
-# linker flags.
-#
-if test x"$libodb_oracle_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_oracle_dir], [$ac_pwd], [$libodb_oracle_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_oracle_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_oracle_dir/odb/oracle"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb-oracle $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/oracle/exceptions.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::oracle::database_exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_oracle_found=yes])
-
-if test x"$libodb_oracle_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_oracle_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_oracle_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libodb-pgsql.m4 b/m4/libodb-pgsql.m4
deleted file mode 100644
index cd6495d..0000000
--- a/m4/libodb-pgsql.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl file : m4/libodb-pgsql.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB_PGSQL([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB_PGSQL], [
-libodb_pgsql_found=no
-
-AC_ARG_WITH(
- [libodb-pgsql],
- [AC_HELP_STRING([--with-libodb-pgsql=DIR],[location of libodb-pgsql build directory])],
- [libodb_pgsql_dir=${withval}],
- [libodb_pgsql_dir=])
-
-AC_MSG_CHECKING([for libodb-pgsql])
-
-# If libodb_pgsql_dir was given, add the necessary preprocessor and
-# linker flags.
-#
-if test x"$libodb_pgsql_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_pgsql_dir], [$ac_pwd], [$libodb_pgsql_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_pgsql_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_pgsql_dir/odb/pgsql"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb-pgsql $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/pgsql/exceptions.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::pgsql::database_exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_pgsql_found=yes])
-
-if test x"$libodb_pgsql_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_pgsql_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_pgsql_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libodb-qt.m4 b/m4/libodb-qt.m4
deleted file mode 100644
index 76ebfb3..0000000
--- a/m4/libodb-qt.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl file : m4/libodb-qt.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB_QT([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB_QT], [
-libodb_qt_found=no
-
-AC_ARG_WITH(
- [libodb-qt],
- [AC_HELP_STRING([--with-libodb-qt=DIR],[location of libodb-qt build directory])],
- [libodb_qt_dir=${withval}],
- [libodb_qt_dir=])
-
-AC_MSG_CHECKING([for libodb-qt])
-
-# If libodb_qt_dir was given, add the necessary preprocessor and
-# linker flags.
-#
-if test x"$libodb_qt_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_qt_dir], [$ac_pwd], [$libodb_qt_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_qt_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_qt_dir/odb/qt"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb-qt $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/qt/exception.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::qt::exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_qt_found=yes])
-
-if test x"$libodb_qt_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_qt_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_qt_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libodb-sqlite.m4 b/m4/libodb-sqlite.m4
deleted file mode 100644
index 46ea966..0000000
--- a/m4/libodb-sqlite.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl file : m4/libodb-sqlite.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB_SQLITE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB_SQLITE], [
-libodb_sqlite_found=no
-
-AC_ARG_WITH(
- [libodb-sqlite],
- [AC_HELP_STRING([--with-libodb-sqlite=DIR],[location of libodb-sqlite build directory])],
- [libodb_sqlite_dir=${withval}],
- [libodb_sqlite_dir=])
-
-AC_MSG_CHECKING([for libodb-sqlite])
-
-# If libodb_sqlite_dir was given, add the necessary preprocessor and
-# linker flags.
-#
-if test x"$libodb_sqlite_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_sqlite_dir], [$ac_pwd], [$libodb_sqlite_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_sqlite_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_sqlite_dir/odb/sqlite"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb-sqlite $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/sqlite/exceptions.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::sqlite::database_exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_sqlite_found=yes])
-
-if test x"$libodb_sqlite_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_sqlite_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_sqlite_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libodb.m4 b/m4/libodb.m4
deleted file mode 100644
index 0dba7c4..0000000
--- a/m4/libodb.m4
+++ /dev/null
@@ -1,81 +0,0 @@
-dnl file : m4/libodb.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl LIBODB([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBODB], [
-libodb_found=no
-
-AC_ARG_WITH(
- [libodb],
- [AC_HELP_STRING([--with-libodb=DIR],[location of libodb build directory])],
- [libodb_dir=${withval}],
- [libodb_dir=])
-
-AC_MSG_CHECKING([for libodb])
-
-# If libodb_dir was given, add the necessary preprocessor and linker flags.
-#
-if test x"$libodb_dir" != x; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LDFLAGS="$LDFLAGS"
-
- AS_SET_CATFILE([abs_libodb_dir], [$ac_pwd], [$libodb_dir])
-
- CPPFLAGS="$CPPFLAGS -I$abs_libodb_dir"
- LDFLAGS="$LDFLAGS -L$abs_libodb_dir/odb"
-fi
-
-save_LIBS="$LIBS"
-LIBS="-lodb $LIBS"
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/exception.hxx>
-
-void
-f ()
-{
-}
-
-const char*
-g ()
-{
- try
- {
- f ();
- }
- catch (const odb::exception& e)
- {
- return e.what ();
- }
- return 0;
-}
-
-int
-main ()
-{
- const char* m (g ());
- return m != 0;
-}
-])],
-[libodb_found=yes])
-
-if test x"$libodb_found" = xno; then
- LIBS="$save_LIBS"
-
- if test x"$libodb_dir" != x; then
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- fi
-fi
-
-if test x"$libodb_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libqt.m4 b/m4/libqt.m4
deleted file mode 100644
index c2be2e7..0000000
--- a/m4/libqt.m4
+++ /dev/null
@@ -1,121 +0,0 @@
-dnl file : m4/libqt.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl
-dnl LIBQTCORE_COMPILE()
-dnl
-AC_DEFUN([LIBQTCORE_COMPILE], [
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-// See libodb-qt/odb/qt/details/config.hxx for more information on
-// what's going on here.
-//
-# if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
-# include <QtCore/qconfig.h> // QT_REDUCE_RELOCATIONS
-# ifdef QT_REDUCE_RELOCATIONS
-# define __PIE__
-# endif
-# endif
-#include <string>
-#include <QtCore/QString>
-
-int
-main ()
-{
- QString qs ("test");
- std::string ss (qs.toStdString ());
- return ss.size () != 0;
-}
-])],
-[libqt_found=yes])
-])dnl
-dnl
-dnl LIBQTCORE([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
-dnl
-dnl
-AC_DEFUN([LIBQTCORE], [
-libqt_found=no
-
-# QtCore libraries and pkg-config names in the order we should try
-# them.
-#
-libqt_lib_names="Qt5Core QtCore5 QtCore Qt4Core QtCore4"
-libqt_pkg_names="Qt5Core QtCore"
-
-AC_PATH_PROG([pkg_config],[pkg-config])
-
-AC_MSG_CHECKING([for QtCore])
-
-# First check for QtCore using default CPPFLAGS/LDFLAGS/LIBS. This
-# test allows the user to override the QtCore library name (e.g.,
-# QtCored4, Qt5Core) via the LIBS variable.
-#
-LIBQTCORE_COMPILE
-
-# Then check for QtCore using default CPPFLAGS/LDFLAGS.
-#
-if test x"$libqt_found" = xno; then
- for lib in $libqt_lib_names; do
- save_LIBS="$LIBS"
- LIBS="-l$lib $LIBS"
-
- LIBQTCORE_COMPILE
-
- if test x"$libqt_found" = xno; then
- LIBS="$save_LIBS"
- else
- break
- fi
- done
-fi
-
-# Try framework in case we are on Mac OS X.
-#
-if test x"$libqt_found" = xno; then
- save_LIBS="$LIBS"
- LIBS="-framework QtCore $LIBS"
-
- LIBQTCORE_COMPILE
-
- if test x"$libqt_found" = xno; then
- LIBS="$save_LIBS"
- fi
-fi
-
-# If default CPPFLAGS/LDFLAGS didn't work, try to discover
-# them using pkg-config.
-#
-if test x"$libqt_found" = xno; then
- if test x"$pkg_config" != x; then
- for pkg in $libqt_pkg_names; do
- if $pkg_config --exists $pkg; then
- save_CPPFLAGS="$CPPFLAGS"
- save_LIBS="$LIBS"
-
- CPPFLAGS=`$pkg_config --cflags $pkg`
- LIBS=`$pkg_config --libs $pkg`
-
- CPPFLAGS="$CPPFLAGS $save_CPPFLAGS"
- LIBS="$LIBS $save_LIBS"
-
- LIBQTCORE_COMPILE
-
- if test x"$libqt_found" = xno; then
- CPPFLAGS="$save_CPPFLAGS"
- LIBS="$save_LIBS"
- else
- break
- fi
- fi
- done
- fi
-fi
-
-if test x"$libqt_found" = xyes; then
- AC_MSG_RESULT([yes])
- $1
-else
- AC_MSG_RESULT([no])
- $2
-fi
-])dnl
diff --git a/m4/libtool-link.m4 b/m4/libtool-link.m4
deleted file mode 100644
index 302639f..0000000
--- a/m4/libtool-link.m4
+++ /dev/null
@@ -1,45 +0,0 @@
-dnl file : m4/libtool-link.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl
-dnl CXX_LIBTOOL_LINK_IFELSE (input, [action-if-true], [action-if-false])
-dnl
-dnl Similar to AC_LINK_IFELSE except it uses libtool to perform the
-dnl linking and it does this using the C++ compiler.
-dnl
-AC_DEFUN([CXX_LIBTOOL_LINK_IFELSE],[
-AC_LANG_SAVE
-AC_LANG(C++)
-
-if test -d .libs; then
- delete_libs_dir=no
-else
- delete_libs_dir=yes
-fi
-
-AC_COMPILE_IFELSE([$1],
-[
- ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&AS_MESSAGE_LOG_FD'
- if _AC_DO_VAR(ac_try); then
- libtool_link_ok=yes
- else
- libtool_link_ok=no
- fi
-],
-[
- libtool_link_ok=no
-])
-
-if test x"$delete_libs_dir" = xyes; then
- rm -rf .libs
-fi
-
-if test x"$libtool_link_ok" = xyes; then
-[$2]
-:
-else
-[$3]
-:
-fi
-
-AC_LANG_RESTORE])dnl
diff --git a/m4/mssql.m4 b/m4/mssql.m4
deleted file mode 100644
index 5debeb2..0000000
--- a/m4/mssql.m4
+++ /dev/null
@@ -1,224 +0,0 @@
-dnl file : m4/mssql.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl MSSQL
-dnl
-AC_DEFUN([MSSQL], [
-
-# Client.
-#
-AC_MSG_CHECKING([for mssql client program])
-AC_ARG_WITH(
- [mssql-client],
- [AC_HELP_STRING([--with-mssql-client=PATH], [SQL Server client program path (sqlcmd by default)])],
- [case $withval in
- yes)
- mssql_client=sqlcmd
- ;;
- no)
- AC_MSG_RESULT([])
- AC_MSG_ERROR([need mssql client to run the tests])
- ;;
- *)
- mssql_client=$withval
- ;;
- esac],
- [mssql_client=sqlcmd])
-
-$mssql_client -? 2>/dev/null 1>&2
-
-if test x"$?" = x0; then
- AC_MSG_RESULT([$mssql_client])
-else
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([mssql client is not found; consider using --with-mssql-client=PATH])
-fi
-
-# User. If 'no' is specified, then use Windows authentication.
-#
-AC_MSG_CHECKING([for mssql database user])
-AC_ARG_WITH(
- [mssql-user],
- [AC_HELP_STRING([--with-mssql-user=NAME], [SQL Server database user (odb_test by default)])],
- [case $withval in
- yes)
- mssql_user=odb_test
- mssql_user_set=yes
- ;;
- no)
- mssql_user_set=no
- ;;
- *)
- mssql_user=$withval
- mssql_user_set=yes
- ;;
- esac],
- [mssql_user=odb_test
- mssql_user_set=yes])
-
-if test x$mssql_user_set = xyes; then
- AC_MSG_RESULT(['$mssql_user'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Password. Can be left unspecified if using Windows authentication.
-#
-AC_MSG_CHECKING([for mssql database password])
-AC_ARG_WITH(
- [mssql-password],
- [AC_HELP_STRING([--with-mssql-password=PASS], [SQL Server database password (odb_test by default)])],
- [case $withval in
- yes)
- mssql_password=odb_test
- mssql_password_set=yes
- ;;
- no)
- mssql_password_set=no
- ;;
- *)
- mssql_password=$withval
- mssql_password_set=yes
- ;;
- esac],
- [mssql_password_set=no])
-
-if test x$mssql_password_set = xyes; then
- AC_MSG_RESULT(['$mssql_password'])
-elif test x$mssql_user = xodb_test; then
- mssql_password=odb_test
- mssql_password_set=yes
- AC_MSG_RESULT(['$mssql_password'])
-else
- AC_MSG_RESULT([none])
- if test x$mssql_user_set = xyes; then
- AC_MSG_ERROR([password not specified; SQL Server requires a password (--with-mssql-password=PASS)])
- fi
-fi
-
-# Database. If not specified, use the user's default.
-#
-AC_MSG_CHECKING([for mssql database name])
-AC_ARG_WITH(
- [mssql-db],
- [AC_HELP_STRING([--with-mssql-db=NAME], [SQL Server database name (odb_test by default). Note that all data in this database WILL BE LOST!])],
- [case $withval in
- yes)
- mssql_db=odb_test
- mssql_db_set=yes
- ;;
- no)
- mssql_db_set=no
- ;;
- *)
- mssql_db=$withval
- mssql_db_set=yes
- ;;
- esac],
- [mssql_db=odb_test
- mssql_db_set=yes])
-
-if test x$mssql_db_set = xyes; then
- AC_MSG_RESULT(['$mssql_db'])
-else
- AC_MSG_RESULT([default])
-fi
-
-# Server.
-#
-AC_MSG_CHECKING([for mssql instance address])
-AC_ARG_WITH(
- [mssql-server],
- [AC_HELP_STRING([--with-mssql-server=ADDR], [SQL Server instance address])],
- [case $withval in
- yes | no)
- mssql_server_set=no
- ;;
- *)
- mssql_server=$withval
- mssql_server_set=yes
- ;;
- esac],
- [mssql_server_set=no])
-
-if test x$mssql_server_set = xyes; then
- AC_MSG_RESULT(['$mssql_server'])
-else
- AC_MSG_RESULT([none])
- AC_MSG_ERROR([instance address not specified; SQL Server instance address is required (--with-mssql-server=ADDR)])
-fi
-
-# Driver.
-#
-AC_MSG_CHECKING([for mssql native client odbc driver])
-AC_ARG_WITH(
- [mssql-driver],
- [AC_HELP_STRING([--with-mssql-driver=NAME], [SQL Server Native Client ODBC driver (latest available by default)])],
- [case $withval in
- yes | no)
- mssql_driver_set=no
- ;;
- *)
- mssql_driver=$withval
- mssql_driver_set=yes
- ;;
- esac],
- [mssql_driver_set=no])
-
-if test x$mssql_driver_set = xyes; then
- AC_MSG_RESULT(['$mssql_driver'])
-else
- AC_MSG_RESULT([latest])
-fi
-
-# Create options file.
-#
-AC_CONFIG_COMMANDS([mssql.options],
- [
- rm -f mssql.options
- echo '#! /bin/sh' >mssql-driver
-
- echo 'opt=' >>mssql-driver
-
- if test x$mssql_user_set = xyes; then
- echo "--user '$mssql_user'" >>mssql.options
- echo 'opt="$opt -U '"$mssql_user"'"' >>mssql-driver
-
- echo "--password '$mssql_password'" >>mssql.options
- echo 'opt="$opt -P '"$mssql_password"'"' >>mssql-driver
- fi
-
- if test x$mssql_db_set = xyes; then
- echo "--database '$mssql_db'" >>mssql.options
- echo 'opt="$opt -d '"$mssql_db"'"' >>mssql-driver
- fi
-
- echo "--server '$mssql_server'" >>mssql.options
- echo 'opt="$opt -S '"$mssql_server"'"' >>mssql-driver
-
- if test x$mssql_driver_set = xyes; then
- echo "--driver '$mssql_driver'" >>mssql.options
- fi
-
- echo 'opt="$opt -x -r -b"' >>mssql-driver
- echo 'if test x$[]1 != x; then' >>mssql-driver
- echo " exec $mssql_client "'$opt -i $[]1' >>mssql-driver
- echo "else" >>mssql-driver
- echo " exec $mssql_client "'$opt' >>mssql-driver
- echo "fi" >>mssql-driver
-
- chmod +x mssql-driver
- ],
- [
- mssql_client="$mssql_client"
- mssql_user="$mssql_user"
- mssql_user_set="$mssql_user_set"
- mssql_password="$mssql_password"
- mssql_db="$mssql_db"
- mssql_db_set="$mssql_db_set"
- mssql_server="$mssql_server"
- mssql_driver="$mssql_driver"
- mssql_driver_set="$mssql_driver_set"
- ])
-
-])dnl
diff --git a/m4/mysql.m4 b/m4/mysql.m4
deleted file mode 100644
index 7564726..0000000
--- a/m4/mysql.m4
+++ /dev/null
@@ -1,270 +0,0 @@
-dnl file : m4/mysql.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl MYSQL
-dnl
-AC_DEFUN([MYSQL], [
-
-# Client.
-#
-AC_MSG_CHECKING([for mysql client program])
-AC_ARG_WITH(
- [mysql-client],
- [AC_HELP_STRING([--with-mysql-client=PATH], [MySQL client program path (mysql by default)])],
- [case $withval in
- yes)
- mysql_client=mysql
- ;;
- no)
- AC_MSG_RESULT([])
- AC_MSG_ERROR([need mysql client to run the tests])
- ;;
- *)
- mysql_client=$withval
- ;;
- esac],
- [mysql_client=mysql])
-
-$mysql_client --version 2>/dev/null 1>&2
-
-if test x"$?" = x0; then
- AC_MSG_RESULT([$mysql_client])
-else
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([mysql client is not found; consider using --with-mysql-client=PATH])
-fi
-
-# User.
-#
-AC_MSG_CHECKING([for mysql database user])
-AC_ARG_WITH(
- [mysql-user],
- [AC_HELP_STRING([--with-mysql-user=NAME], [MySQL database user (odb_test by default)])],
- [case $withval in
- yes)
- mysql_user=odb_test
- mysql_user_set=yes
- ;;
- no)
- mysql_user_set=no
- ;;
- *)
- mysql_user=$withval
- mysql_user_set=yes
- ;;
- esac],
- [mysql_user=odb_test
- mysql_user_set=yes])
-
-if test x$mysql_user_set = xyes; then
- AC_MSG_RESULT(['$mysql_user'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Password.
-#
-AC_MSG_CHECKING([for mysql database password])
-AC_ARG_WITH(
- [mysql-password],
- [AC_HELP_STRING([--with-mysql-password=PASS], [MySQL database password (no password by default)])],
- [case $withval in
- yes)
- mysql_password=
- mysql_password_set=yes
- ;;
- no)
- mysql_password_set=no
- ;;
- *)
- mysql_password=$withval
- mysql_password_set=yes
- ;;
- esac],
- [mysql_password_set=no])
-
-if test x$mysql_password_set = xyes; then
- AC_MSG_RESULT(['$mysql_password'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Database name.
-#
-AC_MSG_CHECKING([for mysql database name])
-AC_ARG_WITH(
- [mysql-db],
- [AC_HELP_STRING([--with-mysql-db=NAME], [MySQL database name (odb_test by default). Note that all data in this database WILL BE LOST!])],
- [case $withval in
- yes)
- mysql_db=odb_test
- mysql_db_set=yes
- ;;
- no)
- mysql_db_set=no
- ;;
- *)
- mysql_db=$withval
- mysql_db_set=yes
- ;;
- esac],
- [mysql_db=odb_test
- mysql_db_set=yes])
-
-if test x$mysql_db_set = xyes; then
- AC_MSG_RESULT(['$mysql_db'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Host.
-#
-AC_MSG_CHECKING([for mysql database host])
-AC_ARG_WITH(
- [mysql-host],
- [AC_HELP_STRING([--with-mysql-host=HOST], [MySQL database host (localhost by default)])],
- [case $withval in
- yes)
- mysql_host=localhost
- mysql_host_set=yes
- ;;
- no)
- mysql_host_set=no
- ;;
- *)
- mysql_host=$withval
- mysql_host_set=yes
- ;;
- esac],
- [mysql_host_set=no])
-
-if test x$mysql_host_set = xyes; then
- AC_MSG_RESULT(['$mysql_host'])
-else
- AC_MSG_RESULT([localhost])
-fi
-
-# Port.
-#
-AC_MSG_CHECKING([for mysql database port])
-AC_ARG_WITH(
- [mysql-port],
- [AC_HELP_STRING([--with-mysql-port=PORT], [MySQL database port (standard MySQL port by default)])],
- [case $withval in
- yes)
- mysql_port=0
- mysql_port_set=yes
- ;;
- no)
- mysql_port_set=no
- ;;
- *)
- mysql_port=$withval
- mysql_port_set=yes
- ;;
- esac],
- [mysql_port_set=no])
-
-if test x$mysql_port_set = xyes; then
- AC_MSG_RESULT(['$mysql_port'])
-else
- AC_MSG_RESULT([default])
-fi
-
-# Socket.
-#
-AC_MSG_CHECKING([for mysql database socket])
-AC_ARG_WITH(
- [mysql-socket],
- [AC_HELP_STRING([--with-mysql-socket=SOCKET], [MySQL database socket (standard MySQL socket by default)])],
- [case $withval in
- yes)
- mysql_socket=
- mysql_socket_set=yes
- ;;
- no)
- mysql_socket_set=no
- ;;
- *)
- mysql_socket=$withval
- mysql_socket_set=yes
- ;;
- esac],
- [mysql_socket_set=no])
-
-if test x$mysql_socket_set = xyes; then
- AC_MSG_RESULT(['$mysql_socket'])
-else
- AC_MSG_RESULT([default])
-fi
-
-# Create options file.
-#
-AC_CONFIG_COMMANDS([mysql.options],
- [
- rm -f mysql.options
- echo '#! /bin/sh' >mysql-driver
-
- echo 'opt=' >>mysql-driver
-
- if test x$mysql_user_set = xyes; then
- echo "--user '$mysql_user'" >>mysql.options
- echo 'opt="$opt --user='"$mysql_user"'"' >>mysql-driver
- fi
-
- if test x$mysql_password_set = xyes; then
- echo "--password '$mysql_password'" >>mysql.options
- echo 'opt="$opt --password='"$mysql_password"'"' >>mysql-driver
- fi
-
- if test x$mysql_db_set = xyes; then
- echo "--database '$mysql_db'" >>mysql.options
- echo 'opt="$opt --database='"$mysql_db"'"' >>mysql-driver
- fi
-
- if test x$mysql_host_set = xyes; then
- echo "--host '$mysql_host'" >>mysql.options
- echo 'opt="$opt --host='"$mysql_host"'"' >>mysql-driver
- fi
-
- if test x$mysql_port_set = xyes; then
- echo "--port '$mysql_port'" >>mysql.options
- echo 'opt="$opt --port='"$mysql_port"'"' >>mysql-driver
- fi
-
- if test x$mysql_socket_set = xyes; then
- echo "--socket '$mysql_socket'" >>mysql.options
- echo 'opt="$opt --socket='"$mysql_socket"'"' >>mysql-driver
- fi
-
- echo 'if test x$[]1 != x; then' >>mysql-driver
- echo " exec $mysql_client "'$opt <$[]1' >>mysql-driver
- echo "else" >>mysql-driver
- echo " exec $mysql_client "'$opt' >>mysql-driver
- echo "fi" >>mysql-driver
-
- chmod +x mysql-driver
- ],
- [
- mysql_client="$mysql_client"
-
- mysql_user="$mysql_user"
- mysql_user_set="$mysql_user_set"
-
- mysql_password="$mysql_password"
- mysql_password_set="$mysql_password_set"
-
- mysql_db="$mysql_db"
- mysql_db_set="$mysql_db_set"
-
- mysql_host="$mysql_host"
- mysql_host_set="$mysql_host_set"
-
- mysql_port="$mysql_port"
- mysql_port_set="$mysql_port_set"
-
- mysql_socket="$mysql_socket"
- mysql_socket_set="$mysql_socket_set"
- ])
-
-])dnl
diff --git a/m4/odb.m4 b/m4/odb.m4
deleted file mode 100644
index 3e1b19b..0000000
--- a/m4/odb.m4
+++ /dev/null
@@ -1,43 +0,0 @@
-dnl file : m4/odb.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl ODB_COMPILER([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-dnl
-AC_DEFUN([ODB_COMPILER], [
-odb_found=no
-
-AC_ARG_VAR([ODB],[ODB compiler command])
-AC_ARG_VAR([ODBFLAGS],[ODB compiler flags])
-AC_ARG_VAR([ODBCPPFLAGS],[ODB-specific C++ preprocessor flags])
-
-AC_ARG_WITH(
- [odb],
- [AC_HELP_STRING([--with-odb=DIR],[location of odb compiler build directory])],
- [odb_dir=${withval}],
- [odb_dir=])
-
-AC_MSG_CHECKING([for odb])
-
-save_ODB="$ODB"
-
-if test x"$ODB" = x; then
- if test x"$odb_dir" != x; then
- AS_SET_CATFILE([abs_odb_dir], [$ac_pwd], [$odb_dir])
- ODB="$abs_odb_dir/odb/odb"
- else
- ODB=odb
- fi
-fi
-
-$ODB --version 2>/dev/null 1>&2
-
-if test x"$?" = x0; then
- AC_MSG_RESULT([$ODB])
- $1
-else
- AC_MSG_RESULT([no])
- ODB="$save_ODB"
- $2
-fi
-
-])dnl
diff --git a/m4/oracle.m4 b/m4/oracle.m4
deleted file mode 100644
index c095214..0000000
--- a/m4/oracle.m4
+++ /dev/null
@@ -1,243 +0,0 @@
-dnl file : m4/oracle.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl ORACLE
-dnl
-AC_DEFUN([ORACLE], [
-
-# Client.
-#
-AC_MSG_CHECKING([for oracle client program])
-AC_ARG_WITH(
- [oracle-client],
- [AC_HELP_STRING([--with-oracle-client=PATH], [Oracle client program path (sqlplus by default)])],
- [case $withval in
- yes)
- oracle_client=sqlplus
- ;;
- no)
- AC_MSG_RESULT([])
- AC_MSG_ERROR([need oracle client to run the tests])
- ;;
- *)
- oracle_client=$withval
- ;;
- esac],
- [oracle_client=sqlplus])
-
-$oracle_client -V 2>/dev/null 1>&2
-
-if test x"$?" = x0; then
- AC_MSG_RESULT([$oracle_client])
-else
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([oracle client is not found; consider using --with-oracle-client=PATH])
-fi
-
-# User.
-#
-AC_MSG_CHECKING([for oracle database user])
-AC_ARG_WITH(
- [oracle-user],
- [AC_HELP_STRING([--with-oracle-user=NAME], [Oracle database user (odb_test by default)])],
- [case $withval in
- yes)
- oracle_user=odb_test
- oracle_user_set=yes
- ;;
- no)
- oracle_user_set=no
- ;;
- *)
- oracle_user=$withval
- oracle_user_set=yes
- ;;
- esac],
- [oracle_user=odb_test
- oracle_user_set=yes])
-
-if test x$oracle_user_set = xyes; then
- AC_MSG_RESULT(['$oracle_user'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Password.
-#
-AC_MSG_CHECKING([for oracle database password])
-AC_ARG_WITH(
- [oracle-password],
- [AC_HELP_STRING([--with-oracle-password=PASS], [Oracle database password (odb_test by default)])],
- [case $withval in
- yes)
- oracle_password=odb_test
- oracle_password_set=yes
- ;;
- no)
- oracle_password_set=no
- ;;
- *)
- oracle_password=$withval
- oracle_password_set=yes
- ;;
- esac],
- [oracle_password_set=no])
-
-if test x$oracle_password_set = xyes; then
- AC_MSG_RESULT(['$oracle_password'])
-elif test x$oracle_user = xodb_test; then
- oracle_password=odb_test
- oracle_password_set=yes
- AC_MSG_RESULT(['$oracle_password'])
-elif test x$oracle_user != x/; then
- AC_MSG_RESULT([none])
- AC_MSG_ERROR([password not specified; Oracle requires a password (--with-oracle-password=PASS)])
-fi
-
-# Service name.
-#
-AC_MSG_CHECKING([for oracle service name])
-AC_ARG_WITH(
- [oracle-service],
- [AC_HELP_STRING([--with-oracle-service=NAME], [Oracle service name (default service if left empty). Note that all data associated with this user on this service WILL BE LOST!])],
- [case $withval in
- yes)
- oracle_service=
- oracle_service_set=yes
- ;;
- no)
- oracle_service_set=no
- ;;
- *)
- oracle_service=$withval
- oracle_service_set=yes
- ;;
- esac],
- [oracle_service_set=no])
-
-if test x$oracle_service_set = xyes; then
- AC_MSG_RESULT(['$oracle_service'])
-else
- AC_MSG_RESULT([default])
-fi
-
-# Host.
-#
-AC_MSG_CHECKING([for oracle database host])
-AC_ARG_WITH(
- [oracle-host],
- [AC_HELP_STRING([--with-oracle-host=HOST], [Oracle database host (localhost by default)])],
- [case $withval in
- yes)
- oracle_host=localhost
- oracle_host_set=yes
- ;;
- no)
- oracle_host_set=no
- ;;
- *)
- oracle_host=$withval
- oracle_host_set=yes
- ;;
- esac],
- [oracle_host_set=no])
-
-if test x$oracle_host_set = xyes; then
- AC_MSG_RESULT(['$oracle_host'])
-else
- AC_MSG_RESULT([localhost])
-fi
-
-# Port.
-#
-AC_MSG_CHECKING([for oracle database port])
-AC_ARG_WITH(
- [oracle-port],
- [AC_HELP_STRING([--with-oracle-port=PORT], [Oracle database port (standard Oracle port by default)])],
- [case $withval in
- yes)
- oracle_port=1521
- oracle_port_set=yes
- ;;
- no)
- oracle_port_set=no
- ;;
- *)
- oracle_port=$withval
- oracle_port_set=yes
- ;;
- esac],
- [oracle_port_set=no])
-
-if test x$oracle_port_set = xyes; then
- AC_MSG_RESULT(['$oracle_port'])
-else
- AC_MSG_RESULT([default])
-fi
-
-# Create options file.
-#
-AC_CONFIG_COMMANDS([oracle.options],
- [
- rm -f oracle.options
- echo '#! /bin/sh' >oracle-driver
-
- echo 'conn_str=' >>oracle-driver
-
- if test x$oracle_user_set = xyes; then
- echo "--user '$oracle_user'" >>oracle.options
- echo 'conn_str="'"$oracle_user"'"' >>oracle-driver
- fi
-
- if test x$oracle_password_set = xyes; then
- echo "--password '$oracle_password'" >>oracle.options
- echo 'conn_str="$conn_str/'"$oracle_password"'"' >>oracle-driver
- fi
-
- if test x$oracle_host_set = xyes; then
- echo "--host '$oracle_host'" >>oracle.options
- echo 'conn_str="$conn_str@//'"$oracle_host"'"' >>oracle-driver
-
- if test x$oracle_port_set = xyes; then
- echo "--port '$oracle_port'" >>oracle.options
- echo 'conn_str="$conn_str:'"$oracle_port"'"' >>oracle-driver
- fi
- fi
-
- if test x$oracle_service != x; then
- if test x$oracle_host_set = xno; then
- echo 'conn_str="$conn_str@"' >>oracle-driver
- fi
-
- echo "--service '$oracle_service'" >>oracle.options
- echo 'conn_str="$conn_str/'"$oracle_service"'"' >>oracle-driver
- fi
-
- echo 'if test x$[]1 != x; then' >>oracle-driver
- echo " exec $oracle_client -L -S "'$conn_str @$[]1' >>oracle-driver
- echo "else" >>oracle-driver
- echo " exec $oracle_client -L -S "'$conn_str' >>oracle-driver
- echo "fi" >>oracle-driver
-
- chmod +x oracle-driver
- ],
- [
- oracle_client="$oracle_client"
-
- oracle_user="$oracle_user"
- oracle_user_set="$oracle_user_set"
-
- oracle_password="$oracle_password"
- oracle_password_set="$oracle_password_set"
-
- oracle_service="$oracle_service"
- oracle_service_set="$oracle_service_set"
-
- oracle_host="$oracle_host"
- oracle_host_set="$oracle_host_set"
-
- oracle_port="$oracle_port"
- oracle_port_set="$oracle_port_set"
- ])
-
-])dnl
diff --git a/m4/pgsql.m4 b/m4/pgsql.m4
deleted file mode 100644
index eb29a62..0000000
--- a/m4/pgsql.m4
+++ /dev/null
@@ -1,204 +0,0 @@
-dnl file : m4/pgsql.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl PGSQL
-dnl
-AC_DEFUN([PGSQL], [
-
-# Client.
-#
-AC_MSG_CHECKING([for pgsql client program])
-AC_ARG_WITH(
- [pgsql-client],
- [AC_HELP_STRING([--with-pgsql-client=PATH], [PostgreSQL client program path (psql by default)])],
- [case $withval in
- yes)
- pgsql_client=psql
- ;;
- no)
- AC_MSG_RESULT([])
- AC_MSG_ERROR([need pgsql client to run the tests])
- ;;
- *)
- pgsql_client=$withval
- ;;
- esac],
- [pgsql_client=psql])
-
-$pgsql_client --version 2>/dev/null 1>&2
-
-if test x"$?" = x0; then
- AC_MSG_RESULT([$pgsql_client])
-else
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([pgsql client is not found; consider using --with-pgsql-client=PATH])
-fi
-
-# User.
-#
-AC_MSG_CHECKING([for pgsql database user])
-AC_ARG_WITH(
- [pgsql-user],
- [AC_HELP_STRING([--with-pgsql-user=NAME], [PostgreSQL database user (odb_test by default). The user must be able to login without specifying a password.])],
- [case $withval in
- yes)
- pgsql_user=odb_test
- pgsql_user_set=yes
- ;;
- no)
- pgsql_user_set=no
- ;;
- *)
- pgsql_user=$withval
- pgsql_user_set=yes
- ;;
- esac],
- [pgsql_user=odb_test
- pgsql_user_set=yes])
-
-if test x$pgsql_user_set = xyes; then
- AC_MSG_RESULT(['$pgsql_user'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Database name.
-#
-AC_MSG_CHECKING([for pgsql database name])
-AC_ARG_WITH(
- [pgsql-db],
- [AC_HELP_STRING([--with-pgsql-db=NAME], [PostgreSQL database name (odb_test by default). Note that all data in this database WILL BE LOST!])],
- [case $withval in
- yes)
- pgsql_db=odb_test
- pgsql_db_set=yes
- ;;
- no)
- pgsql_db_set=no
- ;;
- *)
- pgsql_db=$withval
- pgsql_db_set=yes
- ;;
- esac],
- [pgsql_db=odb_test
- pgsql_db_set=yes])
-
-if test x$pgsql_db_set = xyes; then
- AC_MSG_RESULT(['$pgsql_db'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Host.
-#
-AC_MSG_CHECKING([for pgsql database host])
-AC_ARG_WITH(
- [pgsql-host],
- [AC_HELP_STRING([--with-pgsql-host=HOST], [PostgreSQL database host (local host by default)])],
- [case $withval in
- yes)
- pgsql_host=
- pgsql_host_set=yes
- ;;
- no)
- pgsql_host_set=no
- ;;
- *)
- pgsql_host=$withval
- pgsql_host_set=yes
- ;;
- esac],
- [pgsql_host_set=no])
-
-if test x$pgsql_host_set = xyes; then
- AC_MSG_RESULT(['$pgsql_host'])
-else
- AC_MSG_RESULT([localhost])
-fi
-
-# Port.
-#
-AC_MSG_CHECKING([for pgsql database port])
-AC_ARG_WITH(
- [pgsql-port],
- [AC_HELP_STRING([--with-pgsql-port=PORT], [PostgreSQL database port (standard PostgreSQL port by default)])],
- [case $withval in
- yes)
- pgsql_port=0
- pgsql_port_set=yes
- ;;
- no)
- pgsql_port_set=no
- ;;
- *)
- pgsql_port=$withval
- pgsql_port_set=yes
- ;;
- esac],
- [pgsql_port_set=no])
-
-if test x$pgsql_port_set = xyes; then
- AC_MSG_RESULT(['$pgsql_port'])
-else
- AC_MSG_RESULT([default])
-fi
-
-# Create options file.
-#
-AC_CONFIG_COMMANDS([pgsql.options],
- [
- rm -f pgsql.options
- echo '#! /bin/sh' >pgsql-driver
-
- echo 'opt=' >>pgsql-driver
-
- if test x$pgsql_user_set = xyes; then
- echo "--username '$pgsql_user'" >>pgsql.options
- echo 'opt="$opt --username='"$pgsql_user"'"' >>pgsql-driver
- fi
-
- if test x$pgsql_db_set = xyes; then
- echo "--dbname '$pgsql_db'" >>pgsql.options
- echo 'opt="$opt --dbname='"$pgsql_db"'"' >>pgsql-driver
- fi
-
- if test x$pgsql_host_set = xyes; then
- echo "--host '$pgsql_host'" >>pgsql.options
- echo 'opt="$opt --host='"$pgsql_host"'"' >>pgsql-driver
- fi
-
- if test x$pgsql_port_set = xyes; then
- echo "--port '$pgsql_port'" >>pgsql.options
- echo 'opt="$opt --port='"$pgsql_port"'"' >>pgsql-driver
- fi
-
- echo 'opt="$opt --quiet"' >>pgsql-driver
- echo 'PGOPTIONS=--client-min-messages=warning' >>pgsql-driver
- echo 'export PGOPTIONS' >>pgsql-driver
-
- echo 'if test x$[]1 != x; then' >>pgsql-driver
- echo " exec $pgsql_client "'$opt --set ON_ERROR_STOP=1 -f $[]1' >>pgsql-driver
- echo "else" >>pgsql-driver
- echo " exec $pgsql_client "'$opt' >>pgsql-driver
- echo "fi" >>pgsql-driver
-
- chmod +x pgsql-driver
- ],
- [
- pgsql_client="$pgsql_client"
-
- pgsql_user="$pgsql_user"
- pgsql_user_set="$pgsql_user_set"
-
- pgsql_db="$pgsql_db"
- pgsql_db_set="$pgsql_db_set"
-
- pgsql_host="$pgsql_host"
- pgsql_host_set="$pgsql_host_set"
-
- pgsql_port="$pgsql_port"
- pgsql_port_set="$pgsql_port_set"
- ])
-
-])dnl
diff --git a/m4/sqlite.m4 b/m4/sqlite.m4
deleted file mode 100644
index 7c1a53e..0000000
--- a/m4/sqlite.m4
+++ /dev/null
@@ -1,59 +0,0 @@
-dnl file : m4/sqlite.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl SQLITE
-dnl
-AC_DEFUN([SQLITE], [
-
-# Database file.
-#
-AC_MSG_CHECKING([for sqlite database file])
-AC_ARG_WITH(
- [sqlite-db],
- [AC_HELP_STRING([--with-sqlite-db=FILE], [SQLite database file (odb-test.db by default). Note that all data in this database WILL BE LOST!])],
- [case $withval in
- yes)
- sqlite_db=odb-test.db
- sqlite_db_set=yes
- ;;
- no)
- sqlite_db_set=no
- ;;
- *)
- sqlite_db=$withval
- sqlite_db_set=yes
- ;;
- esac],
- [sqlite_db=odb-test.db
- sqlite_db_set=yes])
-
-if test x$sqlite_db_set = xyes; then
-
- # Make it an absolute path unless it is one of the special values.
- #
- if test x$sqlite_db != x -a x$sqlite_db != x:memory:; then
- AS_SET_CATFILE([abs_sqlite_db], [$ac_pwd], [$sqlite_db])
- sqlite_db=$abs_sqlite_db
- fi
-
- AC_MSG_RESULT(['$sqlite_db'])
-else
- AC_MSG_RESULT([none])
-fi
-
-# Create options file.
-#
-AC_CONFIG_COMMANDS([sqlite.options],
- [
- rm -f sqlite.options
-
- if test x$sqlite_db_set = xyes; then
- echo "--database '$sqlite_db'" >>sqlite.options
- fi
- ],
- [
- sqlite_db="$sqlite_db"
- sqlite_db_set="$sqlite_db_set"
- ])
-
-])dnl
diff --git a/m4/threads.m4 b/m4/threads.m4
deleted file mode 100644
index 6f2e25f..0000000
--- a/m4/threads.m4
+++ /dev/null
@@ -1,68 +0,0 @@
-dnl file : m4/threads.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-AC_DEFUN([THREADS],[
-
-threads_thread_keyword=no
-
-AC_ARG_ENABLE(
- [threads],
- AS_HELP_STRING([--disable-threads], [disable threads (enabled by default)]),
- [AS_IF([test x"$enableval" = xno], [threads=none], [threads=check])],
- [threads=check])
-
-# If thread support is not disabled by the user, figure out what we can use.
-#
-if test x$threads = xcheck; then
- case $host_os in
- windows* | mingw*)
- case $host_os in
- mingw*)
- CXXFLAGS="$CXXFLAGS -mthreads"
- ;;
- esac
-
- # Newer versions of GCC can be configured to use either Win32 or POSIX
- # threads. It appears that -mthreads should be used in both cases but
- # if the model is POSIX then GCC will also link -lpthread by default.
- # Use that fact to test which model we have.
- #
- AC_TRY_LINK([#include <pthread.h>],
- [pthread_create(0,0,0,0);],
- [threads=posix],
- [threads=win32])
- ;;
- *)
- ACX_PTHREAD
-
- if test x$acx_pthread_ok = xyes; then
- threads=posix
- LIBS="$LIBS $PTHREAD_LIBS"
- CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
-
- # Check if we can use the __thread keyword.
- #
- AC_MSG_CHECKING([for __thread keyword])
-
- CXX_LIBTOOL_LINK_IFELSE([
- AC_LANG_SOURCE([
- __thread int tls_var;
-
- int
- main ()
- {
- tls_var = 0;
- }
- ])],
- [threads_thread_keyword=yes])
-
- AC_MSG_RESULT([$threads_thread_keyword])
- fi
- ;;
- esac
-fi
-
-if test x$threads = xcheck; then
- AC_MSG_ERROR([thread support not available; use --disable-threads to force single-threaded mode])
-fi
-])dnl
diff --git a/m4/tr1-memory.m4 b/m4/tr1-memory.m4
deleted file mode 100644
index a70f397..0000000
--- a/m4/tr1-memory.m4
+++ /dev/null
@@ -1,38 +0,0 @@
-dnl file : m4/tr1-memory.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl TR1_MEMORY
-dnl
-dnl Check for TR1 <memory> availability. If successful, define HAVE_TR1_MEMORY
-dnl as both a macro and conditional as well as set the tr1_memory variable
-dnl to 'yes'.
-dnl
-AC_DEFUN([TR1_MEMORY],
-[
-tr1_memory=no
-
-AC_MSG_CHECKING([for TR1 <memory>])
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <odb/tr1/memory.hxx>
-
-int
-main ()
-{
- std::tr1::shared_ptr<int> p (new int (10));
- *p = 11;
-}
-])],
-[tr1_memory=yes])
-
-if test x"$tr1_memory" = xyes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE([HAVE_TR1_MEMORY], [1], [Have TR1 <memory>.])
-else
- AC_MSG_RESULT([no])
-fi
-
-AM_CONDITIONAL([HAVE_TR1_MEMORY], [test x$tr1_memory = xyes])
-
-])dnl
diff --git a/makefile b/makefile
deleted file mode 100644
index a9f4eec..0000000
--- a/makefile
+++ /dev/null
@@ -1,88 +0,0 @@
-# file : makefile
-# license : GNU GPL; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make
-
-dirs := \
-access \
-composite \
-container \
-hello \
-inheritance/polymorphism \
-inheritance/reuse \
-query \
-mapping \
-optimistic \
-pimpl \
-prepared \
-schema/embedded \
-section
-
-tr1_dirs := relationship inverse schema/custom view
-cxx11_dirs := c++11
-boost_dirs := boost
-qt_dirs := qt
-
-default := $(out_base)/
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-$(default):
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-
-dist_dirs := $(dirs) $(tr1_dirs) $(cxx11_dirs) $(boost_dirs) $(qt_dirs)
-all_dirs := $(dirs) $(tr1_dirs) $(cxx11_dirs) $(boost_dirs) $(qt_dirs) \
-template
-
-build_dirs := $(dirs) $(tr1_dirs) $(boost_dirs) $(qt_dirs) template
-
-ifeq ($(cxx_standard),c++11)
-build_dirs += $(cxx11_dirs)
-endif
-
-$(default): $(addprefix $(out_base)/,$(addsuffix /,$(build_dirs)))
-
-$(dist): name := examples
-$(dist): export dirs := $(dirs)
-$(dist): export tr1_dirs := $(tr1_dirs)
-$(dist): export cxx11_dirs := $(cxx11_dirs)
-$(dist): export boost_dirs := $(boost_dirs)
-$(dist): export qt_dirs := $(qt_dirs)
-$(dist): data_dist := GPLv2 LICENSE README NEWS INSTALL version tester.bat \
-mysql-driver.bat mysql.options sqlite-driver.bat sqlite.options \
-pgsql-driver.bat pgsql.options oracle-driver.bat oracle.options \
-mssql-driver.bat mssql.options
-$(dist): exec_dist := bootstrap tester.in
-$(dist): export extra_dist := $(data_dist) $(exec_dist) test.bat \
-$(call vc8slns,$(name)) $(call vc9slns,$(name)) $(call vc10slns,$(name)) \
-$(call vc11slns,$(name)) $(call vc12slns,$(name))
-$(dist): export version = $(shell cat $(src_root)/version)
-
-$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(dist_dirs)))
- $(call dist-data,$(data_dist))
- $(call dist-exec,$(exec_dist))
- $(call dist-dir,m4)
- $(call meta-automake)
- $(call meta-autoconf)
- $(call meta-vc8slns,$(name))
- $(call meta-vc9slns,$(name))
- $(call meta-vc10slns,$(name))
- $(call meta-vc11slns,$(name))
- $(call meta-vc12slns,$(name))
- $(call meta-vctest,$(name)-mysql-vc10.sln,test.bat)
-
-$(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(build_dirs)))
-$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(all_dirs)))
-
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8sln.make)
-$(call include,$(bld_root)/meta/vc9sln.make)
-$(call include,$(bld_root)/meta/vc10sln.make)
-$(call include,$(bld_root)/meta/vc11sln.make)
-$(call include,$(bld_root)/meta/vc12sln.make)
-$(call include,$(bld_root)/meta/vctest.make)
-$(call include,$(bld_root)/meta/automake.make)
-$(call include,$(bld_root)/meta/autoconf.make)
-
-$(foreach d,$(all_dirs),$(call import,$(src_base)/$d/makefile))
diff --git a/mapping/makefile b/mapping/makefile
deleted file mode 100644
index 0e4d97a..0000000
--- a/mapping/makefile
+++ /dev/null
@@ -1,127 +0,0 @@
-# file : mapping/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---hxx-prologue '\#include "traits.hxx"' --table-prefix mapping_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export extra_headers := traits.hxx $(databases:%=traits-%.hxx)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) $(extra_headers) \
-README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/mssql-driver.bat b/mssql-driver.bat
deleted file mode 100644
index 174cbf0..0000000
--- a/mssql-driver.bat
+++ /dev/null
@@ -1,61 +0,0 @@
-@echo off
-rem file : mssql-driver.bat
-rem license : GNU GPL v2; see accompanying LICENSE file
-
-rem
-rem mssql-driver.bat sql-file
-rem
-rem Run the mssql client on the SQL file specified. Adjust the
-rem options below to match your SQL Server setup.
-rem
-
-setlocal
-
-set "options=%MSSQL_OPTIONS%"
-
-rem User.
-rem
-set "options=%options% -U odb_test"
-
-rem Password.
-rem
-set "options=%options% -P odb_test"
-
-rem Database name.
-rem
-set "options=%options% -d odb_test"
-
-rem SQL Server instance address.
-rem
-rem set "options=%options% -S host\instance"
-rem set "options=%options% -S tcp:host,port"
-
-rem Standard options.
-rem
-set "options=%options% -x -r -b"
-
-set "mssql=%MSSQL_CLIENT%"
-
-if "_%mssql%_" == "__" set "mssql=sqlcmd"
-
-if "_%1_" == "__" (
- echo no sql file specified
- goto usage
-)
-
-%mssql% %options% -i %1
-
-if errorlevel 1 goto error
-goto end
-
-:usage
-echo.
-echo usage: mssql-driver.bat sql-file
-echo.
-
-:error
-endlocal
-exit /b 1
-
-:end
-endlocal
diff --git a/mssql.options b/mssql.options
deleted file mode 100644
index 6e201e2..0000000
--- a/mssql.options
+++ /dev/null
@@ -1,10 +0,0 @@
-# Sample Microsoft SQL Server options file used to run the tests. Adjust to
-# match your SQL Server setup.
-#
-
---user odb_test
---password odb_test
---database odb_test
-# --server host\instance
-# --server tcp:host,port
-# --driver
diff --git a/mysql-driver.bat b/mysql-driver.bat
deleted file mode 100644
index 8dde6f9..0000000
--- a/mysql-driver.bat
+++ /dev/null
@@ -1,46 +0,0 @@
-@echo off
-rem file : mysql-driver.bat
-rem license : GNU GPL v2; see accompanying LICENSE file
-
-rem
-rem mysql-driver.bat sql-file
-rem
-rem Run the mysql client on the SQL file specified. Adjust the
-rem options below to match your MySQL setup.
-rem
-
-setlocal
-
-set "options=%MYSQL_OPTIONS%"
-set "options=%options% --user=odb_test"
-set "options=%options% --database=odb_test"
-rem set "options=%options% --password="
-rem set "options=%options% --host="
-rem set "options=%options% --port="
-rem set "options=%options% --socket="
-
-set "mysql=%MYSQL_CLIENT%"
-
-if "_%mysql%_" == "__" set "mysql=mysql"
-
-if "_%1_" == "__" (
- echo no sql file specified
- goto usage
-)
-
-%mysql% %options% < %1
-
-if errorlevel 1 goto error
-goto end
-
-:usage
-echo.
-echo usage: mysql-driver.bat sql-file
-echo.
-
-:error
-endlocal
-exit /b 1
-
-:end
-endlocal
diff --git a/mysql.options b/mysql.options
deleted file mode 100644
index fe79a7c..0000000
--- a/mysql.options
+++ /dev/null
@@ -1,10 +0,0 @@
-# Sample MySQL options file used to run the tests. Adjust to
-# match your MySQL setup.
-#
-
---user odb_test
---database odb_test
-# --password
-# --host
-# --port
-# --socket
diff --git a/odb-examples/.gitignore b/odb-examples/.gitignore
new file mode 100644
index 0000000..4f5aa7a
--- /dev/null
+++ b/odb-examples/.gitignore
@@ -0,0 +1,39 @@
+# Compiler/linker output.
+#
+*.d
+*.t
+*.i
+*.i.*
+*.ii
+*.ii.*
+*.o
+*.obj
+*.gcm
+*.pcm
+*.ifc
+*.so
+*.dylib
+*.dll
+*.a
+*.lib
+*.exp
+*.pdb
+*.ilk
+*.exe
+*.exe.dlls/
+*.exe.manifest
+*.pc
+
+# Example executables.
+#
+driver
+
+# ODB-generated files.
+#
+*-odb.?xx
+*.sql
+
+# Testscript output directories (can be symlinks).
+#
+test
+test-driver
diff --git a/GPLv2 b/odb-examples/GPLv2
index 3912109..3912109 100644
--- a/GPLv2
+++ b/odb-examples/GPLv2
diff --git a/LICENSE b/odb-examples/LICENSE
index 9d92da1..9d92da1 100644
--- a/LICENSE
+++ b/odb-examples/LICENSE
diff --git a/odb-examples/README.md b/odb-examples/README.md
new file mode 100644
index 0000000..45b24c1
--- /dev/null
+++ b/odb-examples/README.md
@@ -0,0 +1,102 @@
+# odb-examples - ODB compiler usage examples
+
+This package contains examples of using `odb`, object-relational mapping (ORM)
+compiler for C++. The following list gives an overview of the available
+examples. See the `README` file accompanying each example for more
+information. See `odb-tests/README.md` for instructions on setting up various
+databases to run these examples.
+
+Note also that most of the examples use the --table-prefix ODB compiler
+option to assign a unique prefix to tables created by each example. This
+is done to allow examples to run against the same database without
+causing any schema conflicts. You don't have to use this option in your
+own applications.
+
+## hello
+
+A "Hello World" example that shows how to use ODB to perform basic database
+operations.
+
+## query
+
+Shows how to use the ODB Query Language to search the database for persistent
+objects matching certain criteria.
+
+## composite
+
+Shows how to declare and use composite value types.
+
+## container
+
+Shows how to use containers as data members in persistent objects.
+
+## relationship
+
+Shows how to declare and use unidirectional to-one and to-many relationships.
+
+## inverse
+
+Shows how to declare and use bidirectional one-to-one, one-to-many, and
+many-to-many relationships.
+
+## inheritance/reuse
+
+Shows how to use reuse inheritance with ODB.
+
+## inheritance/polymorphism
+
+Shows how to use polymorphism inheritance with ODB.
+
+## section
+
+Shows how to use object sections to implement lazy-loading and change-updating
+of a subset of data members in a persistent class.
+
+## view
+
+Shows how to define and use object, table, mixed, and native views.
+
+## prepared
+
+Shows how to use prepared queries.
+
+## optimistic
+
+Shows how to use optimistic concurrency in ODB.
+
+## pimpl
+
+Shows how to use virtual data members to implement a persistent class that
+employs the pimpl C++ idiom.
+
+## c++11
+
+Shows how to use ODB with C++11.
+
+## access
+
+Shows various approaches used by ODB to access data members that cannot be
+accessed directly.
+
+## boost
+
+Shows how to persist objects that use Boost smart pointers, containers, and
+value types with the help of the Boost profile library (libodb-boost).
+
+## qt
+
+Shows how to persist objects that use Qt smart pointers, containers, and value
+types with the help of the Qt profile library (libodb-qt).
+
+## schema/embedded
+
+Shows how to generate and use a database schema that is embedded into the
+application.
+
+## schema/custom
+
+Shows how to map persistent C++ classes to a custom database schema.
+
+## mapping
+
+Shows how to customize the mapping between C++ value types and database types.
diff --git a/access/README b/odb-examples/access/README
index 57ca2c7..7fb8b0e 100644
--- a/access/README
+++ b/odb-examples/access/README
@@ -20,7 +20,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-query --generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-query --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/access/buildfile b/odb-examples/access/buildfile
new file mode 100644
index 0000000..e59adda
--- /dev/null
+++ b/odb-examples/access/buildfile
@@ -0,0 +1,44 @@
+# file : access/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix access_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/access/database.hxx b/odb-examples/access/database.hxx
index 11599b0..2180735 100644
--- a/access/database.hxx
+++ b/odb-examples/access/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/access/driver.cxx b/odb-examples/access/driver.cxx
index f5d34c8..b477d6f 100644
--- a/access/driver.cxx
+++ b/odb-examples/access/driver.cxx
@@ -1,7 +1,7 @@
// file : access/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
{
person john ("john@doe.com", "John", "X", "Doe", 31);
diff --git a/access/person.hxx b/odb-examples/access/person.hxx
index a0e37ea..a0e37ea 100644
--- a/access/person.hxx
+++ b/odb-examples/access/person.hxx
diff --git a/odb-examples/access/testscript b/odb-examples/access/testscript
new file mode 100644
index 0000000..33a0392
--- /dev/null
+++ b/odb-examples/access/testscript
@@ -0,0 +1,13 @@
+# file : access/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/boost/README b/odb-examples/boost/README
index 64942bb..64942bb 100644
--- a/boost/README
+++ b/odb-examples/boost/README
diff --git a/boost/database.hxx b/odb-examples/boost/database.hxx
index 293f592..293f592 100644
--- a/boost/database.hxx
+++ b/odb-examples/boost/database.hxx
diff --git a/boost/driver.cxx b/odb-examples/boost/driver.cxx
index 5a096f6..5a096f6 100644
--- a/boost/driver.cxx
+++ b/odb-examples/boost/driver.cxx
diff --git a/boost/employee.hxx b/odb-examples/boost/employee.hxx
index 8d6173a..8d6173a 100644
--- a/boost/employee.hxx
+++ b/odb-examples/boost/employee.hxx
diff --git a/odb-examples/build/.gitignore b/odb-examples/build/.gitignore
new file mode 100644
index 0000000..4a730a3
--- /dev/null
+++ b/odb-examples/build/.gitignore
@@ -0,0 +1,3 @@
+config.build
+root/
+bootstrap/
diff --git a/odb-examples/build/bootstrap.build b/odb-examples/build/bootstrap.build
new file mode 100644
index 0000000..0425a89
--- /dev/null
+++ b/odb-examples/build/bootstrap.build
@@ -0,0 +1,9 @@
+# file : build/bootstrap.build
+# license : GNU GPL v2; see accompanying LICENSE file
+
+project = odb-examples
+
+using version
+using config
+using dist
+using test
diff --git a/odb-examples/build/root.build b/odb-examples/build/root.build
new file mode 100644
index 0000000..ef6df52
--- /dev/null
+++ b/odb-examples/build/root.build
@@ -0,0 +1,274 @@
+# file : build/root.build
+# license : GNU GPL v2; see accompanying LICENSE file
+
+cxx.std = latest
+
+using cxx
+
+hxx{*}: extension = hxx
+ixx{*}: extension = ixx
+txx{*}: extension = txx
+cxx{*}: extension = cxx
+
+define sql: file
+sql{*}: extension = sql
+
+define xml: file
+xml{*}: extension = xml
+
+skeleton = ($build.mode == 'skeleton')
+
+# The identifier of the database to compile and run the examples against. The
+# valid identifiers are mysql, sqlite, pgsql, oracle, and mssql.
+#
+# Note: can be specified by the user but is also conditionally reflected by
+# the libodb-* libraries' examples manifest values.
+#
+config [string] config.odb_examples.database
+
+database = [string] ($defined(config.odb_examples.database) \
+ ? $config.odb_examples.database \
+ : '')
+
+mysql = false
+sqlite = false
+pgsql = false
+oracle = false
+mssql = false
+
+switch $database
+{
+ case 'mysql'
+ mysql = true
+
+ case 'sqlite'
+ sqlite = true
+
+ case 'pgsql'
+ pgsql = true
+
+ case 'oracle'
+ oracle = true
+
+ case 'mssql'
+ mssql = true
+
+ case ''
+ assert ($skeleton) \
+ 'database must be configured via config.odb_examples.database variable'
+
+ default
+ fail "invalid database '$database' specified in config.odb_examples.database value"
+}
+
+# If true, then this package is enabled as external examples for libodb
+# library (see libodb's manifest for details).
+#
+# Note that this variable is not used in this package itself.
+#
+config [bool] config.odb_examples.libodb_example ?= false
+
+# Database connections.
+#
+
+# MySQL
+#
+# The database user.
+#
+config [string] config.odb_examples.mysql.user ?= 'odb_test'
+
+# The database password.
+#
+config [string] config.odb_examples.mysql.passwd
+
+# The database name. Note that it WILL BE MODIFIED by the examples.
+#
+config [string] config.odb_examples.mysql.database ?= 'odb_test'
+
+# The database host.
+#
+config [string] config.odb_examples.mysql.host
+
+# The database port.
+#
+config [uint64] config.odb_examples.mysql.port
+
+# The database socket path.
+#
+config [path] config.odb_examples.mysql.socket
+
+# PostgreSQL
+#
+# The database user. Note that the named user must be allowed to connect to
+# the database server without specifying credentials.
+#
+config [string] config.odb_examples.pgsql.user ?= 'odb_test'
+
+# The database name. Note that it WILL BE MODIFIED by the examples.
+#
+config [string] config.odb_examples.pgsql.database ?= 'odb_test'
+
+# The database host or directory of Unix-domain socket. Leaving this variable
+# undefined results in using Unix-domain sockets. Machines without Unix-domain
+# sockets will connect to localhost.
+#
+config [string] config.odb_examples.pgsql.host
+
+# The database port or the socket file name extension for Unix-domain
+# connections.
+#
+# For example, specifying:
+#
+# config.odb_examples.pgsql.host=/var/run/postgresql
+# config.odb_examples.pgsql.port=5433
+#
+# Will result in the /var/run/postgresql/.s.PGSQL.5433 socket being used.
+#
+config [string] config.odb_examples.pgsql.port
+
+# Oracle
+#
+# The database user.
+#
+config [string] config.odb_examples.oracle.user ?= 'odb_test'
+
+# The database password.
+#
+config [string] config.odb_examples.oracle.passwd
+
+# The database host.
+#
+config [string] config.odb_examples.oracle.host
+
+# The database port.
+#
+config [uint64] config.odb_examples.oracle.port
+
+# The service name. Note that the database associated with this user on this
+# service WILL BE MODIFIED by the examples.
+#
+config [string] config.odb_examples.oracle.service
+
+# Microsoft SQL Server
+#
+# The database user.
+#
+config [string] config.odb_examples.mssql.user ?= 'odb_test'
+
+# The database password.
+#
+config [string] config.odb_examples.mssql.passwd
+
+# The database name. Note that it WILL BE MODIFIED by the examples.
+#
+config [string] config.odb_examples.mssql.database ?= 'odb_test'
+
+# The database host.
+#
+config [string] config.odb_examples.mssql.host
+
+# The database port.
+#
+config [uint64] config.odb_examples.mssql.port
+
+# The SQL Server instance address.
+#
+# Note: mutually exclusive with config.odb_examples.mssql.{host,port}.
+#
+config [string] config.odb_examples.mssql.server
+
+assert (!$defined(config.odb_examples.mssql.server) || \
+ !$defined(config.odb_examples.mssql.host)) \
+ 'variables config.odb_examples.mssql.server and config.odb_examples.mssql.host cannot be specified both'
+
+assert (!$defined(config.odb_examples.mssql.server) || \
+ !$defined(config.odb_examples.mssql.port)) \
+ 'variables config.odb_examples.mssql.server and config.odb_examples.mssql.port cannot be specified both'
+
+# The SQL Server ODBC Driver.
+#
+config [string, null] config.odb_examples.mssql.driver
+
+if! $skeleton
+{
+ if ($cxx.target.system == 'win32-msvc')
+ cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+
+ switch $cxx.class
+ {
+ case 'gcc'
+ {
+ cxx.coptions += -Wno-unknown-pragmas
+ }
+ case 'msvc'
+ {
+ cxx.coptions += /wd4068 /wd4251 /wd4275 /wd4800
+ }
+ }
+
+ # Import odb that we are using.
+ #
+ import! [metadata] odb = odb%exe{odb}
+
+ # Import the mysql client for creating the database schemas, etc.
+ #
+ if $mysql
+ {
+ import! mysql_client = mysql-client%exe{mysql}
+ testscript{*}: mysql_client = $mysql_client
+ }
+ #
+ # Import the psql client for creating the database schemas, etc.
+ #
+ elif $pgsql
+ {
+ import! pgsql_client = psql%exe{psql}
+ testscript{*}: pgsql_client = $pgsql_client
+ }
+ #
+ # Import the sqlplus client for creating the database schemas, etc.
+ #
+ # Note: expected to be system-installed.
+ #
+ elif $oracle
+ {
+ import! oracle_client = sqlplus%exe{sqlplus}
+ testscript{*}: oracle_client = $oracle_client
+ }
+ #
+ # Import the sqlcmd client for creating the database schemas, etc.
+ #
+ # Note: expected to be system-installed.
+ #
+ elif $mssql
+ {
+ import! mssql_client = sqlcmd%exe{sqlcmd}
+ testscript{*}: mssql_client = $mssql_client
+ }
+
+ # Every exe{} in this project is by default a test.
+ #
+ exe{*}: test = true
+
+ # Specify the test target for cross-testing.
+ #
+ test.target = $cxx.target
+}
+
+# The helper targets which can be used as prerequisites of test drivers which
+# require either a specific database client or multiple clients for all the
+# enabled databases.
+#
+alias{mysql-client}: $mysql_client:
+{
+ include = $mysql
+ clean = false
+}
+
+alias{pgsql-client}: $pgsql_client:
+{
+ include = $pgsql
+ clean = false
+}
+
+alias{database-client}: alias{mysql-client pgsql-client}
diff --git a/odb-examples/buildfile b/odb-examples/buildfile
new file mode 100644
index 0000000..91a47b6
--- /dev/null
+++ b/odb-examples/buildfile
@@ -0,0 +1,6 @@
+# file : buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+./: {*/ -build/ -boost/ -qt/} doc{README.md} legal{GPLv2 LICENSE} manifest
+
+./: testscript{*}: include = adhoc
diff --git a/c++11/README b/odb-examples/c++11/README
index fa8780b..7db6a44 100644
--- a/c++11/README
+++ b/odb-examples/c++11/README
@@ -27,19 +27,15 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> --std c++11 --generate-schema --generate-query employee.hxx
+ odb --std c++11 -d <database> --std c++11 --generate-schema \
+ --generate-query employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
- The --std c++11 option is used to instruct the ODB compiler to compile in
- the C++11 mode.
-
database.hxx
Contains the create_database() function which instantiates the concrete
- database class corresponding to the database system we are using. Unlike
- other examples, here we use std::unique_ptr instead of std::auto_ptr to
- return the created database.
+ database class corresponding to the database system we are using.
driver.cxx
Driver for the example. It includes the employee.hxx and employee-odb.hxx
@@ -58,9 +54,9 @@ To compile and link the example manually from the command line we can use
the following commands (using MySQL as an example; replace 'c++ -std=c++11'
with your C++ compiler in C++11 mode):
-c++ -std=c++11 -c employee-odb.cxx
-c++ -std=c++11 -DDATABASE_MYSQL -c driver.cxx
-c++ -std=c++11 -o driver driver.o employee-odb.o -lodb-mysql -lodb
+c++ -c employee-odb.cxx
+c++ -DDATABASE_MYSQL -c driver.cxx
+c++ -o driver driver.o employee-odb.o -lodb-mysql -lodb
To run the example we may first need to create the database schema (for some
database systems, such as SQLite, the schema is embedded into the generated
diff --git a/odb-examples/c++11/buildfile b/odb-examples/c++11/buildfile
new file mode 100644
index 0000000..5287801
--- /dev/null
+++ b/odb-examples/c++11/buildfile
@@ -0,0 +1,44 @@
+# file : c++11/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{employee-meta}: $libodb
+
+exe{driver}: libue{employee-meta} $libs
+
+<{hxx ixx cxx}{employee-odb}>: hxx{employee} libue{employee-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/employee.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix cxx11_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = employee
diff --git a/c++11/database.hxx b/odb-examples/c++11/database.hxx
index f97448f..084f8cf 100644
--- a/c++11/database.hxx
+++ b/odb-examples/c++11/database.hxx
@@ -85,7 +85,8 @@ create_database (int& argc, char* argv[])
#elif defined(DATABASE_ORACLE)
unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- unique_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/c++11/driver.cxx b/odb-examples/c++11/driver.cxx
index 68793b1..68793b1 100644
--- a/c++11/driver.cxx
+++ b/odb-examples/c++11/driver.cxx
diff --git a/c++11/employee.hxx b/odb-examples/c++11/employee.hxx
index 0c2abc7..a921e31 100644
--- a/c++11/employee.hxx
+++ b/odb-examples/c++11/employee.hxx
@@ -1,4 +1,4 @@
-// file : boost/employee.hxx
+// file : c++11/employee.hxx
// copyright : not copyrighted - public domain
#ifndef EMPLOYEE_HXX
diff --git a/odb-examples/c++11/testscript b/odb-examples/c++11/testscript
new file mode 100644
index 0000000..cb942f6
--- /dev/null
+++ b/odb-examples/c++11/testscript
@@ -0,0 +1,13 @@
+# file : cxx11/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/composite/README b/odb-examples/composite/README
index bcb72e3..c6228a3 100644
--- a/composite/README
+++ b/odb-examples/composite/README
@@ -23,7 +23,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-schema --generate-query person.hxx
+ odb --std c++11 -d <database> --generate-schema --generate-query person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/composite/buildfile b/odb-examples/composite/buildfile
new file mode 100644
index 0000000..5eb45ad
--- /dev/null
+++ b/odb-examples/composite/buildfile
@@ -0,0 +1,44 @@
+# file : composite/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix c_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/composite/database.hxx b/odb-examples/composite/database.hxx
index ae7caf4..4520c32 100644
--- a/composite/database.hxx
+++ b/odb-examples/composite/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/composite/driver.cxx b/odb-examples/composite/driver.cxx
index fc228bf..5cac553 100644
--- a/composite/driver.cxx
+++ b/odb-examples/composite/driver.cxx
@@ -1,7 +1,7 @@
// file : composite/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create a person object.
//
@@ -42,7 +42,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- auto_ptr<person> joe (db->load<person> (id));
+ unique_ptr<person> joe (db->load<person> (id));
name_extras& ne (joe->name ().extras ());
ne.nickname ("Squeaky");
ne.aliases ().push_back (basic_name ("Anthony", "Clean"));
@@ -56,7 +56,7 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- auto_ptr<person> joe (db->load<person> (id));
+ unique_ptr<person> joe (db->load<person> (id));
t.commit ();
name& n (joe->name ());
@@ -87,7 +87,7 @@ main (int argc, char* argv[])
transaction t (db->begin ());
- auto_ptr<person> p (
+ unique_ptr<person> p (
db->query_one<person> (
query::name.extras.nickname == "Squeaky"));
diff --git a/composite/person.hxx b/odb-examples/composite/person.hxx
index f0626e5..f0626e5 100644
--- a/composite/person.hxx
+++ b/odb-examples/composite/person.hxx
diff --git a/odb-examples/composite/testscript b/odb-examples/composite/testscript
new file mode 100644
index 0000000..d66ce0f
--- /dev/null
+++ b/odb-examples/composite/testscript
@@ -0,0 +1,13 @@
+# file : composite/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/container/README b/odb-examples/container/README
index 058b001..87f9bc6 100644
--- a/container/README
+++ b/odb-examples/container/README
@@ -16,7 +16,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/container/buildfile b/odb-examples/container/buildfile
new file mode 100644
index 0000000..c850acc
--- /dev/null
+++ b/odb-examples/container/buildfile
@@ -0,0 +1,43 @@
+# file : container/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --output-dir $out_base \
+ --table-prefix container_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/container/database.hxx b/odb-examples/container/database.hxx
index 5756f97..3d23d86 100644
--- a/container/database.hxx
+++ b/odb-examples/container/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/container/driver.cxx b/odb-examples/container/driver.cxx
index 566f89e..b3d50c6 100644
--- a/container/driver.cxx
+++ b/odb-examples/container/driver.cxx
@@ -1,7 +1,7 @@
// file : container/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -50,7 +50,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
unsigned long id;
@@ -79,7 +79,7 @@ main (int argc, char* argv[])
//
{
transaction t1 (db->begin ());
- auto_ptr<person> j (db->load<person> (id));
+ unique_ptr<person> j (db->load<person> (id));
t1.commit ();
print (*j);
@@ -105,7 +105,7 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- auto_ptr<person> j (db->load<person> (id));
+ unique_ptr<person> j (db->load<person> (id));
t.commit ();
print (*j);
diff --git a/container/person.hxx b/odb-examples/container/person.hxx
index 31b90a5..31b90a5 100644
--- a/container/person.hxx
+++ b/odb-examples/container/person.hxx
diff --git a/odb-examples/container/testscript b/odb-examples/container/testscript
new file mode 100644
index 0000000..3068677
--- /dev/null
+++ b/odb-examples/container/testscript
@@ -0,0 +1,13 @@
+# file : container/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/odb-examples/database-options.testscript b/odb-examples/database-options.testscript
new file mode 100644
index 0000000..db93b45
--- /dev/null
+++ b/odb-examples/database-options.testscript
@@ -0,0 +1,148 @@
+# file : database-options.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# For the enabled databases create the example driver option lists (*_options)
+# for subsequent use in the examples. Also create the database-specific client
+# option lists (*_client_options) and command lines (*_client_cmd) which can
+# be used as a base for the data manipulation commands.
+#
++if $mysql
+ mysql_options = --user $config.odb_examples.mysql.user \
+ --database $config.odb_examples.mysql.database
+
+ mysql_client_options = --user $config.odb_examples.mysql.user \
+ --database $config.odb_examples.mysql.database
+
+ if $defined(config.odb_examples.mysql.passwd)
+ mysql_options += --password $config.odb_examples.mysql.passwd
+ mysql_client_options += --password=$config.odb_examples.mysql.passwd
+ end
+
+ if $defined(config.odb_examples.mysql.host)
+ mysql_options += --host $config.odb_examples.mysql.host
+ mysql_client_options += --host $config.odb_examples.mysql.host
+ end
+
+ if $defined(config.odb_examples.mysql.port)
+ mysql_options += --port $config.odb_examples.mysql.port
+ mysql_client_options += --port $config.odb_examples.mysql.port
+ end
+
+ if $defined(config.odb_examples.mysql.socket)
+ mysql_options += --socket $config.odb_examples.mysql.socket
+ mysql_client_options += --socket $config.odb_examples.mysql.socket
+ end
+
+ mysql_client_cmd = $path($mysql_client) $mysql_client_options
+end
+
++if $sqlite
+ sqlite_options = --database odb-test.db
+
+ # Note that we currently don't manipulate the data using the sqlite3
+ # utility. Thus, we don't create the sqlite client option list and command
+ # line.
+ #
+end
+
++if $pgsql
+ pgsql_options = --user $config.odb_examples.pgsql.user \
+ --database $config.odb_examples.pgsql.database
+
+ pgsql_client_options = --quiet \
+ --set ON_ERROR_STOP=1 \
+ --username $config.odb_examples.pgsql.user \
+ --dbname $config.odb_examples.pgsql.database
+
+ if $defined(config.odb_examples.pgsql.host)
+ pgsql_options += --host $config.odb_examples.pgsql.host
+ pgsql_client_options += --host $config.odb_examples.pgsql.host
+ end
+
+ if $defined(config.odb_examples.pgsql.port)
+ pgsql_options += --port $config.odb_examples.pgsql.port
+ pgsql_client_options += --port $config.odb_examples.pgsql.port
+ end
+
+ pgsql_client_cmd = $path($pgsql_client) $pgsql_client_options
+
+ export PGOPTIONS=--client-min-messages=warning
+end
+
++if $oracle
+ oracle_options = --user $config.odb_examples.oracle.user
+
+ oracle_client_options = -L -S
+ oracle_logon = $config.odb_examples.oracle.user
+
+ if $defined(config.odb_examples.oracle.passwd)
+ oracle_options += --password $config.odb_examples.oracle.passwd
+ oracle_logon = "$oracle_logon/$config.odb_examples.oracle.passwd"
+ end
+
+ if ($defined(config.odb_examples.oracle.host) || \
+ $defined(config.odb_examples.oracle.port))
+ if $defined(config.odb_examples.oracle.host)
+ oracle_options += --host $config.odb_examples.oracle.host
+ oracle_logon = "$oracle_logon@//$config.odb_examples.oracle.host"
+ else
+ oracle_logon = "$oracle_logon@//localhost"
+ end
+
+ if $defined(config.odb_examples.oracle.port)
+ oracle_options += --port $config.odb_examples.oracle.port
+ oracle_logon = "$oracle_logon:$config.odb_examples.oracle.port"
+ end
+
+ if $defined(config.odb_examples.oracle.service)
+ oracle_options += --service $config.odb_examples.oracle.service
+ oracle_logon = "$oracle_logon/$config.odb_examples.oracle.service"
+ end
+ elif $defined(config.odb_examples.oracle.service)
+ oracle_options += --service $config.odb_examples.oracle.service
+ oracle_logon = "$oracle_logon@$config.odb_examples.oracle.service"
+ end
+
+ oracle_client_cmd = $path($oracle_client) $oracle_client_options $oracle_logon
+end
+
++if $mssql
+ mssql_options = --user $config.odb_examples.mssql.user \
+ --database $config.odb_examples.mssql.database
+
+ mssql_client_options = -C -x -r 1 -b \
+ -U $config.odb_examples.mssql.user \
+ -d $config.odb_examples.mssql.database
+
+ if $defined(config.odb_examples.mssql.passwd)
+ mssql_options += --password $config.odb_examples.mssql.passwd
+ mssql_client_options += -P $config.odb_examples.mssql.passwd
+ end
+
+ if ($defined(config.odb_examples.mssql.host) || \
+ $defined(config.odb_examples.mssql.port))
+ mssql_server = \
+ "tcp:($defined(config.odb_examples.mssql.host) ? $config.odb_examples.mssql.host : localhost)"
+
+ if $defined(config.odb_examples.mssql.port)
+ mssql_server = "$mssql_server,$config.odb_examples.mssql.port"
+ end
+ elif $defined(config.odb_examples.mssql.server)
+ mssql_server = $config.odb_examples.mssql.server
+ else
+ mssql_server = [null]
+ end
+
+ if ($mssql_server != [null])
+ mssql_options += --server $mssql_server
+ mssql_client_options += -S $mssql_server
+ end
+
+ if ($defined(config.odb_examples.mssql.driver) && \
+ $config.odb_examples.mssql.driver != [null] && \
+ $config.odb_examples.mssql.driver != '')
+ mssql_options += --driver $config.odb_examples.mssql.driver
+ end
+
+ mssql_client_cmd = $path($mssql_client) $mssql_client_options
+end
diff --git a/hello/README b/odb-examples/hello/README
index a068898..61c71b7 100644
--- a/hello/README
+++ b/odb-examples/hello/README
@@ -20,7 +20,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-query --generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-query --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/hello/buildfile b/odb-examples/hello/buildfile
new file mode 100644
index 0000000..db76837
--- /dev/null
+++ b/odb-examples/hello/buildfile
@@ -0,0 +1,44 @@
+# file : hello/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix hello_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/hello/database.hxx b/odb-examples/hello/database.hxx
index 283f5cb..cdfc033 100644
--- a/hello/database.hxx
+++ b/odb-examples/hello/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/hello/driver.cxx b/odb-examples/hello/driver.cxx
index 3a4de8c..175ced1 100644
--- a/hello/driver.cxx
+++ b/odb-examples/hello/driver.cxx
@@ -1,7 +1,7 @@
// file : hello/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
unsigned long john_id, joe_id;
@@ -65,7 +65,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- auto_ptr<person> joe (db->load<person> (joe_id));
+ unique_ptr<person> joe (db->load<person> (joe_id));
joe->age (joe->age () + 1);
db->update (*joe);
@@ -82,7 +82,7 @@ main (int argc, char* argv[])
// database so we use the query_one() shortcut instead of
// manually iterating over the result returned by query().
//
- auto_ptr<person> joe (
+ unique_ptr<person> joe (
db->query_one<person> (query::first == "Joe" &&
query::last == "Dirt"));
diff --git a/hello/person.hxx b/odb-examples/hello/person.hxx
index 81a9321..81a9321 100644
--- a/hello/person.hxx
+++ b/odb-examples/hello/person.hxx
diff --git a/odb-examples/hello/testscript b/odb-examples/hello/testscript
new file mode 100644
index 0000000..2d72ba5
--- /dev/null
+++ b/odb-examples/hello/testscript
@@ -0,0 +1,13 @@
+# file : hello/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/inheritance/polymorphism/README b/odb-examples/inheritance/polymorphism/README
index 8a013b3..15a8543 100644
--- a/inheritance/polymorphism/README
+++ b/odb-examples/inheritance/polymorphism/README
@@ -25,7 +25,7 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> --generate-schema --generate-query employee.hxx
+ odb --std c++11 -d <database> --generate-schema --generate-query employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/inheritance/polymorphism/buildfile b/odb-examples/inheritance/polymorphism/buildfile
new file mode 100644
index 0000000..a501043
--- /dev/null
+++ b/odb-examples/inheritance/polymorphism/buildfile
@@ -0,0 +1,44 @@
+# file : inheritance/polymorphism/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{employee-meta}: $libodb
+
+exe{driver}: libue{employee-meta} $libs
+
+<{hxx ixx cxx}{employee-odb}>: hxx{employee} libue{employee-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/employee.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix inh_poly_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../../alias{database-client}: include = adhoc
+
+testscript@./: schema = employee
diff --git a/inheritance/polymorphism/database.hxx b/odb-examples/inheritance/polymorphism/database.hxx
index 4c65d2d..7b415b7 100644
--- a/inheritance/polymorphism/database.hxx
+++ b/odb-examples/inheritance/polymorphism/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/inheritance/polymorphism/driver.cxx b/odb-examples/inheritance/polymorphism/driver.cxx
index e0c9952..8d24e81 100644
--- a/inheritance/polymorphism/driver.cxx
+++ b/odb-examples/inheritance/polymorphism/driver.cxx
@@ -1,7 +1,7 @@
// file : inheritance/polymorphism/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,15 +20,15 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
unsigned long id1, id2;
// Add a few employee and contractor objects to the database.
//
{
- auto_ptr<person> p1 (new employee ("John", "Doe", true));
- auto_ptr<person> p2 (new contractor ("Jane", "Doe", "jane@doe.com"));
+ unique_ptr<person> p1 (new employee ("John", "Doe", true));
+ unique_ptr<person> p2 (new contractor ("Jane", "Doe", "jane@doe.com"));
transaction t (db->begin ());
id1 = db->persist (*p1); // Stores employee.
@@ -40,8 +40,8 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- auto_ptr<person> p1 (db->load<person> (id1)); // Loads employee.
- auto_ptr<person> p2 (db->load<person> (id2)); // Loads contractor.
+ unique_ptr<person> p1 (db->load<person> (id1)); // Loads employee.
+ unique_ptr<person> p2 (db->load<person> (id2)); // Loads contractor.
t.commit ();
p1->print ();
@@ -53,7 +53,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- auto_ptr<employee> e (db->load<employee> (id1));
+ unique_ptr<employee> e (db->load<employee> (id1));
e->temporary (false);
person& p (*e);
db->update (p); // Updates employee.
@@ -88,9 +88,9 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- auto_ptr<person> p (db->load<person> (id1)); // Loads employee.
- db->erase (*p); // Erases employee.
- db->erase<person> (id2); // Erases contractor.
+ unique_ptr<person> p (db->load<person> (id1)); // Loads employee.
+ db->erase (*p); // Erases employee.
+ db->erase<person> (id2); // Erases contractor.
t.commit ();
}
}
diff --git a/inheritance/polymorphism/employee.cxx b/odb-examples/inheritance/polymorphism/employee.cxx
index 83a51e6..83a51e6 100644
--- a/inheritance/polymorphism/employee.cxx
+++ b/odb-examples/inheritance/polymorphism/employee.cxx
diff --git a/inheritance/polymorphism/employee.hxx b/odb-examples/inheritance/polymorphism/employee.hxx
index efb2c1c..efb2c1c 100644
--- a/inheritance/polymorphism/employee.hxx
+++ b/odb-examples/inheritance/polymorphism/employee.hxx
diff --git a/odb-examples/inheritance/polymorphism/testscript b/odb-examples/inheritance/polymorphism/testscript
new file mode 100644
index 0000000..5c7bdcd
--- /dev/null
+++ b/odb-examples/inheritance/polymorphism/testscript
@@ -0,0 +1,13 @@
+# file : inheritance/polymorphism/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../../database-options.testscript
+.include ../../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/inheritance/reuse/README b/odb-examples/inheritance/reuse/README
index 53e0d90..83f7bd5 100644
--- a/inheritance/reuse/README
+++ b/odb-examples/inheritance/reuse/README
@@ -23,7 +23,7 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> --generate-schema --generate-query employee.hxx
+ odb --std c++11 -d <database> --generate-schema --generate-query employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/inheritance/reuse/buildfile b/odb-examples/inheritance/reuse/buildfile
new file mode 100644
index 0000000..15df240
--- /dev/null
+++ b/odb-examples/inheritance/reuse/buildfile
@@ -0,0 +1,44 @@
+# file : inheritance/reuse/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{employee-meta}: $libodb
+
+exe{driver}: libue{employee-meta} $libs
+
+<{hxx ixx cxx}{employee-odb}>: hxx{employee} libue{employee-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/employee.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix inh_reuse_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../../alias{database-client}: include = adhoc
+
+testscript@./: schema = employee
diff --git a/inheritance/reuse/database.hxx b/odb-examples/inheritance/reuse/database.hxx
index 6fd1bda..f9d3a61 100644
--- a/inheritance/reuse/database.hxx
+++ b/odb-examples/inheritance/reuse/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/inheritance/reuse/driver.cxx b/odb-examples/inheritance/reuse/driver.cxx
index b9a22da..b56a368 100644
--- a/inheritance/reuse/driver.cxx
+++ b/odb-examples/inheritance/reuse/driver.cxx
@@ -1,7 +1,7 @@
// file : inheritance/reuse/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Add a few employees and contractors to the database.
//
@@ -48,7 +48,7 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- auto_ptr<contractor> c (db->load<contractor> ("j.smith@example.com"));
+ unique_ptr<contractor> c (db->load<contractor> ("j.smith@example.com"));
t.commit ();
cout << c->first () << " " << c->last () << " " << c->email () << endl;
diff --git a/inheritance/reuse/employee.hxx b/odb-examples/inheritance/reuse/employee.hxx
index 7de3989..7de3989 100644
--- a/inheritance/reuse/employee.hxx
+++ b/odb-examples/inheritance/reuse/employee.hxx
diff --git a/odb-examples/inheritance/reuse/testscript b/odb-examples/inheritance/reuse/testscript
new file mode 100644
index 0000000..9b24b63
--- /dev/null
+++ b/odb-examples/inheritance/reuse/testscript
@@ -0,0 +1,13 @@
+# file : inheritance/reuse/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../../database-options.testscript
+.include ../../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/inverse/README b/odb-examples/inverse/README
index e75d9dc..e2c43f7 100644
--- a/inverse/README
+++ b/odb-examples/inverse/README
@@ -4,10 +4,6 @@ shows how to work with lazy pointers. All the relationships presented in
this example declare one side as inverse in order to produce canonical
database schema.
-The example uses the shared_ptr and weak_ptr smart pointers from TR1 and
-requires a C++ compiler with TR1 support or an external TR1 implementation,
-such as the one provided by Boost.
-
The example consists of the following files:
employee.hxx
@@ -26,15 +22,15 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> --generate-schema --generate-query --generate-session \
- --default-pointer std::tr1::shared_ptr employee.hxx
+ odb --std c++11 -d <database> --generate-schema --generate-query \
+ --generate-session --default-pointer std::shared_ptr employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
The --generate-session option is used to enable session support for all
the persistent classes in employee.hxx. The --default-pointer option is
- used to make TR1 shared_ptr the default object pointer.
+ used to make shared_ptr the default object pointer.
database.hxx
Contains the create_database() function which instantiates the concrete
diff --git a/odb-examples/inverse/buildfile b/odb-examples/inverse/buildfile
new file mode 100644
index 0000000..3661ed3
--- /dev/null
+++ b/odb-examples/inverse/buildfile
@@ -0,0 +1,46 @@
+# file : inverse/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{employee-meta}: $libodb
+
+exe{driver}: libue{employee-meta} $libs
+
+<{hxx ixx cxx}{employee-odb}>: hxx{employee} libue{employee-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/employee.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --generate-session \
+ --default-pointer std::shared_ptr \
+ --output-dir $out_base \
+ --table-prefix inverse_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = employee
diff --git a/inverse/database.hxx b/odb-examples/inverse/database.hxx
index f4e8599..d9f9f8b 100644
--- a/inverse/database.hxx
+++ b/odb-examples/inverse/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/inverse/driver.cxx b/odb-examples/inverse/driver.cxx
index 5a613e1..be9b946 100644
--- a/inverse/driver.cxx
+++ b/odb-examples/inverse/driver.cxx
@@ -1,7 +1,7 @@
// file : inverse/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -39,11 +39,9 @@ print (const employee& e)
int
main (int argc, char* argv[])
{
- using tr1::shared_ptr;
-
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create a few persistent objects.
//
diff --git a/inverse/employee.hxx b/odb-examples/inverse/employee.hxx
index 2c23789..89451a7 100644
--- a/inverse/employee.hxx
+++ b/odb-examples/inverse/employee.hxx
@@ -8,18 +8,7 @@
#include <string>
#include <odb/core.hxx>
-
-// Include TR1 <memory> header in a compiler-specific fashion. Fall back
-// on the Boost implementation if the compiler does not support TR1.
-//
-#include <odb/tr1/memory.hxx>
-
-#include <odb/tr1/lazy-ptr.hxx>
-
-using std::tr1::shared_ptr;
-
-using odb::tr1::lazy_shared_ptr;
-using odb::tr1::lazy_weak_ptr;
+#include <odb/lazy-ptr.hxx>
// The "pointer architecture" in this object model is as follows: All
// object pointers are lazy. The employee class holds shared pointers
@@ -41,8 +30,8 @@ class position;
class project;
class employee;
-typedef std::vector<lazy_shared_ptr<project> > projects;
-typedef std::vector<lazy_weak_ptr<employee> > employees;
+typedef std::vector<odb::lazy_shared_ptr<project>> projects;
+typedef std::vector<odb::lazy_weak_ptr<employee>> employees;
#pragma db object
class employer
@@ -106,14 +95,14 @@ public:
//
typedef ::employee employee_type;
- const lazy_weak_ptr<employee_type>&
+ const odb::lazy_weak_ptr<employee_type>&
employee () const
{
return employee_;
}
void
- employee (lazy_weak_ptr<employee_type> employee)
+ employee (odb::lazy_weak_ptr<employee_type> employee)
{
employee_ = employee;
}
@@ -129,7 +118,7 @@ private:
std::string title_;
#pragma db inverse(position_)
- lazy_weak_ptr<employee_type> employee_;
+ odb::lazy_weak_ptr<employee_type> employee_;
};
#pragma db object
@@ -184,8 +173,8 @@ public:
employee (const std::string& first,
const std::string& last,
- lazy_shared_ptr<employer_type> employer,
- lazy_shared_ptr<position_type> position)
+ odb::lazy_shared_ptr<employer_type> employer,
+ odb::lazy_shared_ptr<position_type> position)
: first_ (first), last_ (last),
employer_ (employer),
position_ (position)
@@ -208,28 +197,28 @@ public:
// Employer.
//
- const lazy_shared_ptr<employer_type>&
+ const odb::lazy_shared_ptr<employer_type>&
employer () const
{
return employer_;
}
void
- employer (lazy_shared_ptr<employer_type> employer)
+ employer (odb::lazy_shared_ptr<employer_type> employer)
{
employer_ = employer;
}
// Position.
//
- const lazy_shared_ptr<position_type>&
+ const odb::lazy_shared_ptr<position_type>&
position () const
{
return position_;
}
void
- position (lazy_shared_ptr<position_type> position)
+ position (odb::lazy_shared_ptr<position_type> position)
{
position_ = position;
}
@@ -262,10 +251,10 @@ private:
std::string last_;
#pragma db not_null
- lazy_shared_ptr<employer_type> employer_;
+ odb::lazy_shared_ptr<employer_type> employer_;
#pragma db not_null
- lazy_shared_ptr<position_type> position_;
+ odb::lazy_shared_ptr<position_type> position_;
#pragma db value_not_null unordered
projects_type projects_;
diff --git a/odb-examples/inverse/testscript b/odb-examples/inverse/testscript
new file mode 100644
index 0000000..04a89a4
--- /dev/null
+++ b/odb-examples/inverse/testscript
@@ -0,0 +1,13 @@
+# file : inverse/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/odb-examples/manifest b/odb-examples/manifest
new file mode 100644
index 0000000..1b8909b
--- /dev/null
+++ b/odb-examples/manifest
@@ -0,0 +1,98 @@
+: 1
+name: odb-examples
+version: 2.5.0-b.26.z
+project: odb
+type: examples
+language: c++
+summary: ODB compiler usage examples
+license: GPL-2.0-only
+description-file: README.md
+url: https://www.codesynthesis.com/products/odb/
+doc-url: https://www.codesynthesis.com/products/odb/doc/manual.xhtml
+src-url: https://git.codesynthesis.com/cgit/odb/odb/
+email: odb-users@codesynthesis.com ; Mailing list
+
+# @@ TMP Bump the toolchain version to 0.17.0 after it is released.
+#
+depends: * build2 >= 0.16.0-
+depends: * bpkg >= 0.16.0-
+
+depends: * odb == $
+
+depends: libodb == $
+depends: libodb-mysql == $ ? ($mysql)
+depends: libodb-sqlite == $ ? ($sqlite)
+depends: libodb-pgsql == $ ? ($pgsql)
+depends: libodb-oracle == $ ? ($oracle)
+depends: libodb-mssql == $ ? ($mssql)
+
+# @@ TODO/LATER: use an alternative to automatically detect whether we are
+# using MySQL or MariaDB? But maybe we don't need to know?
+
+depends: * mysql-client >= 5.0.3 ? ($mysql)
+depends: * psql >= 7.4.0 ? ($pgsql)
+requires: * sqlplus ? ($oracle)
+requires: * sqlcmd ? ($mssql)
+
+# This package configuration is for building with the default bots on target
+# configurations where GCC is the host compiler.
+#
+builds: all
+builds: -( +windows -gcc ) ; Requires MinGW GCC.
+builds: &gcc ; Requires GCC with plugin support enabled.
+builds: &gcc-5+ ; Requires GCC 5 or later.
+builds: -static ; Implementation uses plugins and requires -fPIC.
+
+# These package configurations are for building with the custom bots on target
+# configurations that were customized to use GCC as the host compiler and/or
+# provide proprietary database clients.
+#
+# Note that they serve dual function: they make sure the default configuration
+# is not used (i.e., they match the corresponding configurations in libodb*).
+# And they allow CI'ing odb-examples by itself (thus we specify the bot keys
+# both in libodb* and here).
+#
+custom-builds: latest ; Requires latest config with GCC as host compiler.
+custom-builds: -static ; Implementation uses plugins and requires -fPIC.
+#custom-build-bot: -- see below.
+
+multi-builds: none ; Multiple databases cannot be configured.
+custom-multi-builds: none ; Multiple databases cannot be configured.
+custom-multi-oracle-builds: none ; Multiple databases cannot be configured.
+custom-multi-mssql-builds: none ; Multiple databases cannot be configured.
+
+custom-build-bot:
+\
+-----BEGIN PUBLIC KEY-----
+MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuF4YmJmPHY52Q6N+YO0M
+lt/fCovdezleb2tVplyTnvbyAiPdmYCIIjVrsqUn3y46PdFtWEiSdsrCcncoxi6H
+8KelOB/oQ9pNTyEvwGKEH5ZIU7noLZYdXEfoNdvdL/pbY/7uLBZOSekfdQShZtbe
+uOZCM2Mhg2DD76TP/VAwaXuDCnEvxxU/yneUl5ZaBo62AWNrYJuSGAliCOpVpl6X
+X1kbHOvnCx7c9e3LxgaVivPaeZRKYg0OaFt96SBYEZzNPvjA8pMuKuj/vatHaCQ3
+NO9+r3TJ+4dQd7qN6Ju3zUJq9J/ndSh4lPvUalvvhdykecefhcyHwRZOG4xyFMFE
+nJM4sM+aZu6WoKATIKtk7On70inVr0sZJXwJ4Lt4oqaK2VthcSTby3wf2Yv4p5hL
+zNo31cCPmBRYzABcIc6ADYvexVK4uCwaim8xs7RK5Ug2Gv6vUWoRNZW8grIgDwUY
+5pZ4Zk3hW4ii2vehTaVrrmdW6XipIsT+ayiVX7eWuHHNxAeCojXVjOJu9B0ExMlD
+5tHZCs+SNdV5MceexecbptB7fZtRebP120yjLiSnZ5FpaQ1stusr0hSg+VQaX4np
+f5m1W/CcDr53PKWg/ayY9nWMUQaIwH4b69kLM+VTpYSbzu5UQJkmNBNq2EOHgoTv
+9MLA+cE/nNJ/rMI//MZ1+kcCAwEAAQ==
+-----END PUBLIC KEY-----
+\
+
+custom-build-bot:
+\
+-----BEGIN PUBLIC KEY-----
+MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuLYZ68rotGDAtWViFHOe
+XEsmZB8BGI+af1ixh9JOy9BE4ohGTfPr1YsjGDzh+PhOVLAtyykOoT/qG7cuGB0T
+gBInoRrgVB2/ZKTMwxeDGb/TA3uykaXxcw7/liTsizHAY+phCNTbke8iER5Y78js
+9GlnTPmNhwFqEj2fwCz+2o08eyZvZ9Vj1fH/bFDCmDmU33JR3crtJlC8wPiF70Ho
+FJzHFdaFQl3MxvEV92HjOsyqozMi6tAVVefN1vapVQeNtjkB0Di18p0/EMugEuGU
+OxktjDHQWNaV8Ao6cCDk6OkJnM3ZNL1no3cV4cuF+/xI8UZzwfPoBnwg/s183Qzu
+pHHKOSHmuO0oVE/XohJhepSw3tb+wf5BwejRhYHikIjqCxJdm9H0QTiqXT82y24K
+yg3gkRMOgqnVxERKKP4ZknLSMQCEKiND/t2zdLJ/lxH9eHZdPHKk3OZZG292j+Bh
+fknxcTKNk1Dmf32Irs5hVrjsoU8eAutbItovzXdBaj//rn/ry/kUlCa1Ov6iLIDJ
+gyxmsDlgKNR/uE9ogmDn0ishJIoCmxeqenRfJkttr9pEsDsUFuB425QGqiSxa1jh
+PCNca3iRtO44wADXaQMTGpvLzBfdfVc8LoFpn+kynN0V1MvxAX4mHRXxw8ERXd3U
+dpHDhOthPLolJQrYKb/YyW8CAwEAAQ==
+-----END PUBLIC KEY-----
+\
diff --git a/mapping/README b/odb-examples/mapping/README
index 52b7e5b..21c0e77 100644
--- a/mapping/README
+++ b/odb-examples/mapping/README
@@ -27,7 +27,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-query --generate-schema \
+ odb --std c++11 -d <database> --generate-query --generate-schema \
--hxx-prologue "#include \"traits.hxx\"" person.hxx
Where <database> stands for the database system we are using, for example,
diff --git a/odb-examples/mapping/buildfile b/odb-examples/mapping/buildfile
new file mode 100644
index 0000000..f7803f4
--- /dev/null
+++ b/odb-examples/mapping/buildfile
@@ -0,0 +1,45 @@
+# file : mapping/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --hxx-prologue '#include "traits.hxx"' \
+ --output-dir $out_base \
+ --table-prefix mapping_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/mapping/database.hxx b/odb-examples/mapping/database.hxx
index fe210d8..94b4991 100644
--- a/mapping/database.hxx
+++ b/odb-examples/mapping/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/mapping/driver.cxx b/odb-examples/mapping/driver.cxx
index ea392d5..5e9d067 100644
--- a/mapping/driver.cxx
+++ b/odb-examples/mapping/driver.cxx
@@ -1,7 +1,7 @@
// file : mapping/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create a few persistent person objects.
//
diff --git a/mapping/person.hxx b/odb-examples/mapping/person.hxx
index c1a43b9..c1a43b9 100644
--- a/mapping/person.hxx
+++ b/odb-examples/mapping/person.hxx
diff --git a/odb-examples/mapping/testscript b/odb-examples/mapping/testscript
new file mode 100644
index 0000000..f9bac50
--- /dev/null
+++ b/odb-examples/mapping/testscript
@@ -0,0 +1,13 @@
+# file : mapping/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/mapping/traits-mssql.hxx b/odb-examples/mapping/traits-mssql.hxx
index 3713f82..3713f82 100644
--- a/mapping/traits-mssql.hxx
+++ b/odb-examples/mapping/traits-mssql.hxx
diff --git a/mapping/traits-mysql.hxx b/odb-examples/mapping/traits-mysql.hxx
index a15d1c9..a15d1c9 100644
--- a/mapping/traits-mysql.hxx
+++ b/odb-examples/mapping/traits-mysql.hxx
diff --git a/mapping/traits-oracle.hxx b/odb-examples/mapping/traits-oracle.hxx
index a5683c6..a5683c6 100644
--- a/mapping/traits-oracle.hxx
+++ b/odb-examples/mapping/traits-oracle.hxx
diff --git a/mapping/traits-pgsql.hxx b/odb-examples/mapping/traits-pgsql.hxx
index aeefa52..aeefa52 100644
--- a/mapping/traits-pgsql.hxx
+++ b/odb-examples/mapping/traits-pgsql.hxx
diff --git a/mapping/traits-sqlite.hxx b/odb-examples/mapping/traits-sqlite.hxx
index cd7afc3..cd7afc3 100644
--- a/mapping/traits-sqlite.hxx
+++ b/odb-examples/mapping/traits-sqlite.hxx
diff --git a/mapping/traits.hxx b/odb-examples/mapping/traits.hxx
index 533b2e3..533b2e3 100644
--- a/mapping/traits.hxx
+++ b/odb-examples/mapping/traits.hxx
diff --git a/odb-examples/mssql-schema.testscript b/odb-examples/mssql-schema.testscript
new file mode 100644
index 0000000..5f56536
--- /dev/null
+++ b/odb-examples/mssql-schema.testscript
@@ -0,0 +1,6 @@
+# file : mssql-schema.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the Microsoft SQL Server database schema creation canned command base.
+#
+create_schema_cmd = [cmdline] $mssql_client_cmd
diff --git a/odb-examples/mssql.testscript b/odb-examples/mssql.testscript
new file mode 100644
index 0000000..671cb7a
--- /dev/null
+++ b/odb-examples/mssql.testscript
@@ -0,0 +1,12 @@
+# file : mssql.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the Microsoft SQL Server database schema creation canned command and
+# setup the example driver command line for the subsequent examples.
+#
+.include mssql-schema.testscript
+
+schema_file = [path] $out_base/"$schema".sql
+create_schema = [cmdline] $create_schema_cmd -i $schema_file
+
+test.arguments += $mssql_options
diff --git a/odb-examples/mysql-schema.testscript b/odb-examples/mysql-schema.testscript
new file mode 100644
index 0000000..dfa7852
--- /dev/null
+++ b/odb-examples/mysql-schema.testscript
@@ -0,0 +1,9 @@
+# file : mysql-schema.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the MySQL database schema creation canned command base.
+#
+create_schema_cmd = [cmdline] \
+ $mysql_client_cmd 2>&1 | \
+ sed -e "'"'s/^mysql: \[Warning\] Using a password on the command .*//'"'" | \
+ sed -n -e "'"'s/(.+)/\1/p'"'" >&2
diff --git a/odb-examples/mysql.testscript b/odb-examples/mysql.testscript
new file mode 100644
index 0000000..3ee78ea
--- /dev/null
+++ b/odb-examples/mysql.testscript
@@ -0,0 +1,12 @@
+# file : mysql.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the MySQL database schema creation canned command and setup the
+# example driver command line for the subsequent examples.
+#
+.include mysql-schema.testscript
+
+schema_file = [path] $out_base/"$schema".sql
+create_schema = [cmdline] cat "'""$schema_file""'" | $create_schema_cmd
+
+test.arguments += $mysql_options
diff --git a/optimistic/README b/odb-examples/optimistic/README
index 0c16ed2..dfa2bd5 100644
--- a/optimistic/README
+++ b/odb-examples/optimistic/README
@@ -19,7 +19,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/optimistic/buildfile b/odb-examples/optimistic/buildfile
new file mode 100644
index 0000000..505068e
--- /dev/null
+++ b/odb-examples/optimistic/buildfile
@@ -0,0 +1,43 @@
+# file : optimistic/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --output-dir $out_base \
+ --table-prefix optimistic_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/optimistic/database.hxx b/odb-examples/optimistic/database.hxx
index e81f6a7..162c688 100644
--- a/optimistic/database.hxx
+++ b/odb-examples/optimistic/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/optimistic/driver.cxx b/odb-examples/optimistic/driver.cxx
index 25bc9af..968648c 100644
--- a/optimistic/driver.cxx
+++ b/odb-examples/optimistic/driver.cxx
@@ -1,7 +1,7 @@
// file : optimistic/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Persist the object.
//
diff --git a/optimistic/person.hxx b/odb-examples/optimistic/person.hxx
index 5b7177f..5b7177f 100644
--- a/optimistic/person.hxx
+++ b/odb-examples/optimistic/person.hxx
diff --git a/odb-examples/optimistic/testscript b/odb-examples/optimistic/testscript
new file mode 100644
index 0000000..0db3221
--- /dev/null
+++ b/odb-examples/optimistic/testscript
@@ -0,0 +1,13 @@
+# file : optimistic/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/odb-examples/oracle-schema.testscript b/odb-examples/oracle-schema.testscript
new file mode 100644
index 0000000..29a95f1
--- /dev/null
+++ b/odb-examples/oracle-schema.testscript
@@ -0,0 +1,6 @@
+# file : oracle-schema.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the Oracle database schema creation canned command base.
+#
+create_schema_cmd = [cmdline] $oracle_client_cmd
diff --git a/odb-examples/oracle.testscript b/odb-examples/oracle.testscript
new file mode 100644
index 0000000..f8ee224
--- /dev/null
+++ b/odb-examples/oracle.testscript
@@ -0,0 +1,12 @@
+# file : oracle.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the Oracle database schema creation canned command and setup the
+# example driver command line for the subsequent examples.
+#
+.include oracle-schema.testscript
+
+schema_file = [path] $out_base/"$schema".sql
+create_schema = [cmdline] $create_schema_cmd "@$schema_file"
+
+test.arguments += $oracle_options
diff --git a/odb-examples/pgsql-schema.testscript b/odb-examples/pgsql-schema.testscript
new file mode 100644
index 0000000..8659bcd
--- /dev/null
+++ b/odb-examples/pgsql-schema.testscript
@@ -0,0 +1,6 @@
+# file : pgsql-schema.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the PostgreSQL database schema creation canned command base.
+#
+create_schema_cmd = [cmdline] $pgsql_client_cmd
diff --git a/odb-examples/pgsql.testscript b/odb-examples/pgsql.testscript
new file mode 100644
index 0000000..3ae9219
--- /dev/null
+++ b/odb-examples/pgsql.testscript
@@ -0,0 +1,12 @@
+# file : pgsql.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Create the PostgreSQL database schema creation canned command and setup the
+# example driver command line for the subsequent tests.
+#
+.include pgsql-schema.testscript
+
+schema_file = [path] $out_base/"$schema".sql
+create_schema = [cmdline] $create_schema_cmd -f $schema_file
+
+test.arguments += $pgsql_options
diff --git a/pimpl/README b/odb-examples/pimpl/README
index da12899..47bfbc8 100644
--- a/pimpl/README
+++ b/odb-examples/pimpl/README
@@ -18,7 +18,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-query --generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-query --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/pimpl/buildfile b/odb-examples/pimpl/buildfile
new file mode 100644
index 0000000..b6f8a88
--- /dev/null
+++ b/odb-examples/pimpl/buildfile
@@ -0,0 +1,44 @@
+# file : pimpl/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix pimpl_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/pimpl/database.hxx b/odb-examples/pimpl/database.hxx
index 7b054ea..46c3ba9 100644
--- a/pimpl/database.hxx
+++ b/odb-examples/pimpl/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/pimpl/driver.cxx b/odb-examples/pimpl/driver.cxx
index b97fd92..50fb62a 100644
--- a/pimpl/driver.cxx
+++ b/odb-examples/pimpl/driver.cxx
@@ -1,7 +1,7 @@
// file : pimpl/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
{
person john ("john@doe.com", "John Doe", 31);
diff --git a/pimpl/person.cxx b/odb-examples/pimpl/person.cxx
index 6922afc..6922afc 100644
--- a/pimpl/person.cxx
+++ b/odb-examples/pimpl/person.cxx
diff --git a/pimpl/person.hxx b/odb-examples/pimpl/person.hxx
index d296c28..d296c28 100644
--- a/pimpl/person.hxx
+++ b/odb-examples/pimpl/person.hxx
diff --git a/odb-examples/pimpl/testscript b/odb-examples/pimpl/testscript
new file mode 100644
index 0000000..d4cbfd4
--- /dev/null
+++ b/odb-examples/pimpl/testscript
@@ -0,0 +1,13 @@
+# file : pimpl/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/prepared/README b/odb-examples/prepared/README
index 1fc6a0f..644e11a 100644
--- a/prepared/README
+++ b/odb-examples/prepared/README
@@ -18,8 +18,8 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-query --generate-prepared \
---generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-query --generate-prepared \
+ --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/prepared/buildfile b/odb-examples/prepared/buildfile
new file mode 100644
index 0000000..1347236
--- /dev/null
+++ b/odb-examples/prepared/buildfile
@@ -0,0 +1,45 @@
+# file : prepared/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --generate-prepared \
+ --output-dir $out_base \
+ --table-prefix prepared_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/prepared/database.hxx b/odb-examples/prepared/database.hxx
index 2e9316a..2c60a47 100644
--- a/prepared/database.hxx
+++ b/odb-examples/prepared/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/prepared/driver.cxx b/odb-examples/prepared/driver.cxx
index c5b5b22..73b3993 100644
--- a/prepared/driver.cxx
+++ b/odb-examples/prepared/driver.cxx
@@ -1,7 +1,7 @@
// file : prepared/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr/unique_ptr
+#include <memory> // std::unique_ptr
#include <cassert>
#include <utility> // std::move()
#include <iostream>
@@ -10,8 +10,6 @@
#include <odb/connection.hxx>
#include <odb/transaction.hxx>
-#include <odb/details/config.hxx> // ODB_CXX11
-
#include "database.hxx" // create_database
#include "person.hxx"
@@ -31,19 +29,11 @@ query_factory (const char* name, connection& c)
{
typedef odb::query<person> query;
-#ifdef ODB_CXX11
unique_ptr<params> p (new params);
query q (query::age > query::_ref (p->age) &&
query::first == query::_ref (p->first));
prepared_query<person> pq (c.prepare_query<person> (name, q));
c.cache_query (pq, move (p));
-#else
- auto_ptr<params> p (new params);
- query q (query::age > query::_ref (p->age) &&
- query::first == query::_ref (p->first));
- prepared_query<person> pq (c.prepare_query<person> (name, q));
- c.cache_query (pq, p);
-#endif
}
static void
@@ -62,7 +52,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create a few persistent person objects.
//
@@ -91,7 +81,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- unsigned short age;
+ unsigned short age (0);
query q (query::age > query::_ref (age));
prep_query pq (db->prepare_query<person> ("person-age-query", q));
@@ -113,7 +103,7 @@ main (int argc, char* argv[])
{
connection_ptr conn (db->connection ());
- unsigned short age;
+ unsigned short age (0);
query q (query::age > query::_ref (age));
prep_query pq (conn->prepare_query<person> ("person-age-query", q));
@@ -161,19 +151,11 @@ main (int argc, char* argv[])
if (!pq)
{
-#ifdef ODB_CXX11
unique_ptr<unsigned short> p (new unsigned short);
age_param = p.get ();
query q (query::age > query::_ref (*age_param));
pq = db->prepare_query<person> ("person-ref-age-query", q);
db->cache_query (pq, move (p));
-#else
- auto_ptr<unsigned short> p (new unsigned short);
- age_param = p.get ();
- query q (query::age > query::_ref (*age_param));
- pq = db->prepare_query<person> ("person-ref-age-query", q);
- db->cache_query (pq, p); // Assumes ownership of p.
-#endif
}
*age_param = age; // Initialize the parameter.
@@ -228,7 +210,7 @@ main (int argc, char* argv[])
transaction t (db->begin ());
- unsigned short age;
+ unsigned short age (0);
query q (query::age > query::_ref (age));
prep_query pq (
db->prepare_query<person_count> ("person-count-age-query", q));
diff --git a/prepared/person.hxx b/odb-examples/prepared/person.hxx
index dc8e6fe..dc8e6fe 100644
--- a/prepared/person.hxx
+++ b/odb-examples/prepared/person.hxx
diff --git a/odb-examples/prepared/testscript b/odb-examples/prepared/testscript
new file mode 100644
index 0000000..af2d0c0
--- /dev/null
+++ b/odb-examples/prepared/testscript
@@ -0,0 +1,13 @@
+# file : prepared/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/qt/README b/odb-examples/qt/README
index bfbe632..bfbe632 100644
--- a/qt/README
+++ b/odb-examples/qt/README
diff --git a/qt/database.hxx b/odb-examples/qt/database.hxx
index 3823c5d..3823c5d 100644
--- a/qt/database.hxx
+++ b/odb-examples/qt/database.hxx
diff --git a/qt/driver.cxx b/odb-examples/qt/driver.cxx
index 377594f..377594f 100644
--- a/qt/driver.cxx
+++ b/odb-examples/qt/driver.cxx
diff --git a/qt/employee.hxx b/odb-examples/qt/employee.hxx
index 82bbcfb..82bbcfb 100644
--- a/qt/employee.hxx
+++ b/odb-examples/qt/employee.hxx
diff --git a/query/README b/odb-examples/query/README
index 6886b8e..175ef21 100644
--- a/query/README
+++ b/odb-examples/query/README
@@ -16,7 +16,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-query --generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-query --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/query/buildfile b/odb-examples/query/buildfile
new file mode 100644
index 0000000..2585145
--- /dev/null
+++ b/odb-examples/query/buildfile
@@ -0,0 +1,44 @@
+# file : query/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix query_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/query/database.hxx b/odb-examples/query/database.hxx
index 61bb5ba..5216e98 100644
--- a/query/database.hxx
+++ b/odb-examples/query/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/query/driver.cxx b/odb-examples/query/driver.cxx
index aec8ac8..67f872b 100644
--- a/query/driver.cxx
+++ b/odb-examples/query/driver.cxx
@@ -2,7 +2,7 @@
// copyright : not copyrighted - public domain
#include <vector>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -46,7 +46,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
{
typedef vector<person> people;
@@ -85,7 +85,7 @@ main (int argc, char* argv[])
/*
for (result::iterator i (r.begin ()); i != r.end (); ++i)
{
- auto_ptr<person> p (i.load ());
+ unique_ptr<person> p (i.load ());
cout << p->first () << " " << p->last () << " " << p->age () << endl;
}
*/
@@ -112,7 +112,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- auto_ptr<person> p (db->query_one<person> (query::age == 21));
+ unique_ptr<person> p (db->query_one<person> (query::age == 21));
if (p.get () != 0)
{
@@ -155,7 +155,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- unsigned short lower, upper;
+ unsigned short lower (0), upper (0);
query q (query::age >= query::_ref (lower) &&
query::age < query::_ref (upper));
diff --git a/query/person.hxx b/odb-examples/query/person.hxx
index 59e0721..59e0721 100644
--- a/query/person.hxx
+++ b/odb-examples/query/person.hxx
diff --git a/odb-examples/query/testscript b/odb-examples/query/testscript
new file mode 100644
index 0000000..b644c55
--- /dev/null
+++ b/odb-examples/query/testscript
@@ -0,0 +1,13 @@
+# file : query/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/relationship/README b/odb-examples/relationship/README
index eea26aa..0e175b3 100644
--- a/relationship/README
+++ b/odb-examples/relationship/README
@@ -1,10 +1,6 @@
This example shows how to declare and use unidirectional to-one and to-many
relationships between persistent objects.
-The example uses the shared_ptr smart pointer from TR1 and requires a C++
-compiler with TR1 support or an external TR1 implementation, such as the
-one provided by Boost.
-
The example consists of the following files:
employee.hxx
@@ -22,15 +18,15 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> --generate-schema --generate-query --generate-session \
- --default-pointer std::tr1::shared_ptr employee.hxx
+ odb --std c++11 -d <database> --generate-schema --generate-query \
+ --generate-session --default-pointer std::shared_ptr employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
The --generate-session option is used to enable session support for all
the persistent classes in employee.hxx. The --default-pointer option is
- used to make TR1 shared_ptr the default object pointer.
+ used to make shared_ptr the default object pointer.
database.hxx
Contains the create_database() function which instantiates the concrete
diff --git a/odb-examples/relationship/buildfile b/odb-examples/relationship/buildfile
new file mode 100644
index 0000000..32d292a
--- /dev/null
+++ b/odb-examples/relationship/buildfile
@@ -0,0 +1,46 @@
+# file : relationship/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{employee-meta}: $libodb
+
+exe{driver}: libue{employee-meta} $libs
+
+<{hxx ixx cxx}{employee-odb}>: hxx{employee} libue{employee-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/employee.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --generate-session \
+ --default-pointer std::shared_ptr \
+ --output-dir $out_base \
+ --table-prefix relation_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = employee
diff --git a/relationship/database.hxx b/odb-examples/relationship/database.hxx
index 6b0e852..17d8393 100644
--- a/relationship/database.hxx
+++ b/odb-examples/relationship/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/relationship/driver.cxx b/odb-examples/relationship/driver.cxx
index 27a31b2..1f74824 100644
--- a/relationship/driver.cxx
+++ b/odb-examples/relationship/driver.cxx
@@ -1,7 +1,7 @@
// file : relationship/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr, std::shared_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -26,7 +26,7 @@ print (const employee& e)
for (projects::const_iterator i (ps.begin ()); i != ps.end (); ++i)
{
- tr1::shared_ptr<project> p (*i);
+ shared_ptr<project> p (*i);
cout << " project: " << p->name () << endl;
}
@@ -36,11 +36,9 @@ print (const employee& e)
int
main (int argc, char* argv[])
{
- using tr1::shared_ptr;
-
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create a few persistent objects.
//
diff --git a/relationship/employee.hxx b/odb-examples/relationship/employee.hxx
index 213047f..cc03971 100644
--- a/relationship/employee.hxx
+++ b/odb-examples/relationship/employee.hxx
@@ -6,16 +6,10 @@
#include <vector>
#include <string>
+#include <memory> // shared_ptr
#include <odb/core.hxx>
-// Include TR1 <memory> header in a compiler-specific fashion. Fall back
-// on the Boost implementation if the compiler does not support TR1.
-//
-#include <odb/tr1/memory.hxx>
-
-using std::tr1::shared_ptr;
-
// The "pointer architecture" in this object model is as follows: All
// object pointers are eager. The employee class holds shared pointers
// to employer and projects.
@@ -32,7 +26,7 @@ class employer;
class project;
class employee;
-typedef std::vector<shared_ptr<project> > projects;
+typedef std::vector<std::shared_ptr<project>> projects;
#pragma db object
class employer
@@ -90,7 +84,7 @@ public:
employee (const std::string& first,
const std::string& last,
- shared_ptr<employer_type> employer)
+ std::shared_ptr<employer_type> employer)
: first_ (first), last_ (last), employer_ (employer)
{
}
@@ -111,14 +105,14 @@ public:
// Employer.
//
- shared_ptr<employer_type>
+ std::shared_ptr<employer_type>
employer () const
{
return employer_;
}
void
- employer (shared_ptr<employer_type> employer)
+ employer (std::shared_ptr<employer_type> employer)
{
employer_ = employer;
}
@@ -151,7 +145,7 @@ private:
std::string last_;
#pragma db not_null
- shared_ptr<employer_type> employer_;
+ std::shared_ptr<employer_type> employer_;
#pragma db value_not_null unordered
projects_type projects_;
diff --git a/odb-examples/relationship/testscript b/odb-examples/relationship/testscript
new file mode 100644
index 0000000..d23eb2d
--- /dev/null
+++ b/odb-examples/relationship/testscript
@@ -0,0 +1,13 @@
+# file : relationship/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/schema/custom/README b/odb-examples/schema/custom/README
index 22a14cb..b5e9af4 100644
--- a/schema/custom/README
+++ b/odb-examples/schema/custom/README
@@ -2,10 +2,6 @@ This example shows how to map persistent C++ classes to a custom database
schema. In particular, it shows how to map all the commonly-used constructs,
including containers, object relationships, and composite value types.
-The example uses the shared_ptr smart pointer from TR1 and requires a C++
-compiler with TR1 support or an external TR1 implementation, such as the
-one provided by Boost.
-
The example consists of the following files:
employee.hxx
@@ -21,15 +17,15 @@ employee-odb.cxx
and are generated by the ODB compiler from employee.hxx using the following
command line:
- odb -d <database> --generate-query --generate-session \
- --default-pointer std::tr1::shared_ptr employee.hxx
+ odb --std c++11 -d <database> --generate-query --generate-session \
+ --default-pointer std::shared_ptr employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
The --generate-session option is used to enable session support for all
the persistent classes in employee.hxx. The --default-pointer option is
- used to make TR1 shared_ptr the default object pointer.
+ used to make shared_ptr the default object pointer.
database.hxx
Contains the create_database() function which instantiates the concrete
diff --git a/odb-examples/schema/custom/buildfile b/odb-examples/schema/custom/buildfile
new file mode 100644
index 0000000..8248866
--- /dev/null
+++ b/odb-examples/schema/custom/buildfile
@@ -0,0 +1,44 @@
+# file : schema/custom/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{employee-meta}: $libodb
+
+exe{driver}: libue{employee-meta} $libs
+
+<{hxx ixx cxx}{employee-odb}>: hxx{employee} libue{employee-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/employee.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --default-pointer std::shared_ptr \
+ --output-dir $out_base \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../../alias{database-client}: include = adhoc
+
+testscript@./: schema = employee
diff --git a/schema/custom/database.hxx b/odb-examples/schema/custom/database.hxx
index e4847ec..db6543c 100644
--- a/schema/custom/database.hxx
+++ b/odb-examples/schema/custom/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -29,7 +29,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -56,17 +56,18 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/schema/custom/driver.cxx b/odb-examples/schema/custom/driver.cxx
index 6c02f99..f9d40e2 100644
--- a/schema/custom/driver.cxx
+++ b/odb-examples/schema/custom/driver.cxx
@@ -1,7 +1,7 @@
// file : schema/custom/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,11 +20,9 @@ using namespace odb::core;
int
main (int argc, char* argv[])
{
- using tr1::shared_ptr;
-
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create the database schema.
//
diff --git a/schema/custom/employee.hxx b/odb-examples/schema/custom/employee.hxx
index e149192..200017d 100644
--- a/schema/custom/employee.hxx
+++ b/odb-examples/schema/custom/employee.hxx
@@ -6,16 +6,10 @@
#include <vector>
#include <string>
+#include <memory> // std::shared_ptr
#include <odb/core.hxx>
-// Include TR1 <memory> header in a compiler-specific fashion. Fall back
-// on the Boost implementation if the compiler does not support TR1.
-//
-#include <odb/tr1/memory.hxx>
-
-using std::tr1::shared_ptr;
-
typedef std::vector<std::string> degrees;
#pragma db value
@@ -82,7 +76,7 @@ public:
employee (unsigned long id,
const std::string& first,
const std::string& last,
- shared_ptr<employer_type> employer)
+ std::shared_ptr<employer_type> employer)
: id_ (id), name_ (first, last), employer_ (employer)
{
}
@@ -115,14 +109,14 @@ public:
// Employer.
//
- shared_ptr<employer_type>
+ std::shared_ptr<employer_type>
employer () const
{
return employer_;
}
void
- employer (shared_ptr<employer_type> employer)
+ employer (std::shared_ptr<employer_type> employer)
{
employer_ = employer;
}
@@ -143,7 +137,7 @@ private:
degrees_type degrees_;
#pragma db not_null column("employer")
- shared_ptr<employer_type> employer_;
+ std::shared_ptr<employer_type> employer_;
};
#endif // EMPLOYEE_HXX
diff --git a/odb-examples/schema/custom/testscript b/odb-examples/schema/custom/testscript
new file mode 100644
index 0000000..0f5cafc
--- /dev/null
+++ b/odb-examples/schema/custom/testscript
@@ -0,0 +1,13 @@
+# file : schema/custom/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../../database-options.testscript
+.include ../../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/schema/embedded/README b/odb-examples/schema/embedded/README
index da99173..10084a3 100644
--- a/schema/embedded/README
+++ b/odb-examples/schema/embedded/README
@@ -13,7 +13,7 @@ person-odb.cxx
database schema for the person.hxx header. They are generated by the ODB
compiler from person.hxx using the following command line:
- odb -d <database> --generate-schema --schema-format embedded \
+ odb --std c++11 -d <database> --generate-schema --schema-format embedded \
--generate-query person.hxx
Where <database> stands for the database system we are using, for example,
diff --git a/odb-examples/schema/embedded/buildfile b/odb-examples/schema/embedded/buildfile
new file mode 100644
index 0000000..b1bc449
--- /dev/null
+++ b/odb-examples/schema/embedded/buildfile
@@ -0,0 +1,42 @@
+# file : schema/embedded/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --schema-format embedded \
+ --generate-query \
+ --output-dir $out_base \
+ --table-prefix schema_embedded_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/schema/embedded/database.hxx b/odb-examples/schema/embedded/database.hxx
index 22ac21a..922db8b 100644
--- a/schema/embedded/database.hxx
+++ b/odb-examples/schema/embedded/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -29,7 +29,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -56,17 +56,18 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/schema/embedded/driver.cxx b/odb-examples/schema/embedded/driver.cxx
index 16ed426..3aadef0 100644
--- a/schema/embedded/driver.cxx
+++ b/odb-examples/schema/embedded/driver.cxx
@@ -1,7 +1,7 @@
// file : schema/embedded/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -24,7 +24,7 @@ main (int argc, char* argv[])
typedef odb::query<person> query;
typedef odb::result<person> result;
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create the database schema.
//
diff --git a/schema/embedded/person.hxx b/odb-examples/schema/embedded/person.hxx
index e73ddcf..e73ddcf 100644
--- a/schema/embedded/person.hxx
+++ b/odb-examples/schema/embedded/person.hxx
diff --git a/odb-examples/schema/embedded/testscript b/odb-examples/schema/embedded/testscript
new file mode 100644
index 0000000..7d403e6
--- /dev/null
+++ b/odb-examples/schema/embedded/testscript
@@ -0,0 +1,9 @@
+# file : schema/embedded/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../../database-options.testscript
+.include ../../$(database).testscript
+
+: basics
+:
+$* >|
diff --git a/section/README b/odb-examples/section/README
index 34be589..bcbf522 100644
--- a/section/README
+++ b/odb-examples/section/README
@@ -17,7 +17,7 @@ person.sql
These files are generated by the ODB compiler from person.hxx using the
following command line:
- odb -d <database> --generate-schema person.hxx
+ odb --std c++11 -d <database> --generate-schema person.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
diff --git a/odb-examples/section/buildfile b/odb-examples/section/buildfile
new file mode 100644
index 0000000..09bf305
--- /dev/null
+++ b/odb-examples/section/buildfile
@@ -0,0 +1,43 @@
+# file : section/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{person-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{person-meta}: $libodb
+
+exe{driver}: libue{person-meta} $libs
+
+<{hxx ixx cxx}{person-odb}>: hxx{person} libue{person-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/person.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --output-dir $out_base \
+ --table-prefix section_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = person
diff --git a/section/database.hxx b/odb-examples/section/database.hxx
index 4a1a350..8aaafbe 100644
--- a/section/database.hxx
+++ b/odb-examples/section/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/section/driver.cxx b/odb-examples/section/driver.cxx
index b01454e..900127b 100644
--- a/section/driver.cxx
+++ b/odb-examples/section/driver.cxx
@@ -1,7 +1,7 @@
// file : section/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -20,7 +20,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
unsigned long id;
@@ -46,7 +46,7 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- auto_ptr<person> p (db->load<person> (id));
+ unique_ptr<person> p (db->load<person> (id));
// Now, while the object is loaded, the section is not. If (and
// when) we need to access the section data members, we have to
@@ -79,7 +79,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- auto_ptr<person> p (db->load<person> (id));
+ unique_ptr<person> p (db->load<person> (id));
db->load (*p, p->extras_section ());
// Add a new nickname. The nicknames container is now marked
@@ -103,7 +103,7 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
- auto_ptr<person> p (db->load<person> (id));
+ unique_ptr<person> p (db->load<person> (id));
db->load (*p, p->extras_section ());
p->nicknames ().push_back ("Dirty Joe");
@@ -116,7 +116,7 @@ main (int argc, char* argv[])
//
{
transaction t (db->begin ());
- auto_ptr<person> p (db->load<person> (id));
+ unique_ptr<person> p (db->load<person> (id));
db->load (*p, p->extras_section ());
t.commit ();
diff --git a/section/person.hxx b/odb-examples/section/person.hxx
index 996fc19..996fc19 100644
--- a/section/person.hxx
+++ b/odb-examples/section/person.hxx
diff --git a/odb-examples/section/testscript b/odb-examples/section/testscript
new file mode 100644
index 0000000..81566a1
--- /dev/null
+++ b/odb-examples/section/testscript
@@ -0,0 +1,13 @@
+# file : section/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/odb-examples/sqlite-schema.testscript b/odb-examples/sqlite-schema.testscript
new file mode 100644
index 0000000..687f594
--- /dev/null
+++ b/odb-examples/sqlite-schema.testscript
@@ -0,0 +1,5 @@
+# Note that we currently don't manipulate the data using the sqlite3 utility.
+# The database schema is created implicitly by the database object creation
+# function called by the test driver.
+#
+#create_schema_cmd =
diff --git a/odb-examples/sqlite.testscript b/odb-examples/sqlite.testscript
new file mode 100644
index 0000000..95b2da8
--- /dev/null
+++ b/odb-examples/sqlite.testscript
@@ -0,0 +1,10 @@
+# file : sqlite.testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Setup the example driver command line for the subsequent SQLite examples.
+#
+# Note that for SQLite the schema is created implicitly by the database object
+# creation function called by the test driver.
+#
+test.arguments += $sqlite_options
+test.cleanups += &odb-test.db # See database-options.testscript for details.
diff --git a/view/README b/odb-examples/view/README
index cba23b9..ef47dfe 100644
--- a/view/README
+++ b/odb-examples/view/README
@@ -3,10 +3,6 @@ that show how to load a subset of data members from objects or columns
from tables, perform aggregate queries, and join multiple objects and
tables using object relationships and custom join conditions.
-The example uses the shared_ptr smart pointer from TR1 and requires a C++
-compiler with TR1 support or an external TR1 implementation, such as the
-one provided by Boost.
-
The example consists of the following files:
employee.hxx
@@ -27,15 +23,15 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> --generate-schema --generate-query \
- --default-pointer std::tr1::shared_ptr --generate-session employee.hxx
+ odb --std c++11 -d <database> --generate-schema --generate-query \
+ --default-pointer std::shared_ptr --generate-session employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
- The --default-pointer option is used to make TR1 shared_ptr the default
- object pointer. The --generate-session option is used to enable session
- support for all the objects which is required to use object loading views.
+ The --default-pointer option is used to make shared_ptr the default object
+ pointer. The --generate-session option is used to enable session support
+ for all the objects which is required to use object loading views.
database.hxx
Contains the create_database() function which instantiates the concrete
diff --git a/odb-examples/view/buildfile b/odb-examples/view/buildfile
new file mode 100644
index 0000000..11f5d5b
--- /dev/null
+++ b/odb-examples/view/buildfile
@@ -0,0 +1,46 @@
+# file : view/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+import libs = libodb-$database%lib{odb-$database}
+
+exe{driver}: {hxx cxx}{* -*-odb -*-odb-*} {hxx ixx cxx}{employee-odb} testscript
+
+# The metadata library target which we use to extract the poptions variable
+# value for specifying the contained options on the ODB compiler command line.
+#
+libue{employee-meta}: $libodb
+
+exe{driver}: libue{employee-meta} $libs
+
+<{hxx ixx cxx}{employee-odb}>: hxx{employee} libue{employee-meta} $odb
+{{
+ pops = $cxx.lib_poptions($<[1])
+ depdb hash $pops
+
+ depdb dyndep --dyn-target --target-what 'generated schema' --format lines \
+ -- echo ($sqlite ? '' : "$out_base/employee.sql")
+
+ $odb --std c++11 \
+ --database $database \
+ --generate-schema \
+ --generate-query \
+ --default-pointer std::shared_ptr \
+ --generate-session \
+ --output-dir $out_base \
+ --table-prefix view_ \
+ "-I$src_base" $pops \
+ $path($<[0])
+}}
+
+cxx.poptions =+ "-I$out_base" "-I$src_base" -DDATABASE_$ucase($database)
+
+# Testscript's run-time prerequisites.
+#
+# @@ BUILD2: Eventually we should be able to mark it as test.input once
+# this is supported for testscript tests.
+#
+exe{driver}: ../alias{database-client}: include = adhoc
+
+testscript@./: schema = employee
diff --git a/view/database.hxx b/odb-examples/view/database.hxx
index 1fc18f7..6a9a77d 100644
--- a/view/database.hxx
+++ b/odb-examples/view/database.hxx
@@ -9,7 +9,7 @@
#define DATABASE_HXX
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr
#include <cstdlib> // std::exit
#include <iostream>
@@ -32,7 +32,7 @@
# error unknown database; did you forget to define the DATABASE_* macros?
#endif
-inline std::auto_ptr<odb::database>
+inline std::unique_ptr<odb::database>
create_database (int& argc, char* argv[])
{
using namespace std;
@@ -59,9 +59,9 @@ create_database (int& argc, char* argv[])
}
#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
+ unique_ptr<database> db (new odb::mysql::database (argc, argv));
#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
+ unique_ptr<database> db (
new odb::sqlite::database (
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -81,11 +81,12 @@ create_database (int& argc, char* argv[])
c->execute ("PRAGMA foreign_keys=ON");
}
#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+ unique_ptr<database> db (new odb::pgsql::database (argc, argv));
#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
+ unique_ptr<database> db (new odb::oracle::database (argc, argv));
#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
+ unique_ptr<database> db (
+ new odb::mssql::database (argc, argv, false, "TrustServerCertificate=yes"));
#endif
return db;
diff --git a/view/driver.cxx b/odb-examples/view/driver.cxx
index d975cc4..eed0d4b 100644
--- a/view/driver.cxx
+++ b/odb-examples/view/driver.cxx
@@ -1,7 +1,7 @@
// file : view/driver.cxx
// copyright : not copyrighted - public domain
-#include <memory> // std::auto_ptr
+#include <memory> // std::unique_ptr, std::shared_ptr
#include <iostream>
#include <odb/database.hxx>
@@ -19,11 +19,9 @@ using namespace odb::core;
int
main (int argc, char* argv[])
{
- using tr1::shared_ptr;
-
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ unique_ptr<database> db (create_database (argc, argv));
// Create the legacy employee_extra table.
//
diff --git a/view/employee.hxx b/odb-examples/view/employee.hxx
index d73f9f2..3087b62 100644
--- a/view/employee.hxx
+++ b/odb-examples/view/employee.hxx
@@ -5,18 +5,12 @@
#define EMPLOYEE_HXX
#include <string>
+#include <memory> // shared_ptr
#include <cstddef> // std::size_t
#include <odb/core.hxx>
#include <odb/nullable.hxx>
-// Include TR1 <memory> header in a compiler-specific fashion. Fall back
-// on the Boost implementation if the compiler does not support TR1.
-//
-#include <odb/tr1/memory.hxx>
-
-using std::tr1::shared_ptr;
-
#pragma db object
class country
{
@@ -77,9 +71,9 @@ public:
const std::string& first,
const std::string& last,
unsigned short age,
- shared_ptr<country> res,
- shared_ptr<country> nat,
- shared_ptr<employer> e)
+ std::shared_ptr<country> res,
+ std::shared_ptr<country> nat,
+ std::shared_ptr<employer> e)
: id_ (id), first_ (first), last_ (last), age_ (age),
residence_ (res),
nationality_ (nat),
@@ -111,7 +105,7 @@ public:
// Employer.
//
- shared_ptr<employer>
+ std::shared_ptr<employer>
employed_by () const
{
return employed_by_;
@@ -119,13 +113,13 @@ public:
// Residence and nationality.
//
- shared_ptr<country>
+ std::shared_ptr<country>
residence () const
{
return residence_;
}
- shared_ptr<country>
+ std::shared_ptr<country>
nationality () const
{
return nationality_;
@@ -144,10 +138,10 @@ private:
unsigned short age_;
- shared_ptr<country> residence_;
- shared_ptr<country> nationality_;
+ std::shared_ptr<country> residence_;
+ std::shared_ptr<country> nationality_;
- shared_ptr<employer> employed_by_;
+ std::shared_ptr<employer> employed_by_;
};
// We also have the "legacy" employee_extra table that is not mapped to any
@@ -248,9 +242,9 @@ struct employee_country
object(country = nat: employee::nationality_)
struct employee_country_objects
{
- shared_ptr<employee> e;
- shared_ptr<country> res;
- shared_ptr<country> nat;
+ std::shared_ptr<employee> e;
+ std::shared_ptr<country> res;
+ std::shared_ptr<country> nat;
};
// An example of using inner join type. Here we want to find employers
@@ -269,7 +263,7 @@ struct employee_country_objects
#pragma db view object(employer) object(employee inner) query(distinct)
struct employer_with_employees
{
- shared_ptr<employer> e;
+ std::shared_ptr<employer> e;
};
// An example of a native view that provides a complete query and is based
diff --git a/odb-examples/view/testscript b/odb-examples/view/testscript
new file mode 100644
index 0000000..d8be673
--- /dev/null
+++ b/odb-examples/view/testscript
@@ -0,0 +1,13 @@
+# file : view/testscript
+# license : GNU GPL v2; see accompanying LICENSE file
+
+.include ../database-options.testscript
+.include ../$(database).testscript
+
++if! $sqlite
+ $create_schema
+end
+
+: basics
+:
+$* >|
diff --git a/optimistic/makefile b/optimistic/makefile
deleted file mode 100644
index a9db03e..0000000
--- a/optimistic/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : optimistic/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema \
---table-prefix optimistic_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/oracle-driver.bat b/oracle-driver.bat
deleted file mode 100644
index cf08e46..0000000
--- a/oracle-driver.bat
+++ /dev/null
@@ -1,42 +0,0 @@
-@echo off
-rem file : oracle-driver.bat
-rem license : GNU GPL v2; see accompanying LICENSE file
-
-rem
-rem oracle-driver.bat sql-file
-rem
-rem Run the oracle client on the SQL file specified. Adjust the
-rem options below to match your Oracle setup.
-rem
-
-setlocal
-
-set "options=%ORACLE_OPTIONS% -L -S"
-set "options=%options% odb_test/odb_test"
-rem set "options=%options% odb_test/odb_test@//192.168.0.5:1521/xe"
-
-set "oracle=%ORACLE_CLIENT%"
-
-if "_%oracle%_" == "__" set "oracle=sqlplus"
-
-if "_%1_" == "__" (
- echo no sql file specified
- goto usage
-)
-
-%oracle% %options% @%1
-
-if errorlevel 1 goto error
-goto end
-
-:usage
-echo.
-echo usage: oracle-driver.bat sql-file
-echo.
-
-:error
-endlocal
-exit /b 1
-
-:end
-endlocal
diff --git a/oracle.options b/oracle.options
deleted file mode 100644
index f01413e..0000000
--- a/oracle.options
+++ /dev/null
@@ -1,9 +0,0 @@
-# Sample Oracle options file used to run the tests. Adjust to
-# match your Oracle setup.
-#
-
---user odb_test
---password odb_test
-# --host
-# --port
-# --service
diff --git a/pgsql-driver.bat b/pgsql-driver.bat
deleted file mode 100644
index 5240bc5..0000000
--- a/pgsql-driver.bat
+++ /dev/null
@@ -1,50 +0,0 @@
-@echo off
-rem file : pgsql-driver.bat
-rem license : GNU GPL v2; see accompanying LICENSE file
-
-rem
-rem pgsql-driver.bat sql-file
-rem
-rem Run the pgsql client on the SQL file specified. Adjust the
-rem options below to match your PostgreSQL setup.
-rem
-
-setlocal
-
-set "options=%PGSQL_OPTIONS%"
-
-rem This user must be able to login without specifying a password.
-rem
-set "options=%options% --username=odb_test"
-
-set "options=%options% --dbname=odb_test"
-rem set "options=%options% --host="
-rem set "options=%options% --port="
-set "options=%options% --quiet"
-set "PGOPTIONS=--client-min-messages=warning"
-
-set "pgsql=%PGSQL_CLIENT%"
-
-if "_%pgsql%_" == "__" set "pgsql=psql"
-
-if "_%1_" == "__" (
- echo no sql file specified
- goto usage
-)
-
-%pgsql% %options% < %1
-
-if errorlevel 1 goto error
-goto end
-
-:usage
-echo.
-echo usage: pgsql-driver.bat sql-file
-echo.
-
-:error
-endlocal
-exit /b 1
-
-:end
-endlocal
diff --git a/pgsql.options b/pgsql.options
deleted file mode 100644
index 841de56..0000000
--- a/pgsql.options
+++ /dev/null
@@ -1,10 +0,0 @@
-# Sample PostgreSQL options file used to run the tests. Adjust to
-# match your PostgreSQL setup.
-#
-
-# This use must be able to login without specifying a password.
-#
---user odb_test
---database odb_test
-# --host
-# --port
diff --git a/pimpl/makefile b/pimpl/makefile
deleted file mode 100644
index a0aa290..0000000
--- a/pimpl/makefile
+++ /dev/null
@@ -1,126 +0,0 @@
-# file : pimpl/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx person.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---table-prefix pimpl_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_sources := $(filter-out driver.cxx,$(cxx_tun))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/prepared/makefile b/prepared/makefile
deleted file mode 100644
index d8ebcf5..0000000
--- a/prepared/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : prepared/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-schema \
---generate-prepared
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/qt/makefile b/qt/makefile
deleted file mode 100644
index 99cf1c5..0000000
--- a/qt/makefile
+++ /dev/null
@@ -1,168 +0,0 @@
-# file : qt/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libodb-qt/stub.make,\
- l: odb_qt.l,cpp-options: odb_qt.l.cpp-options)
-
-$(call import,\
- $(scf_root)/import/libqt/core/stub.make,\
- l: qt_core.l,cpp-options: qt_core.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb_qt.l) $(odb.l) $(qt_core.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_qt.l.cpp-options) \
-$(odb_db.l.cpp-options) $(qt_core.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---generate-session --profile qt --table-prefix qt_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options) $(odb_qt.l.cpp-options) $(qt_core.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README \
-$(call vc8projs,$(name)4) \
-$(call vc9projs,$(name)4) \
-$(call vc10projs,$(name)4) \
-$(call vc11projs,$(name)4) \
-$(call vc12projs,$(name)4) \
-$(call vc9projs,$(name)5) \
-$(call vc10projs,$(name)5) \
-$(call vc11projs,$(name)5) \
-$(call vc12projs,$(name)5) \
-$(call vc8slns,$(name)4) \
-$(call vc9slns,$(name)4) \
-$(call vc10slns,$(name)4) \
-$(call vc11slns,$(name)4) \
-$(call vc12slns,$(name)4) \
-$(call vc9slns,$(name)5) \
-$(call vc10slns,$(name)5) \
-$(call vc11slns,$(name)5) \
-$(call vc12slns,$(name)5)
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,$(name)4,$(name)4)
- $(call meta-vc9projs,$(name)4,$(name)4)
- $(call meta-vc9projs,$(name)5,$(name)5)
- $(call meta-vc10projs,$(name)4,$(name)4)
- $(call meta-vc10projs,$(name)5,$(name)5)
- $(call meta-vc11projs,$(name)4,$(name)4)
- $(call meta-vc11projs,$(name)5,$(name)5)
- $(call meta-vc12projs,$(name)4,$(name)4)
- $(call meta-vc12projs,$(name)5,$(name)5)
- $(call meta-vc8slns,$(name)4,4)
- $(call meta-vc9slns,$(name)4,4)
- $(call meta-vc9slns,$(name)5,5)
- $(call meta-vc10slns,$(name)4,4)
- $(call meta-vc10slns,$(name)5,5)
- $(call meta-vc11slns,$(name)4,4)
- $(call meta-vc11slns,$(name)5,5)
- $(call meta-vc12slns,$(name)4,4)
- $(call meta-vc12slns,$(name)5,5)
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8sln.make)
-$(call include,$(bld_root)/meta/vc9sln.make)
-$(call include,$(bld_root)/meta/vc10sln.make)
-$(call include,$(bld_root)/meta/vc11sln.make)
-$(call include,$(bld_root)/meta/vc12sln.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/qt/qt4-vc10.vcxproj b/qt/qt4-vc10.vcxproj
deleted file mode 100644
index ec48faf..0000000
--- a/qt/qt4-vc10.vcxproj
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;QtCored4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;QtCored4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;QtCore4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;QtCore4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/qt/qt4-vc10.vcxproj.filters b/qt/qt4-vc10.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/qt/qt4-vc10.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/qt/qt4-vc11.vcxproj b/qt/qt4-vc11.vcxproj
deleted file mode 100644
index 34d9630..0000000
--- a/qt/qt4-vc11.vcxproj
+++ /dev/null
@@ -1,178 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;QtCored4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;QtCored4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;QtCore4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;QtCore4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/qt/qt4-vc11.vcxproj.filters b/qt/qt4-vc11.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/qt/qt4-vc11.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/qt/qt4-vc12.vcxproj b/qt/qt4-vc12.vcxproj
deleted file mode 100644
index a01cf8d..0000000
--- a/qt/qt4-vc12.vcxproj
+++ /dev/null
@@ -1,182 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;QtCored4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;QtCored4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;QtCore4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;QtCore4.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/qt/qt4-vc12.vcxproj.filters b/qt/qt4-vc12.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/qt/qt4-vc12.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/qt/qt4-vc8.vcproj b/qt/qt4-vc8.vcproj
deleted file mode 100644
index 3bccc27..0000000
--- a/qt/qt4-vc8.vcproj
+++ /dev/null
@@ -1,350 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="8.00"
- Name="__value__(name)"
- ProjectGUID="{__uuid__()}"
- RootNamespace="__value__(name)"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-qt-d.lib odb-d.lib QtCored4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-qt.lib odb.lib QtCore4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-qt-d.lib odb-d.lib QtCored4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-qt.lib odb.lib QtCore4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cxx"
- UniqueIdentifier="{__uuid__()}"
- >
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hxx;ixx;txx"
- UniqueIdentifier="{__uuid__()}"
- >
-__file_entry_custom_build__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
-__file_entry__(__path__(odb_header_stem)-odb.hxx)
-__file_entry__(__path__(odb_header_stem)-odb.ixx)
-__file_entry__(database.hxx)
-__file_entries__(extra_headers)
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/qt/qt4-vc9.vcproj b/qt/qt4-vc9.vcproj
deleted file mode 100644
index f8b4cce..0000000
--- a/qt/qt4-vc9.vcproj
+++ /dev/null
@@ -1,357 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="__value__(name)"
- ProjectGUID="{__uuid__()}"
- RootNamespace="__value__(name)"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-qt-d.lib odb-d.lib QtCored4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-qt.lib odb.lib QtCore4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-qt-d.lib odb-d.lib QtCored4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-qt.lib odb.lib QtCore4.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cxx"
- UniqueIdentifier="{__uuid__()}"
- >
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hxx;ixx;txx"
- UniqueIdentifier="{__uuid__()}"
- >
-__file_entry_custom_build__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
-__file_entry__(__path__(odb_header_stem)-odb.hxx)
-__file_entry__(__path__(odb_header_stem)-odb.ixx)
-__file_entry__(database.hxx)
-__file_entries__(extra_headers)
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/qt/qt5-vc10.vcxproj b/qt/qt5-vc10.vcxproj
deleted file mode 100644
index 08696f8..0000000
--- a/qt/qt5-vc10.vcxproj
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;Qt5Cored.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;Qt5Cored.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;Qt5Core.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;Qt5Core.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/qt/qt5-vc10.vcxproj.filters b/qt/qt5-vc10.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/qt/qt5-vc10.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/qt/qt5-vc11.vcxproj b/qt/qt5-vc11.vcxproj
deleted file mode 100644
index 2f96cbd..0000000
--- a/qt/qt5-vc11.vcxproj
+++ /dev/null
@@ -1,178 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;Qt5Cored.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;Qt5Cored.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;Qt5Core.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;Qt5Core.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/qt/qt5-vc11.vcxproj.filters b/qt/qt5-vc11.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/qt/qt5-vc11.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/qt/qt5-vc12.vcxproj b/qt/qt5-vc12.vcxproj
deleted file mode 100644
index f5839bb..0000000
--- a/qt/qt5-vc12.vcxproj
+++ /dev/null
@@ -1,182 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;Qt5Cored.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-qt-d.lib;odb-d.lib;Qt5Cored.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;Qt5Core.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb-qt.lib;odb.lib;Qt5Core.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/qt/qt5-vc12.vcxproj.filters b/qt/qt5-vc12.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/qt/qt5-vc12.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/qt/qt5-vc9.vcproj b/qt/qt5-vc9.vcproj
deleted file mode 100644
index cbfba14..0000000
--- a/qt/qt5-vc9.vcproj
+++ /dev/null
@@ -1,357 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="__value__(name)"
- ProjectGUID="{__uuid__()}"
- RootNamespace="__value__(name)"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-qt-d.lib odb-d.lib Qt5Cored.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-qt.lib odb.lib Qt5Core.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-qt-d.lib odb-d.lib Qt5Cored.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb-qt.lib odb.lib Qt5Core.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cxx"
- UniqueIdentifier="{__uuid__()}"
- >
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hxx;ixx;txx"
- UniqueIdentifier="{__uuid__()}"
- >
-__file_entry_custom_build__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
-__file_entry__(__path__(odb_header_stem)-odb.hxx)
-__file_entry__(__path__(odb_header_stem)-odb.ixx)
-__file_entry__(database.hxx)
-__file_entries__(extra_headers)
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/query/makefile b/query/makefile
deleted file mode 100644
index cc2afe5..0000000
--- a/query/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : query/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --generate-query \
---table-prefix query_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/relationship/makefile b/relationship/makefile
deleted file mode 100644
index c5383ed..0000000
--- a/relationship/makefile
+++ /dev/null
@@ -1,126 +0,0 @@
-# file : relationship/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-schema \
---generate-session --default-pointer std::tr1::shared_ptr \
---table-prefix relation_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/schema/custom/makefile b/schema/custom/makefile
deleted file mode 100644
index eeac39b..0000000
--- a/schema/custom/makefile
+++ /dev/null
@@ -1,123 +0,0 @@
-# file : schema/custom/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-session \
---default-pointer std::tr1::shared_ptr
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../../template/Makefile.am)
- $(call meta-vc8projs,../../template/template,$(name))
- $(call meta-vc9projs,../../template/template,$(name))
- $(call meta-vc10projs,../../template/template,$(name))
- $(call meta-vc11projs,../../template/template,$(name))
- $(call meta-vc12projs,../../template/template,$(name))
-
-# Test.
-#
-$(test): $(driver)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/schema/embedded/makefile b/schema/embedded/makefile
deleted file mode 100644
index afe6f98..0000000
--- a/schema/embedded/makefile
+++ /dev/null
@@ -1,124 +0,0 @@
-# file : schema/embedded/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-schema \
---schema-format embedded --table-prefix schema_embedded_
-
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../../template/Makefile.am)
- $(call meta-vc8projs,../../template/template,$(name))
- $(call meta-vc9projs,../../template/template,$(name))
- $(call meta-vc10projs,../../template/template,$(name))
- $(call meta-vc11projs,../../template/template,$(name))
- $(call meta-vc12projs,../../template/template,$(name))
-
-# Test.
-#
-$(test): $(driver)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/section/makefile b/section/makefile
deleted file mode 100644
index b25cc87..0000000
--- a/section/makefile
+++ /dev/null
@@ -1,124 +0,0 @@
-# file : section/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema --table-prefix section_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/sqlite-driver.bat b/sqlite-driver.bat
deleted file mode 100644
index c5f1187..0000000
--- a/sqlite-driver.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-rem Client driver is not used for SQLite so you don't need to
-rem change anything here.
diff --git a/sqlite.options b/sqlite.options
deleted file mode 100644
index 208a7d7..0000000
--- a/sqlite.options
+++ /dev/null
@@ -1,5 +0,0 @@
-# Sample SQLite options file used to run the tests. Adjust to
-# match your SQLite setup.
-#
-
---database C:\Temp\odb_test.db
diff --git a/template-vc10.sln b/template-vc10.sln
deleted file mode 100644
index 9a5dc32..0000000
--- a/template-vc10.sln
+++ /dev/null
@@ -1,15 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-__projects__
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
-__solution_configurations__
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
-__project_configurations__
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/template-vc11.sln b/template-vc11.sln
deleted file mode 100644
index 436eeea..0000000
--- a/template-vc11.sln
+++ /dev/null
@@ -1,15 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-__projects__
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
-__solution_configurations__
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
-__project_configurations__
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/template-vc12.sln b/template-vc12.sln
deleted file mode 100644
index 446d701..0000000
--- a/template-vc12.sln
+++ /dev/null
@@ -1,17 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.21005.1
-MinimumVisualStudioVersion = 10.0.40219.1
-__projects__
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
-__solution_configurations__
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
-__project_configurations__
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/template-vc8.sln b/template-vc8.sln
deleted file mode 100644
index f38bad2..0000000
--- a/template-vc8.sln
+++ /dev/null
@@ -1,15 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-__projects__
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
-__solution_configurations__
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
-__project_configurations__
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/template-vc9.sln b/template-vc9.sln
deleted file mode 100644
index 2ec9432..0000000
--- a/template-vc9.sln
+++ /dev/null
@@ -1,15 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-__projects__
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
-__solution_configurations__
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
-__project_configurations__
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/template/Makefile.am b/template/Makefile.am
deleted file mode 100644
index 0cfe62d..0000000
--- a/template/Makefile.am
+++ /dev/null
@@ -1,50 +0,0 @@
-# file : template/Makefile.am
-# copyright : not copyrighted - public domain
-
-EXTRA_DIST = __file__(extra_dist)
-
-noinst_PROGRAMS = driver
-driver_SOURCES = driver.cxx database.hxx __path__(extra_sources) __path__(extra_headers)
-
-AM_CPPFLAGS = -I'$(builddir)' -I'$(srcdir)'
-
-if DATABASE_MYSQL
-AM_CPPFLAGS += -DDATABASE_MYSQL
-endif
-
-if DATABASE_SQLITE
-AM_CPPFLAGS += -DDATABASE_SQLITE
-endif
-
-if DATABASE_PGSQL
-AM_CPPFLAGS += -DDATABASE_PGSQL
-endif
-
-if DATABASE_ORACLE
-AM_CPPFLAGS += -DDATABASE_ORACLE
-endif
-
-if DATABASE_MSSQL
-AM_CPPFLAGS += -DDATABASE_MSSQL
-endif
-
-TESTS=$(top_builddir)/tester
-TESTS_ENVIRONMENT=top_builddir=$(top_builddir); export top_builddir;
-
-# ODB compilation.
-#
-driver_SOURCES += __path__(odb_header_stem).hxx
-nodist_driver_SOURCES = __path__(odb_header_stem)-odb.cxx
-BUILT_SOURCES = __path__(odb_header_stem)-odb.hxx
-CLEANFILES = __path__(odb_header_stem)-odb.hxx __path__(odb_header_stem)-odb.ixx __path__(odb_header_stem)-odb.cxx
-
-ODB = @ODB@
-ODBFLAGS = @ODBFLAGS@
-ODBCPPFLAGS = @ODBCPPFLAGS@
-
-if HAVE_CXX11
-ODBFLAGS += --std c++11
-endif
-
-__path__(odb_header_stem)-odb.hxx: __path__(odb_header_stem).hxx
- $(ODB) $(ODBCPPFLAGS) $(CPPFLAGS) $(ODBFLAGS) --database @database@ __value__(odb_options) $<
diff --git a/template/database.hxx b/template/database.hxx
deleted file mode 100644
index dfe6562..0000000
--- a/template/database.hxx
+++ /dev/null
@@ -1,94 +0,0 @@
-// file : template/database.hxx
-// copyright : not copyrighted - public domain
-
-//
-// Create concrete database instance based on the DATABASE_* macros.
-//
-
-#ifndef DATABASE_HXX
-#define DATABASE_HXX
-
-#include <string>
-#include <memory> // std::auto_ptr
-#include <cstdlib> // std::exit
-#include <iostream>
-
-#include <odb/database.hxx>
-
-#if defined(DATABASE_MYSQL)
-# include <odb/mysql/database.hxx>
-#elif defined(DATABASE_SQLITE)
-# include <odb/connection.hxx>
-# include <odb/transaction.hxx>
-# include <odb/schema-catalog.hxx>
-# include <odb/sqlite/database.hxx>
-#elif defined(DATABASE_PGSQL)
-# include <odb/pgsql/database.hxx>
-#elif defined(DATABASE_ORACLE)
-# include <odb/oracle/database.hxx>
-#elif defined(DATABASE_MSSQL)
-# include <odb/mssql/database.hxx>
-#else
-# error unknown database; did you forget to define the DATABASE_* macros?
-#endif
-
-inline std::auto_ptr<odb::database>
-create_database (int& argc, char* argv[])
-{
- using namespace std;
- using namespace odb::core;
-
- if (argc > 1 && argv[1] == string ("--help"))
- {
- cout << "Usage: " << argv[0] << " [options]" << endl
- << "Options:" << endl;
-
-#if defined(DATABASE_MYSQL)
- odb::mysql::database::print_usage (cout);
-#elif defined(DATABASE_SQLITE)
- odb::sqlite::database::print_usage (cout);
-#elif defined(DATABASE_PGSQL)
- odb::pgsql::database::print_usage (cout);
-#elif defined(DATABASE_ORACLE)
- odb::oracle::database::print_usage (cout);
-#elif defined(DATABASE_MSSQL)
- odb::mssql::database::print_usage (cout);
-#endif
-
- exit (0);
- }
-
-#if defined(DATABASE_MYSQL)
- auto_ptr<database> db (new odb::mysql::database (argc, argv));
-#elif defined(DATABASE_SQLITE)
- auto_ptr<database> db (
- new odb::sqlite::database (
- argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
-
- // Create the database schema. Due to bugs in SQLite foreign key
- // support for DDL statements, we need to temporarily disable
- // foreign keys.
- //
- {
- connection_ptr c (db->connection ());
-
- c->execute ("PRAGMA foreign_keys=OFF");
-
- transaction t (c->begin ());
- schema_catalog::create_schema (*db);
- t.commit ();
-
- c->execute ("PRAGMA foreign_keys=ON");
- }
-#elif defined(DATABASE_PGSQL)
- auto_ptr<database> db (new odb::pgsql::database (argc, argv));
-#elif defined(DATABASE_ORACLE)
- auto_ptr<database> db (new odb::oracle::database (argc, argv));
-#elif defined(DATABASE_MSSQL)
- auto_ptr<database> db (new odb::mssql::database (argc, argv));
-#endif
-
- return db;
-}
-
-#endif // DATABASE_HXX
diff --git a/template/driver.cxx b/template/driver.cxx
deleted file mode 100644
index 7160587..0000000
--- a/template/driver.cxx
+++ /dev/null
@@ -1,38 +0,0 @@
-// file : template/driver.cxx
-// copyright : not copyrighted - public domain
-
-#include <memory> // std::auto_ptr
-#include <iostream>
-
-#include <odb/database.hxx>
-#include <odb/transaction.hxx>
-
-#include "database.hxx" // create_database
-
-#include "person.hxx"
-#include "person-odb.hxx"
-
-using namespace std;
-using namespace odb::core;
-
-int
-main (int argc, char* argv[])
-{
- try
- {
- auto_ptr<database> db (create_database (argc, argv));
-
- {
- person p ("John", "Doe", 21);
-
- transaction t (db->begin ());
- db->persist (p);
- t.commit ();
- }
- }
- catch (const odb::exception& e)
- {
- cerr << e.what () << endl;
- return 1;
- }
-}
diff --git a/template/makefile b/template/makefile
deleted file mode 100644
index dc9e328..0000000
--- a/template/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : template/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := person.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-schema \
---table-prefix template_ #@@ CHANGE THIS
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-
diff --git a/template/person.hxx b/template/person.hxx
deleted file mode 100644
index 7b7a50a..0000000
--- a/template/person.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-// file : template/person.hxx
-// copyright : not copyrighted - public domain
-
-#ifndef PERSON_HXX
-#define PERSON_HXX
-
-#include <string>
-
-#include <odb/core.hxx>
-
-#pragma db object
-class person
-{
-public:
- person (const std::string& first,
- const std::string& last,
- unsigned short age)
- : first_ (first), last_ (last), age_ (age)
- {
- }
-
- const std::string&
- first () const
- {
- return first_;
- }
-
- const std::string&
- last () const
- {
- return last_;
- }
-
- unsigned short
- age () const
- {
- return age_;
- }
-
-private:
- friend class odb::access;
-
- person () {}
-
- #pragma db id auto
- unsigned long id_;
-
- std::string first_;
- std::string last_;
- unsigned short age_;
-};
-
-#endif // PERSON_HXX
diff --git a/template/template-vc10.vcxproj b/template/template-vc10.vcxproj
deleted file mode 100644
index cda7935..0000000
--- a/template/template-vc10.vcxproj
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/template/template-vc10.vcxproj.filters b/template/template-vc10.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/template/template-vc10.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/template/template-vc11.vcxproj b/template/template-vc11.vcxproj
deleted file mode 100644
index 4cd24bc..0000000
--- a/template/template-vc11.vcxproj
+++ /dev/null
@@ -1,178 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/template/template-vc11.vcxproj.filters b/template/template-vc11.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/template/template-vc11.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/template/template-vc12.vcxproj b/template/template-vc12.vcxproj
deleted file mode 100644
index da21d1c..0000000
--- a/template/template-vc12.vcxproj
+++ /dev/null
@@ -1,182 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{__uuid__()}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>__value__(name)</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v120</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(Platform)\$(Configuration)\</OutDir>
- <TargetName>driver</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database));%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <DisableSpecificWarnings>4068;4355;4800;4290;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <SDLCheck>true</SDLCheck>
- </ClCompile>
- <Link>
- <AdditionalDependencies>odb-__value__(database).lib;odb.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
-__custom_build_entry__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
- </ItemGroup>
- <ItemGroup>
-__header_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_entry__(database.hxx)
-__header_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/template/template-vc12.vcxproj.filters b/template/template-vc12.vcxproj.filters
deleted file mode 100644
index f754d41..0000000
--- a/template/template-vc12.vcxproj.filters
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>cxx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{__uuid__()}</UniqueIdentifier>
- <Extensions>h;hxx;ixx;txx</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
-__header_filter_entry__(__path__(odb_header_stem).hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.hxx)
-__header_filter_entry__(__path__(odb_header_stem)-odb.ixx)
-__header_filter_entries__(database.hxx)
-__header_filter_entries__(extra_headers)
- </ItemGroup>
- <ItemGroup>
-__source_filter_entry__(driver.cxx)
-__source_filter_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_filter_entries__(extra_sources)
- </ItemGroup>
-</Project>
diff --git a/template/template-vc8.vcproj b/template/template-vc8.vcproj
deleted file mode 100644
index 24f9831..0000000
--- a/template/template-vc8.vcproj
+++ /dev/null
@@ -1,350 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="8.00"
- Name="__value__(name)"
- ProjectGUID="{__uuid__()}"
- RootNamespace="__value__(name)"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cxx"
- UniqueIdentifier="{__uuid__()}"
- >
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hxx;ixx;txx"
- UniqueIdentifier="{__uuid__()}"
- >
-__file_entry_custom_build__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
-__file_entry__(__path__(odb_header_stem)-odb.hxx)
-__file_entry__(__path__(odb_header_stem)-odb.ixx)
-__file_entry__(database.hxx)
-__file_entries__(extra_headers)
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/template/template-vc9.vcproj b/template/template-vc9.vcproj
deleted file mode 100644
index dc98b07..0000000
--- a/template/template-vc9.vcproj
+++ /dev/null
@@ -1,357 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="__value__(name)"
- ProjectGUID="{__uuid__()}"
- RootNamespace="__value__(name)"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database)-d.lib odb-d.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;__upcase__(database_)__upcase__(__value__(database))"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odb-__value__(database).lib odb.lib"
- OutputFile="$(OutDir)\driver.exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cxx"
- UniqueIdentifier="{__uuid__()}"
- >
-__source_entry__(driver.cxx)
-__source_entry__(__path__(odb_header_stem)-odb.cxx)
-__source_entries__(extra_sources)
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hxx;ixx;txx"
- UniqueIdentifier="{__uuid__()}"
- >
-__file_entry_custom_build__(
-__path__(odb_header_stem).hxx,
-odb __path__(odb_header_stem).hxx,
-odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options))) __path__(odb_header_stem).hxx,
-__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
-__file_entry__(__path__(odb_header_stem)-odb.hxx)
-__file_entry__(__path__(odb_header_stem)-odb.ixx)
-__file_entry__(database.hxx)
-__file_entries__(extra_headers)
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/test.bat b/test.bat
deleted file mode 100644
index 2885723..0000000
--- a/test.bat
+++ /dev/null
@@ -1,79 +0,0 @@
-@echo off
-rem file : test.bat
-rem license : GNU GPL v2; see accompanying LICENSE file
-
-setlocal
-
-set "tests=__path__(dirs) __path__(tr1_dirs) __path__(boost_dirs) __path__(qt_dirs)"
-set "confs=__path__(configurations)"
-set "plats=__path__(platforms)"
-set "curdir=%CD%"
-set "topdir=%curdir%"
-set "failed="
-
-if "_%1_" == "__" (
- echo no database specified
- goto usage
-)
-
-goto start
-
-rem
-rem %1 - test directory
-rem %2 - configuration
-rem %3 - platform
-rem %4 - database
-rem
-:run_test
- cd %1
-
- if "_%3_" == "_Win32_" (
- set "dir=%2"
- ) else (
- set "dir=%3\%2"
- )
-
- if exist %dir%\driver.exe (
- echo %1\%3\%2
- call %topdir%\tester.bat %4 %2 %3
- if errorlevel 1 (
- set "failed=%failed% %1\%3\%2"
- )
- )
-
- cd %curdir%
-goto :eof
-
-:start
-
-for %%t in (%tests%) do (
- for %%c in (%confs%) do (
- for %%p in (%plats%) do (
- call :run_test %%t %%c %%p %1
- )
- )
-)
-
-if not "_%failed%_" == "__" goto error
-
-echo.
-echo ALL EXAMPLES PASSED
-echo.
-goto end
-
-:usage
-echo.
-echo usage: test.bat database
-echo.
-
-:error
-if not "_%failed%_" == "__" (
- echo.
- for %%t in (%failed%) do echo FAILED: %%t
- echo.
-)
-endlocal
-exit /b 1
-
-:end
-endlocal
diff --git a/tester.bat b/tester.bat
deleted file mode 100644
index ad8f8f3..0000000
--- a/tester.bat
+++ /dev/null
@@ -1,41 +0,0 @@
-@echo off
-rem file : tester.bat
-rem license : GNU GPL v2; see accompanying LICENSE file
-
-rem
-rem Run an ODB example. The example directory is the current directory.
-rem
-rem %1 database
-rem %2 configuration, for example, Debug or Release
-rem %3 platform, for example Win32 or x64
-rem topdir variable containing the path to top project directory
-rem
-
-setlocal
-
-if "_%3_" == "_Win32_" (
- set "dir=%2"
-) else (
- set "dir=%3\%2"
-)
-
-rem Globbing returns files in alphabetic order.
-rem
-if exist *.sql (
- for %%f in (*.sql) do (
- call %topdir%\%1-driver.bat %%f
- if errorlevel 1 goto error
- )
-)
-
-%dir%\driver.exe --options-file %topdir%\%1.options
-if errorlevel 1 goto error
-
-goto end
-
-:error
-endlocal
-exit /b 1
-
-:end
-endlocal
diff --git a/tester.in b/tester.in
deleted file mode 100755
index 5169f8f..0000000
--- a/tester.in
+++ /dev/null
@@ -1,27 +0,0 @@
-#! /bin/sh
-
-# file : tester.in
-# license : GNU GPL v2; see accompanying LICENSE file
-
-#
-# Run an ODB example. The example driver is in the current directory.
-# The data files, if any, are in $srcdir.
-#
-
-db_driver="$top_builddir/@database@-driver"
-db_options="$top_builddir/@database@.options"
-
-# Globbing returns files in alphabetic order.
-#
-for f in `echo *.sql`; do
- if test -f $f; then
- $db_driver $f
-
- if test $? -ne 0; then
- exit 1
- fi
- fi
-done
-
-echo ./driver --options-file "$db_options"
-./driver --options-file "$db_options"
diff --git a/version b/version
deleted file mode 100644
index 6bc2f39..0000000
--- a/version
+++ /dev/null
@@ -1 +0,0 @@
-2.5.0-b.26
diff --git a/view/makefile b/view/makefile
deleted file mode 100644
index 7dcd62f..0000000
--- a/view/makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-# file : view/makefile
-# license : GNU GPL v2; see accompanying LICENSE file
-
-include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
-
-cxx_tun := driver.cxx
-odb_hdr := employee.hxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
-cxx_od := $(cxx_obj:.o=.o.d)
-
-driver := $(out_base)/driver
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
-# Import.
-#
-$(call import,\
- $(scf_root)/import/odb/stub.make,\
- odb: odb,odb-rules: odb_rules)
-
-$(call import,\
- $(scf_root)/import/libodb/stub.make,\
- l: odb.l,cpp-options: odb.l.cpp-options)
-
-ifdef db_id
-$(call import,\
- $(scf_root)/import/libodb-$(db_id)/stub.make,\
- l: odb_db.l,cpp-options: odb_db.l.cpp-options)
-endif
-
-ifeq ($(odb_db.l.cpp-options),)
-odb_db.l.cpp-options := $(out_base)/.unbuildable
-endif
-
-# Build.
-#
-$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
-$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-
-genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx) $(odb_hdr:.hxx=.sql)
-gen := $(addprefix $(out_base)/,$(genf))
-
-$(gen): $(odb)
-$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --generate-query --generate-schema \
---default-pointer std::tr1::shared_ptr --generate-session --table-prefix view_
-$(gen): cpp_options := -I$(src_base)
-$(gen): $(odb.l.cpp-options)
-
-$(gen): odb_options += --database $(db_id)
-
-$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
-
-# Alias for default target.
-#
-$(out_base)/: $(driver)
-
-# Dist
-#
-name := $(subst /,-,$(subst $(src_root)/,,$(src_base)))
-
-$(dist): sources := $(cxx_tun)
-$(dist): headers := $(odb_hdr)
-$(dist): export name := $(name)
-$(dist): export odb_header_stem := $(basename $(odb_hdr))
-$(dist): export extra_dist := README $(call vc8projs,$(name)) \
-$(call vc9projs,$(name)) $(call vc10projs,$(name)) $(call vc11projs,$(name)) \
-$(call vc12projs,$(name))
-$(dist):
- $(call dist-data,$(sources) $(headers) README database.hxx)
- $(call meta-automake,../template/Makefile.am)
- $(call meta-vc8projs,../template/template,$(name))
- $(call meta-vc9projs,../template/template,$(name))
- $(call meta-vc10projs,../template/template,$(name))
- $(call meta-vc11projs,../template/template,$(name))
- $(call meta-vc12projs,../template/template,$(name))
-
-# Test.
-#
-$(test): header := $(odb_hdr)
-$(test): $(driver)
- $(call schema)
- $(call message,test $<,$< --options-file $(dcf_root)/$(db_id).options)
-
-# Clean.
-#
-$(clean): \
- $(driver).o.clean \
- $(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
-
-# Generated .gitignore.
-#
-ifeq ($(out_base),$(src_base))
-$(driver): | $(out_base)/.gitignore
-
-$(out_base)/.gitignore: files := driver $(genf)
-$(clean): $(out_base)/.gitignore.clean
-
-$(call include,$(bld_root)/git/gitignore.make)
-endif
-
-# How to.
-#
-$(call include,$(bld_root)/dist.make)
-$(call include,$(bld_root)/meta/vc8proj.make)
-$(call include,$(bld_root)/meta/vc9proj.make)
-$(call include,$(bld_root)/meta/vc10proj.make)
-$(call include,$(bld_root)/meta/vc11proj.make)
-$(call include,$(bld_root)/meta/vc12proj.make)
-$(call include,$(bld_root)/meta/automake.make)
-
-$(call include,$(bld_root)/cxx/standard.make) # cxx_standard
-ifdef cxx_standard
-$(gen): odb_options += --std $(cxx_standard)
-$(call include,$(odb_rules))
-endif
-
-$(call include,$(bld_root)/cxx/cxx-d.make)
-$(call include,$(bld_root)/cxx/cxx-o.make)
-$(call include,$(bld_root)/cxx/o-e.make)
-