diff --git a/game_shared/vcs_info.cpp b/game_shared/vcs_info.cpp new file mode 100644 index 00000000..0af53f33 --- /dev/null +++ b/game_shared/vcs_info.cpp @@ -0,0 +1,13 @@ +#include "vcs_info.h" + +#ifdef XASH_BUILD_COMMIT +const char *g_VCSInfo_Commit = XASH_BUILD_COMMIT; +#else +const char *g_VCSInfo_Commit = "unknown-commit"; +#endif + +#ifdef XASH_BUILD_BRANCH +const char *g_VCSInfo_Branch = XASH_BUILD_BRANCH; +#else +const char *g_VCSInfo_Branch = "unknown-commit"; +#endif diff --git a/game_shared/vcs_info.h b/game_shared/vcs_info.h new file mode 100644 index 00000000..7904ff8a --- /dev/null +++ b/game_shared/vcs_info.h @@ -0,0 +1,7 @@ +#ifndef VCS_INFO_H +#define VCS_INFO_H + +extern const char *g_VCSInfo_Commit; +extern const char *g_VCSInfo_Branch; + +#endif // VCS_INFO_H