mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-12 17:24:40 +03:00
feat(build): compile version strings from CMake
This commit is contained in:
1 parent
0ca9e90859
commit
03fc131e2e
2 files changed
+27
-1
No files matched your search
@@ -1,7 +1,21 @@
|
||||
#include "console/Console.hpp"
|
||||
#include "console/command/Commands.hpp"
|
||||
|
||||
#if defined(NDEBUG)
|
||||
#define WHOA_BUILD_TYPE "Release"
|
||||
#else
|
||||
#define WHOA_BUILD_TYPE "Debug"
|
||||
#endif
|
||||
|
||||
#define WHOA_BRAND_STRING "Whoa"
|
||||
|
||||
#define WHOA_PROJECT_URL "https://github.com/thunderbrewhq/thunderbrew"
|
||||
|
||||
#define WHOA_VERSION_STRING WHOA_BRAND_STRING " [" WHOA_BUILD_TYPE "] Build " WHOA_VERSION_BUILD " (" __DATE__ ") <" WHOA_PROJECT_URL ">"
|
||||
|
||||
DECLARE_COMMAND(Ver) {
|
||||
ConsoleWrite("Whoa <https://github.com/whoahq/whoa>", DEFAULT_COLOR);
|
||||
// ConsoleWrite("Thunderbrew <https://github.com/thunderbrewhq/thunderbrew>", ADMIN_COLOR);
|
||||
ConsoleWrite(WHOA_VERSION_STRING, DEFAULT_COLOR);
|
||||
|
||||
return 1;
|
||||
}
|
||||
Reference in new issue
Block a user