added versioning to plugins

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40578
This commit is contained in:
David Anderson 2007-03-03 08:51:47 +00:00
parent 3118427af3
commit 0d1746ba60
4 changed files with 60 additions and 1 deletions

View File

@ -8,6 +8,11 @@ folder = core
in = sm_version.tpl in = sm_version.tpl
out = sm_version.h out = sm_version.h
[plugins]
folder = plugins/include
in = version.tpl
out = version.inc
[jitx86] [jitx86]
folder = sourcepawn/jit/x86 folder = sourcepawn/jit/x86
in = jit_version.tpl in = jit_version.tpl

View File

@ -18,10 +18,13 @@
#endif #endif
#define _core_included #define _core_included
#define SOURCEMOD_PLUGINAPI_VERSION 1 #include <version>
#define SOURCEMOD_PLUGINAPI_VERSION 2
struct PlVers struct PlVers
{ {
version, version,
String:filevers[],
}; };
/** /**
@ -37,6 +40,7 @@ enum Action
public PlVers:__version = public PlVers:__version =
{ {
version = SOURCEMOD_PLUGINAPI_VERSION, version = SOURCEMOD_PLUGINAPI_VERSION,
filevers = SOURCEMOD_VERSION
}; };
struct Extension struct Extension

View File

@ -0,0 +1,25 @@
/**
* vim: set ts=4 :
* ===============================================================
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
* ===============================================================
*
* This file is part of the SourceMod/SourcePawn SDK. This file may only be used
* or modified under the Terms and Conditions of its License Agreement, which is found
* in LICENSE.txt. The Terms and Conditions for making SourceMod extensions/plugins
* may change at any time. To view the latest information, see:
* http://www.sourcemod.net/license.php
*
* Version: $Id$
*/
#if defined _version_included
#endinput
#endif
#define _version_included
#define SOURCEMOD_V_MAJOR 1
#define SOURCEMOD_V_MINOR 0
#define SOURCEMOD_V_RELEASE 0
#define SOURCEMOD_VERSION "1.0.0.577"

View File

@ -0,0 +1,25 @@
/**
* vim: set ts=4 :
* ===============================================================
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
* ===============================================================
*
* This file is part of the SourceMod/SourcePawn SDK. This file may only be used
* or modified under the Terms and Conditions of its License Agreement, which is found
* in LICENSE.txt. The Terms and Conditions for making SourceMod extensions/plugins
* may change at any time. To view the latest information, see:
* http://www.sourcemod.net/license.php
*
* Version: $Id$
*/
#if defined _version_included
#endinput
#endif
#define _version_included
#define SOURCEMOD_V_MAJOR $PMAJOR$
#define SOURCEMOD_V_MINOR $PMINOR$
#define SOURCEMOD_V_RELEASE $PREVISION$
#define SOURCEMOD_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$.$GLOBAL_BUILD$"