aboutsummaryrefslogtreecommitdiff
path: root/libbutl-odb/odb/sqlite/version.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-05-06 06:33:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-05-06 07:48:52 +0200
commit6b61bd245870bad80a2655ea4c4b56d1246233df (patch)
tree0ddf9d148b31c6d6f16dc49107d6826151f4872d /libbutl-odb/odb/sqlite/version.hxx
parent78a1f350d9b6483997886d7438504d2a75498f68 (diff)
Add libbutl-odb source subdirectory
This is an additional (to libbutl) utility library which contains the source code of libodb, libodb-sqlite, and libsqlite3 configured and tuned for our needs.
Diffstat (limited to 'libbutl-odb/odb/sqlite/version.hxx')
-rw-r--r--libbutl-odb/odb/sqlite/version.hxx65
1 files changed, 65 insertions, 0 deletions
diff --git a/libbutl-odb/odb/sqlite/version.hxx b/libbutl-odb/odb/sqlite/version.hxx
new file mode 100644
index 0000000..e604c17
--- /dev/null
+++ b/libbutl-odb/odb/sqlite/version.hxx
@@ -0,0 +1,65 @@
+// file : odb/sqlite/version.hxx.in
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef LIBODB_SQLITE_VERSION // Note: using the version macro itself.
+
+// New numeric version format is AAAAABBBBBCCCCCDDDE where:
+//
+// AAAAA - major version number
+// BBBBB - minor version number
+// CCCCC - bugfix version number
+// DDD - alpha / beta (DDD + 500) version number
+// E - final (0) / snapshot (1)
+//
+// When DDDE is not 0, 1 is subtracted from AAAAABBBBBCCCCC. For example:
+//
+// Version AAAAABBBBBCCCCCDDDE
+//
+// 0.1.0 0000000001000000000
+// 0.1.2 0000000001000020000
+// 1.2.3 0000100002000030000
+// 2.2.0-a.1 0000200001999990010
+// 3.0.0-b.2 0000299999999995020
+// 2.2.0-a.1.z 0000200001999990011
+//
+#define LIBODB_SQLITE_VERSION_FULL 200004999995261ULL
+#define LIBODB_SQLITE_VERSION_STR "2.5.0-b.26.20240502090701.7ce5b6d18b67"
+#define LIBODB_SQLITE_VERSION_ID "2.5.0-b.26.7ce5b6d18b67"
+
+#define LIBODB_SQLITE_VERSION_MAJOR 2
+#define LIBODB_SQLITE_VERSION_MINOR 5
+#define LIBODB_SQLITE_VERSION_PATCH 0
+
+#define LIBODB_SQLITE_PRE_RELEASE true
+
+#define LIBODB_SQLITE_SNAPSHOT 20240502090701ULL
+#define LIBODB_SQLITE_SNAPSHOT_ID "7ce5b6d18b67"
+
+#include <odb/version.hxx>
+
+#ifdef LIBODB_VERSION_FULL
+# if !(LIBODB_VERSION_FULL == 200004999995261ULL && LIBODB_SNAPSHOT == 20240502090701ULL)
+# error incompatible libodb version, libodb == 2.5.0-b.26.20240502090701.7ce5b6d18b67 is required
+# endif
+#endif
+
+
+// Old/deprecated numeric version format is AABBCCDD where:
+//
+// AA - major version number
+// BB - minor version number
+// CC - bugfix version number
+// DD - alpha / beta (DD + 50) version number
+//
+// When DD is not 00, 1 is subtracted from AABBCC. For example:
+//
+// Version AABBCCDD
+// 2.0.0 02000000
+// 2.1.0 02010000
+// 2.1.1 02010100
+// 2.2.0.a1 02019901
+// 3.0.0.b2 02999952
+//
+#define LIBODB_SQLITE_VERSION 2049976
+
+#endif // LIBODB_SQLITE_VERSION