1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Core: Move generated VERSION_HASH to a .cpp file

This lets us have its definition in `core/version.h` and avoid
rebuilding a handful of files every time the commit hash changes.
This commit is contained in:
Rémi Verschelde
2022-02-08 20:50:37 +01:00
parent 3cb9dc78d6
commit 90162851a7
13 changed files with 26 additions and 43 deletions

View File

@@ -50,7 +50,6 @@
#include "core/register_core_types.h"
#include "core/string/translation.h"
#include "core/version.h"
#include "core/version_hash.gen.h"
#include "drivers/register_driver_types.h"
#include "main/app_icon.gen.h"
#include "main/main_timer_sync.h"
@@ -200,7 +199,7 @@ static String unescape_cmdline(const String &p_str) {
static String get_full_version_string() {
String hash = String(VERSION_HASH);
if (hash.length() != 0) {
if (!hash.is_empty()) {
hash = "." + hash.left(9);
}
return String(VERSION_FULL_BUILD) + hash;