summaryrefslogtreecommitdiff
path: root/libformat/libformat/version.hxx.in
diff options
context:
space:
mode:
Diffstat (limited to 'libformat/libformat/version.hxx.in')
-rw-r--r--libformat/libformat/version.hxx.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/libformat/libformat/version.hxx.in b/libformat/libformat/version.hxx.in
new file mode 100644
index 0000000..eee04b1
--- /dev/null
+++ b/libformat/libformat/version.hxx.in
@@ -0,0 +1,33 @@
+#pragma once
+
+// 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 LIBFORMAT_VERSION $libformat.version.project_number$ULL
+#define LIBFORMAT_VERSION_STR "$libformat.version.project$"
+#define LIBFORMAT_VERSION_ID "$libformat.version.project_id$"
+
+#define LIBFORMAT_VERSION_MAJOR $libformat.version.major$
+#define LIBFORMAT_VERSION_MINOR $libformat.version.minor$
+#define LIBFORMAT_VERSION_PATCH $libformat.version.patch$
+
+#define LIBFORMAT_PRE_RELEASE $libformat.version.pre_release$
+
+#define LIBFORMAT_SNAPSHOT_SN $libformat.version.snapshot_sn$ULL
+#define LIBFORMAT_SNAPSHOT_ID "$libformat.version.snapshot_id$"