diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 32 |
1 files changed, 20 insertions, 12 deletions
@@ -29,7 +29,7 @@ ODB as opposed to consumption. In case you just want to use ODB: The development setup for ODB uses multiple build configurations: a single host configuration for the ODB compiler and a target configuration per -database. For example: +database (or multiple databases). For example: ``` git clone .../odb.git @@ -37,19 +37,19 @@ cd odb bdep init --empty -bdep config create @host ../odb-host --type host cc config.cxx=g++ +bdep config create @host ../odb-host --type host cc config.cxx=g++ bdep config create @sqlite ../odb-sqlite cc config.cxx=g++ -bdep config create @pgsql ../odb-pgsql cc config.cxx=g++ -bdep config create @mysql ../odb-mysql cc config.cxx=g++ +bdep config create @pgsql ../odb-pgsql cc config.cxx=g++ +bdep config create @mysql ../odb-mysql cc config.cxx=g++ bdep config create @oracle ../odb-oracle cc config.cxx=g++ -bdep config create @mssql ../odb-mssql cc config.cxx=g++ +bdep config create @mssql ../odb-mssql cc config.cxx=g++ bdep init @host -d odb bdep init @sqlite -d libodb -d libodb-sqlite -d odb-tests -d odb-examples -bdep init @pgsql -d libodb -d libodb-pgsql -d odb-tests -d odb-examples -bdep init @mysql -d libodb -d libodb-mysql -d odb-tests -d odb-examples +bdep init @pgsql -d libodb -d libodb-pgsql -d odb-tests -d odb-examples +bdep init @mysql -d libodb -d libodb-mysql -d odb-tests -d odb-examples bdep init @oracle -d libodb -d libodb-oracle -d odb-tests -d odb-examples -bdep init @mssql -d libodb -d libodb-mssql -d odb-tests -d odb-examples +bdep init @mssql -d libodb -d libodb-mssql -d odb-tests -d odb-examples ``` Note that while the target configurations can use any compiler (and you can @@ -69,11 +69,19 @@ bdep init @pgsql -d libodb -d libodb-pgsql -d odb-tests ?sys:libpq { @host }+ ?s bdep init @mysql -d libodb -d libodb-mysql -d odb-tests ?sys:libmysqlclient { @host }+ ?sys:mysql-client/* ``` -Note that the client libraries and tools for Oracle and Microsoft SQL Server -are expected to be system-installed. +Note that the (proprieary) client libraries and tools for Oracle and Microsoft +SQL Server are expected to be system-installed. -You can also create a target configuration for testing multi-database -support. For example: +If desired, tests for profile libraries (`libodb-boost` and/or `libodb-qt`) +need to be enabled explicitly. For example: + +``` +bdep init @sqlite -d libodb -d libodb-sqlite -d libodb-boost -d libodb-qt +bdep init @sqlite -d odb-tests config.odb_tests.boost=true config.odb_tests.qt=6 +``` + +You can also create a target configuration for testing multi-database support. +For example: ``` bdep config create @multi ../odb-multi cc config.cxx=g++ |