Add version utility

This commit is contained in:
DH 2023-11-10 23:41:44 +03:00
parent 74aa1a112e
commit 135c63117b
7 changed files with 156 additions and 22 deletions

11
rx/src/Version.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "rx/Version.hpp"
rx::Version rx::getVersion() {
return {
.raw = RX_RAW_VERSION,
.tag = static_cast<VersionTag>(RX_TAG),
.tagVersion = RX_TAG_VERSION,
.gitTag = RX_GIT_REV,
.dirty = (RX_GIT_DIRTY != 0),
};
}