mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-07-31 18:00:46 -04:00
Generate core/version.hpp from `git describe --tags --abbrev=0` so the client always reports the last tagged release, refreshed on every build rather than only when cmake happens to reconfigure. The date carries no clock time, so the header changes at most once a day instead of forcing a recompile every build. Also un-ignore cmake/*.cmake: the repo's *.cmake rule is aimed at build output, and would have silently dropped the new module from the tree.
19 lines
604 B
C++
19 lines
604 B
C++
#pragma once
|
|
|
|
// Generated from git at build time — see cmake/GitVersion.cmake.
|
|
// kVersion is the last tag reachable from HEAD, so tagging a release is all it
|
|
// takes to update the version the client reports.
|
|
|
|
namespace wowee {
|
|
namespace core {
|
|
|
|
inline constexpr const char* kVersion = "@WOWEE_GIT_VERSION@";
|
|
inline constexpr const char* kBuildDate = "@WOWEE_BUILD_DATE@";
|
|
|
|
// "v2.0.3-preview (built 2026-07-12)" — what the login screen and settings show.
|
|
inline constexpr const char* kVersionString =
|
|
"@WOWEE_GIT_VERSION@ (built @WOWEE_BUILD_DATE@)";
|
|
|
|
} // namespace core
|
|
} // namespace wowee
|