Structs now builds for the old engine (bug 3286) - again.
authorMatt Woodrow <pred@alliedmods.net>
Thu Oct 09 13:35:14 2008 +1300 (2008-10-09)
changeset 2348befb05075881
parent 2347 e404f826d1f7
child 2349 c93c07db722c
Structs now builds for the old engine (bug 3286) - again.
extensions/structs/StructHandle.h
extensions/structs/msvc9/structs.vcproj
extensions/structs/natives.cpp
tools/builder/PkgCore.cs
     1.1 --- a/extensions/structs/StructHandle.h	Thu Oct 09 13:33:47 2008 +1300
     1.2 +++ b/extensions/structs/StructHandle.h	Thu Oct 09 13:35:14 2008 +1300
     1.3 @@ -33,7 +33,7 @@
     1.4  #define _INCLUDE_SOURCEMOD_STRUCT_HANDLE_H_
     1.5  
     1.6  #include "Struct.h"
     1.7 -#include "mathlib/vector.h"
     1.8 +#include "vector.h"
     1.9  #include "basehandle.h"
    1.10  
    1.11  class StructHandle
     2.1 --- a/extensions/structs/msvc9/structs.vcproj	Thu Oct 09 13:33:47 2008 +1300
     2.2 +++ b/extensions/structs/msvc9/structs.vcproj	Thu Oct 09 13:35:14 2008 +1300
     2.3 @@ -361,7 +361,7 @@
     2.4  			<Tool
     2.5  				Name="VCCLCompilerTool"
     2.6  				Optimization="0"
     2.7 -				AdditionalIncludeDirectories="..;..\sdk;..\..\..\public;..\..\..\public\sourcepawn;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(SOURCEMM16)&quot;;&quot;$(SOURCEMM16)\sourcemm&quot;;&quot;$(SOURCEMM16)\sourcehook&quot;;&quot;$(HL2SDKOB)\game\shared&quot;"
     2.8 +				AdditionalIncludeDirectories="..;..\sdk;..\..\..\public;..\..\..\public\sourcepawn;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\mathlib&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(SOURCEMM16)&quot;;&quot;$(SOURCEMM16)\sourcemm&quot;;&quot;$(SOURCEMM16)\sourcehook&quot;;&quot;$(HL2SDKOB)\game\shared&quot;"
     2.9  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SDK_EXPORTS;_CRT_SECURE_NO_DEPRECATE;SOURCEMOD_BUILD;ORANGEBOX_BUILD"
    2.10  				MinimalRebuild="true"
    2.11  				BasicRuntimeChecks="3"
    2.12 @@ -442,7 +442,7 @@
    2.13  			<Tool
    2.14  				Name="VCCLCompilerTool"
    2.15  				FavorSizeOrSpeed="1"
    2.16 -				AdditionalIncludeDirectories="..;..\sdk;..\..\..\public;..\..\..\public\sourcepawn;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(SOURCEMM16)&quot;;&quot;$(SOURCEMM16)\sourcemm&quot;;&quot;$(SOURCEMM16)\sourcehook&quot;;&quot;$(HL2SDKOB)\game\shared&quot;"
    2.17 +				AdditionalIncludeDirectories="..;..\sdk;..\..\..\public;..\..\..\public\sourcepawn;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\mathlib&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(SOURCEMM16)&quot;;&quot;$(SOURCEMM16)\sourcemm&quot;;&quot;$(SOURCEMM16)\sourcehook&quot;;&quot;$(HL2SDKOB)\game\shared&quot;"
    2.18  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SDK_EXPORTS;_CRT_SECURE_NO_DEPRECATE;SOURCEMOD_BUILD;ORANGEBOX_BUILD"
    2.19  				RuntimeLibrary="0"
    2.20  				EnableEnhancedInstructionSet="1"
     3.1 --- a/extensions/structs/natives.cpp	Thu Oct 09 13:33:47 2008 +1300
     3.2 +++ b/extensions/structs/natives.cpp	Thu Oct 09 13:35:14 2008 +1300
     3.3 @@ -31,7 +31,6 @@
     3.4  
     3.5  #include "extension.h"
     3.6  #include "utldict.h"
     3.7 -#include "weapon_parse.h"
     3.8  
     3.9  class FileWeaponInfo_t;
    3.10  typedef unsigned short WEAPON_FILE_INFO_HANDLE;
     4.1 --- a/tools/builder/PkgCore.cs	Thu Oct 09 13:33:47 2008 +1300
     4.2 +++ b/tools/builder/PkgCore.cs	Thu Oct 09 13:35:14 2008 +1300
     4.3 @@ -290,6 +290,14 @@
     4.4  			lib.build_mode = BuildMode.BuildMode_Episode2;
     4.5  			libraries.Add(lib);
     4.6  
     4.7 +			lib = new Library();
     4.8 +			lib.package_path = "addons/sourcemod/extensions/auto.1.ep1";
     4.9 +			lib.source_path = "extensions/structs";
    4.10 +			lib.binary_name = "structs.ext";
    4.11 +			lib.vcproj_name = "structs";
    4.12 +			lib.build_mode = BuildMode.BuildMode_OldMetamod;
    4.13 +			libraries.Add(lib);
    4.14 +
    4.15  			return (Library [])libraries.ToArray(typeof(Library));
    4.16  		}
    4.17