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

@ -68,4 +68,7 @@
// Example: "Godot v3.1.4.stable.official.mono"
#define VERSION_FULL_NAME "" VERSION_NAME " v" VERSION_FULL_BUILD
// Git commit hash, generated at build time in `core/version_hash.gen.cpp`.
extern const char *const VERSION_HASH;
#endif // VERSION_H