summaryrefslogtreecommitdiff
path: root/odb/oracle/version-build2.hxx.in
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-06-06 23:35:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-06-18 14:28:42 +0300
commit369fe1eba31f3e7a6f5424002eae88bfcb280efa (patch)
tree8ed97a28d17953ef956199d7f6c7cb5c7c9459cf /odb/oracle/version-build2.hxx.in
parente3c608545cedcd5202abb155bb94d17f7174451b (diff)
Add support for build2 build
Diffstat (limited to 'odb/oracle/version-build2.hxx.in')
-rw-r--r--odb/oracle/version-build2.hxx.in44
1 files changed, 44 insertions, 0 deletions
diff --git a/odb/oracle/version-build2.hxx.in b/odb/oracle/version-build2.hxx.in
new file mode 100644
index 0000000..c7678f4
--- /dev/null
+++ b/odb/oracle/version-build2.hxx.in
@@ -0,0 +1,44 @@
+// file : odb/oracle/version-build2.hxx.in
+// copyright : Copyright (c) 2005-2018 Code Synthesis Tools CC
+// license : ODB NCUEL; see accompanying LICENSE file
+
+#ifndef LIBODB_ORACLE_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_ORACLE_VERSION $libodb-oracle.version.project_number$ULL
+#define LIBODB_ORACLE_VERSION_STR "$libodb-oracle.version.project$"
+#define LIBODB_ORACLE_VERSION_ID "$libodb-oracle.version.project_id$"
+
+#define LIBODB_ORACLE_VERSION_MAJOR $libodb-oracle.version.major$
+#define LIBODB_ORACLE_VERSION_MINOR $libodb-oracle.version.minor$
+#define LIBODB_ORACLE_VERSION_PATCH $libodb-oracle.version.patch$
+
+#define LIBODB_ORACLE_PRE_RELEASE $libodb-oracle.version.pre_release$
+
+#define LIBODB_ORACLE_SNAPSHOT $libodb-oracle.version.snapshot_sn$ULL
+#define LIBODB_ORACLE_SNAPSHOT_ID "$libodb-oracle.version.snapshot_id$"
+
+#include <odb/version.hxx>
+
+$libodb.check(LIBODB_VERSION, LIBODB_SNAPSHOT)$
+
+#endif // LIBODB_ORACLE_VERSION