aboutsummaryrefslogtreecommitdiff
path: root/odb/version-build2.hxx.in
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-29 16:54:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-29 16:54:40 +0200
commit0de630f3255df7817db597caad03cb5c8580cd00 (patch)
tree57ae3ffe2f9907d4617666ab3b5e816c84aa5f9d /odb/version-build2.hxx.in
parentcc35be1bf8f23ad6768dbb4f350be46e506f9381 (diff)
Add parallel version headers for build2
Diffstat (limited to 'odb/version-build2.hxx.in')
-rw-r--r--odb/version-build2.hxx.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/odb/version-build2.hxx.in b/odb/version-build2.hxx.in
new file mode 100644
index 0000000..95d80d8
--- /dev/null
+++ b/odb/version-build2.hxx.in
@@ -0,0 +1,40 @@
+// file : odb/version-build2.hxx.in
+// copyright : Copyright (c) 2005-2017 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef LIBODB_VERSION // Note: using the version macro itself.
+
+// Note: using build2 standard versioning scheme. The numeric version format
+// is AAABBBCCCDDDE where:
+//
+// AAA - major version number
+// BBB - minor version number
+// CCC - bugfix version number
+// DDD - alpha / beta (DDD + 500) version number
+// E - final (0) / snapshot (1)
+//
+// When DDDE is not 0, 1 is subtracted from AAABBBCCC. For example:
+//
+// Version AAABBBCCCDDDE
+//
+// 0.1.0 0000010000000
+// 0.1.2 0000010010000
+// 1.2.3 0010020030000
+// 2.2.0-a.1 0020019990010
+// 3.0.0-b.2 0029999995020
+// 2.2.0-a.1.z 0020019990011
+//
+#define LIBODB_VERSION $libodb.version.project_number$ULL
+#define LIBODB_VERSION_STR "$libodb.version.project$"
+#define LIBODB_VERSION_ID "$libodb.version.project_id$"
+
+#define LIBODB_VERSION_MAJOR $libodb.version.major$
+#define LIBODB_VERSION_MINOR $libodb.version.minor$
+#define LIBODB_VERSION_PATCH $libodb.version.patch$
+
+#define LIBODB_PRE_RELEASE $libodb.version.pre_release$
+
+#define LIBODB_SNAPSHOT $libodb.version.snapshot_sn$ULL
+#define LIBODB_SNAPSHOT_ID "$libodb.version.snapshot_id$"
+
+#endif // LIBODB_VERSION