mirror of https://github.com/FWGS/hlsdk-xash3d
game_shared: add vcs info implementation, it doesn't necessary require Git info to be present or defined at all
This commit is contained in:
parent
4e895a4a89
commit
5621528752
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue