6#ifndef ATLASGAMEMANAGER_VERSION_HPP
7#define ATLASGAMEMANAGER_VERSION_HPP
14#ifndef BYPASS_ATLAS_VERSION_STRINGS_REQUIRED
16#ifndef ATLAS_GIT_REVISION
17#error "No git commit specified. Specify the revision -DATLAS_GIT_REVISION"
20#ifndef ATLAS_GIT_REVISION_BRIEF
21#error "No git commit brief specified. Specify the revision -DATLAS_GIT_REVISION_BRIEF"
24#ifndef ATLAS_GIT_BRANCH
25#error "No git branch specified. Specify the branch via -DATLAS_GIT_BRANCH"
29#error "No git tag specified. Specify the tag with -DATLAS_GIT_TAG"
32#ifndef ATLAS_GIT_CREATED_TIME
33#error "Unable to get time. Specify the tag with -DATLAS_GIT_TIME"
38#define ATLAS_VERSION "Debug Build. DO NOT REDISTRIBUTE"
39#define ATLAS_GIT_BRANCH "NOT SET DURING BUILD PROCESS"
40#define ATLAS_GIT_REVISION "NOT SET DURING BUILD PROCESS"
41#define ATLAS_GIT_TAG "NOT SET DURING BUILD PROCESS"
42#define ATLAS_GIT_CREATED_TIME "NOT SET DURING BUILD PROCESS"
49#define ATLAS_VERSION_STRING ATLAS_GIT_TAG "-" ATLAS_GIT_REVISION_BRIEF " | " ATLAS_GIT_BRANCH
53#define ATLAS_VERSION_STRING ATLAS_GIT_TAG
62 [[maybe_unused]]
constexpr std::string_view
git_branch { ATLAS_GIT_BRANCH };
63 [[maybe_unused]]
constexpr std::string_view
git_revision { ATLAS_GIT_REVISION };
64 [[maybe_unused]]
constexpr std::string_view
git_rev_brief { ATLAS_GIT_REVISION_BRIEF };
65 [[maybe_unused]]
constexpr std::string_view
git_tag { ATLAS_GIT_TAG };
66 [[maybe_unused]]
constexpr std::string_view
git_time { ATLAS_GIT_CREATED_TIME };
70 const QString version {
71 QString::fromLocal8Bit(
git_tag.data(),
static_cast< qsizetype
>(
git_tag.size() ) )
78 branch = branch ==
"staging" ?
"nightly" : branch;
80 const QString sha_short {
84 return version +
"-" + sha_short +
" | " + branch;
Definition mainThread.cpp:8
constexpr std::string_view git_revision
Definition version.hpp:63
constexpr std::string_view version_string
Definition version.hpp:61
constexpr std::string_view git_branch
Definition version.hpp:62
constexpr std::string_view git_rev_brief
Definition version.hpp:64
constexpr std::string_view git_time
Definition version.hpp:66
const QString version_string_qt()
Definition version.hpp:68
constexpr std::string_view git_tag
Definition version.hpp:65
#define ATLAS_VERSION_STRING
Definition version.hpp:49