From ecaced40f2b1d9f5dbe9607c413fb864153bce00 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 27 Nov 2008 01:13:51 -0600 Subject: [PATCH] Now compiles against Metamod:Source 1.7 (bug 3445). --- core/Makefile | 13 +- core/msvc8/sourcemod_mm.vcproj | 162 ++++++++-------- core/msvc9/sourcemod_mm.vcproj | 18 +- extensions/bintools/Makefile | 10 +- extensions/clientprefs/Makefile | 12 +- .../clientprefs/msvc8/clientprefs.vcproj | 4 +- extensions/clientprefs/msvc9/clientprefs.sln | 2 +- .../clientprefs/msvc9/clientprefs.vcproj | 4 +- extensions/cstrike/Makefile | 11 +- extensions/cstrike/msvc8/cstrike.sln | 2 +- extensions/cstrike/msvc8/cstrike.vcproj | 12 +- extensions/cstrike/msvc9/cstrike.vcproj | 12 +- extensions/geoip/Makefile | 10 +- extensions/mysql/Makefile | 12 +- extensions/mysql/msvc8/sm_mysql.vcproj | 8 +- extensions/mysql/msvc9/sm_mysql.vcproj | 4 +- extensions/regex/Makefile | 12 +- extensions/regex/msvc8/regex.vcproj | 4 +- extensions/regex/msvc9/regex.vcproj | 4 +- extensions/sdktools/Makefile | 11 +- extensions/sdktools/msvc8/sdktools.sln | 2 +- extensions/sdktools/msvc8/sdktools.vcproj | 15 +- extensions/sdktools/msvc9/sdktools.sln | 2 +- extensions/sdktools/msvc9/sdktools.vcproj | 12 +- extensions/sqlite/Makefile | 12 +- extensions/sqlite/msvc8/sm_sqlite.vcproj | 4 +- extensions/sqlite/msvc9/sm_sqlite.vcproj | 4 +- extensions/structs/Makefile | 14 +- extensions/structs/msvc8/structs.sln | 8 +- extensions/structs/msvc8/structs.vcproj | 173 +----------------- extensions/structs/msvc9/structs.sln | 6 - extensions/structs/msvc9/structs.vcproj | 171 +---------------- extensions/tf2/Makefile | 11 +- extensions/tf2/msvc8/tf2.vcproj | 4 +- extensions/tf2/msvc9/tf2.sln | 2 +- extensions/tf2/msvc9/tf2.vcproj | 4 +- extensions/topmenus/Makefile | 12 +- extensions/topmenus/msvc8/topmenus.vcproj | 4 +- extensions/topmenus/msvc9/topmenus.vcproj | 4 +- loader/Makefile | 4 +- loader/msvc8/loader.vcproj | 4 +- loader/msvc9/loader.vcproj | 4 +- public/mms_sample_ext/Makefile | 11 +- public/sample_ext/Makefile | 10 +- sourcepawn/jit/Makefile | 4 +- sourcepawn/jit/msvc8/jit-x86.vcproj | 4 +- sourcepawn/jit/msvc9/jit-x86.vcproj | 4 +- 47 files changed, 233 insertions(+), 603 deletions(-) diff --git a/core/Makefile b/core/Makefile index 899a6e67..62102f1d 100644 --- a/core/Makefile +++ b/core/Makefile @@ -5,8 +5,7 @@ SMSDK = .. SRCDS_BASE = ~/srcds HL2SDK_ORIG = ../../hl2sdk HL2SDK_OB = ../../hl2sdk-ob -SOURCEMM14 = ../../sourcemm-1.4 -SOURCEMM16 = ../../sourcemm-1.6 +MMSOURCE17 = ../../mmsource-1.7 ##################################### ### EDIT BELOW FOR OTHER PROJECTS ### @@ -51,7 +50,7 @@ ifeq "$(ENGINE)" "original" HL2SDK = $(HL2SDK_ORIG) HL2PUB = $(HL2SDK_ORIG)/public HL2LIB = $(HL2SDK_ORIG)/linux_sdk - METAMOD = $(SOURCEMM14) + METAMOD = $(MMSOURCE17)/core-legacy INCLUDE += -I$(HL2SDK)/public/dlls SRCDS = $(SRCDS_BASE) BINARY = sourcemod.1.ep1.so @@ -62,7 +61,7 @@ ifeq "$(ENGINE)" "orangebox" HL2PUB = $(HL2SDK_OB)/public HL2LIB = $(HL2SDK_OB)/lib/linux CFLAGS += -DORANGEBOX_BUILD - METAMOD = $(SOURCEMM16) + METAMOD = $(MMSOURCE17)/core INCLUDE += -I$(HL2SDK)/public/game/server SRCDS = $(SRCDS_BASE)/orangebox BINARY = sourcemod.2.ep2.so @@ -71,14 +70,10 @@ endif LINK += $(HL2LIB)/tier1_i486.a $(HL2LIB)/mathlib_i486.a vstdlib_i486.so \ tier0_i486.so -lpthread -static-libgcc - -INCLUDE_SMSDK = -I$(SMSDK)/public -I$(SMSDK)/public/sourcepawn - -INCLUDE_SM16 = -I. -I.. -I$(SOURCEMM16)/sourcehook $(INCLUDE_SMSDK) INCLUDE += -I. -I.. -I$(HL2PUB) -I$(HL2PUB)/engine -I$(HL2PUB)/mathlib -I$(HL2PUB)/vstdlib \ -I$(HL2PUB)/tier0 -I$(HL2PUB)/tier1 -I$(METAMOD) -I$(METAMOD)/sourcehook \ - -I$(METAMOD)/sourcemm -Isystems $(INCLUDE_SMSDK) + -I$(SMSDK)/public -I$(SMSDK)/public/sourcepawn CFLAGS += -D_LINUX -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp \ -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Werror \ diff --git a/core/msvc8/sourcemod_mm.vcproj b/core/msvc8/sourcemod_mm.vcproj index 9aea667c..b8206d2c 100644 --- a/core/msvc8/sourcemod_mm.vcproj +++ b/core/msvc8/sourcemod_mm.vcproj @@ -39,9 +39,8 @@ /> + + + + @@ -877,6 +888,14 @@ RelativePath="..\HalfLife2.cpp" > + + + + @@ -925,10 +944,22 @@ RelativePath="..\PlayerManager.cpp" > + + + + + + @@ -1043,6 +1074,14 @@ RelativePath="..\EventManager.h" > + + + + @@ -1059,6 +1098,14 @@ RelativePath="..\HalfLife2.h" > + + + + @@ -1107,10 +1154,22 @@ RelativePath="..\PlayerManager.h" > + + + + + + @@ -1281,79 +1340,6 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -