Include the auto-version file in the build, so 3rd party plugins compiled aginst the includes get useful versioning info (bug 5453, r=dvander).

This commit is contained in:
Asher Baker 2012-09-08 21:02:46 +01:00
parent 7625ca439e
commit bed417dc62
2 changed files with 7 additions and 4 deletions

View File

@ -35,9 +35,9 @@
#endif
#define _version_included
#if defined SM_GENERATED_BUILD
#include <version_auto>
#else
#tryinclude <version_auto>
#if !defined _auto_version_included
#define SOURCEMOD_V_TAG "manual"
#define SOURCEMOD_V_REV 0
#define SOURCEMOD_V_CSET "0"
@ -45,5 +45,5 @@
#define SOURCEMOD_V_MINOR 5 /**< SourceMod Minor version */
#define SOURCEMOD_V_RELEASE 0 /**< SourceMod Release version */
#define SOURCEMOD_VERSION "1.5.0-manual" /**< SourceMod version string (major.minor.release.build) */
#define SOURCEMOD_VERSION "1.5.0-manual" /**< SourceMod version string (major.minor.release-tag) */
#endif

View File

@ -184,6 +184,9 @@ for plugin in disPlugins:
os.path.join('addons', 'sourcemod', 'plugins', 'disabled')))
job.AddCommandGroup(commands)
job.AddCommand(CopyFile(os.path.join('..', 'includes', 'version_auto.inc'),
os.path.join('addons', 'sourcemod', 'scripting', 'include')))
bincopies = []
def AddNormalLibrary(name, dest):