added versioning to plugins
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40578
This commit is contained in:
parent
3118427af3
commit
0d1746ba60
@ -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
|
||||||
|
@ -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
|
||||||
|
25
plugins/include/version.inc
Normal file
25
plugins/include/version.inc
Normal 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"
|
25
plugins/include/version.tpl
Normal file
25
plugins/include/version.tpl
Normal 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$"
|
Loading…
Reference in New Issue
Block a user