Move versioning to a static library to improve trivial build speed (bug 5997 part 9, r=ds).
This commit is contained in:
@@ -39,7 +39,11 @@
|
||||
*/
|
||||
|
||||
#if defined SM_GENERATED_BUILD
|
||||
#include <sourcemod_version_auto.h>
|
||||
# if defined SM_USE_VERSIONLIB
|
||||
# include <versionlib.h>
|
||||
# else
|
||||
# include <sourcemod_version_auto.h>
|
||||
# endif
|
||||
#else
|
||||
#define SM_BUILD_TAG "manual"
|
||||
#define SM_BUILD_REV "0"
|
||||
@@ -55,5 +59,11 @@
|
||||
#endif
|
||||
#define SM_BUILD_TIMESTAMP __DATE__ " " __TIME__
|
||||
|
||||
#if !defined(SM_GENERATED_BUILD) || !defined(SM_USE_VERSIONLIB)
|
||||
# define SOURCEMOD_VERSION SM_VERSION_STRING
|
||||
# define SOURCEMOD_BUILD_ID SM_BUILD_UNIQUEID
|
||||
# define SOURCEMOD_BUILD_TIME SM_BUILD_TIMESTAMP
|
||||
#endif
|
||||
|
||||
#endif /* _INCLUDE_SOURCEMOD_VERSION_INFORMATION_H_ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user