diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-18 12:35:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-18 12:35:53 +0200 |
commit | acff75b62b48f9a121d935e1f59ddc465145618c (patch) | |
tree | 3a82b256f3f4b75c17a9013d0f158183383105cb /odb/sqlite/details | |
parent | 35c31a19f90608df19f0c4aa077dcbbe5150d3e4 (diff) |
Development build system setup
Diffstat (limited to 'odb/sqlite/details')
-rw-r--r-- | odb/sqlite/details/config.h.in | 14 | ||||
-rw-r--r-- | odb/sqlite/details/config.hxx | 20 | ||||
-rw-r--r-- | odb/sqlite/details/export.hxx | 41 | ||||
-rw-r--r-- | odb/sqlite/details/options.cli | 48 |
4 files changed, 123 insertions, 0 deletions
diff --git a/odb/sqlite/details/config.h.in b/odb/sqlite/details/config.h.in new file mode 100644 index 0000000..ff8c029 --- /dev/null +++ b/odb/sqlite/details/config.h.in @@ -0,0 +1,14 @@ +/* file : odb/sqlite/details/config.h.in + * author : Boris Kolpackov <boris@codesynthesis.com> + * copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC + * license : GNU GPL v2; see accompanying LICENSE file + */ + +/* This file is automatically processed by configure. */ + +#ifndef ODB_SQLITE_DETAILS_CONFIG_H +#define ODB_SQLITE_DETAILS_CONFIG_H + +#undef LIBODB_SQLITE_STATIC_LIB + +#endif /* ODB_SQLITE_DETAILS_CONFIG_H */ diff --git a/odb/sqlite/details/config.hxx b/odb/sqlite/details/config.hxx new file mode 100644 index 0000000..26aeaf3 --- /dev/null +++ b/odb/sqlite/details/config.hxx @@ -0,0 +1,20 @@ +// file : odb/sqlite/details/config.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_SQLITE_DETAILS_CONFIG_HXX +#define ODB_SQLITE_DETAILS_CONFIG_HXX + +// no pre + +#ifdef _MSC_VER +#elif defined(ODB_COMPILER) +# error libodb-sqlite header included in odb-compiled header +#else +# include <odb/sqlite/details/config.h> +#endif + +// no post + +#endif // ODB_SQLITE_DETAILS_CONFIG_HXX diff --git a/odb/sqlite/details/export.hxx b/odb/sqlite/details/export.hxx new file mode 100644 index 0000000..dd17e33 --- /dev/null +++ b/odb/sqlite/details/export.hxx @@ -0,0 +1,41 @@ +// file : odb/sqlite/details/export.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_SQLITE_DETAILS_EXPORT_HXX +#define ODB_SQLITE_DETAILS_EXPORT_HXX + +#include <odb/pre.hxx> + +#include <odb/sqlite/details/config.hxx> + +#ifdef LIBODB_SQLITE_STATIC_LIB +# define LIBODB_SQLITE_EXPORT +#else +# ifdef _WIN32 +# ifdef _MSC_VER +# ifdef LIBODB_SQLITE_DYNAMIC_LIB +# define LIBODB_SQLITE_EXPORT __declspec(dllexport) +# else +# define LIBODB_SQLITE_EXPORT __declspec(dllimport) +# endif +# else +# ifdef LIBODB_SQLITE_DYNAMIC_LIB +# ifdef DLL_EXPORT +# define LIBODB_SQLITE_EXPORT __declspec(dllexport) +# else +# define LIBODB_SQLITE_EXPORT +# endif +# else +# define LIBODB_SQLITE_EXPORT __declspec(dllimport) +# endif +# endif +# else +# define LIBODB_SQLITE_EXPORT +# endif +#endif + +#include <odb/post.hxx> + +#endif // ODB_SQLITE_DETAILS_EXPORT_HXX diff --git a/odb/sqlite/details/options.cli b/odb/sqlite/details/options.cli new file mode 100644 index 0000000..a0af101 --- /dev/null +++ b/odb/sqlite/details/options.cli @@ -0,0 +1,48 @@ +// file : odb/sqlite/details/options.cli +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +include <string>; + +namespace odb +{ + namespace sqlite + { + namespace details + { + class options + { + std::string --database + { + "<filename>", + "SQLite database file name. If the database file is not specified + then a private, temporary on-disk database will be created. Use + the \cb{:memory:} special name to create a private, temporary + in-memory database." + }; + + bool --database-create + { + "Create the SQLite database if it does not already exist. By default + opening the database fails if it does not already exist." + }; + + bool --database-readonly + { + "Open the SQLite database in read-only mode. By default the database + is opened for reading and writing if possible, or reading only if + the file is write-protected by the operating system." + }; + + std::string --options-file + { + "<file>", + "Read additional options from <file>. Each option appearing on a + separate line optionally followed by space and an option value. + Empty lines and lines starting with \cb{#} are ignored." + }; + }; + } + } +} |