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
+1 -1
View File
@@ -1244,7 +1244,7 @@ static void setconfig(char *root)
static void setcaption(void)
{
pc_printf("SourcePawn Compiler " SM_VERSION_STRING "\n");
pc_printf("SourcePawn Compiler %s\n", SOURCEMOD_VERSION);
pc_printf("Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC\n\n");
}
+2 -2
View File
@@ -1,5 +1,4 @@
// vim: set ts=4 sw=4 tw=99 noet:
#include <sourcemod_version.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -9,6 +8,7 @@
#include "BaseRuntime.h"
#include "sp_vm_engine.h"
#include "watchdog_timer.h"
#include <sourcemod_version.h>
using namespace SourcePawn;
@@ -152,7 +152,7 @@ const char *SourcePawnEngine2::GetEngineName()
const char *SourcePawnEngine2::GetVersionString()
{
return SM_VERSION_STRING;
return SOURCEMOD_VERSION;
}
IProfiler *SourcePawnEngine2::GetProfiler()