Move versioning to a static library to improve trivial build speed (bug 5997 part 9, r=ds).

This commit is contained in:
David Anderson
2013-12-30 17:51:00 -05:00
parent c2cfe60102
commit f82224eba0
27 changed files with 164 additions and 46 deletions
+11 -1
View File
@@ -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_ */