diff --git a/VC2008/MCServer.sln b/VC2008/MCServer.sln
index b64ce1e41..e71c3d197 100644
--- a/VC2008/MCServer.sln
+++ b/VC2008/MCServer.sln
@@ -3,6 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C++ Express 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MCServer", "MCServer.vcproj", "{32012054-0C96-4C43-AB27-174FF8E72D66}"
ProjectSection(ProjectDependencies) = postProject
+ {9A476537-42C0-4848-AB40-15CFE83D17A8} = {9A476537-42C0-4848-AB40-15CFE83D17A8}
{082E8185-7B3A-4945-8C82-9132341A329D} = {082E8185-7B3A-4945-8C82-9132341A329D}
{EEAB54AD-114C-4AB8-8482-0A52D502BD35} = {EEAB54AD-114C-4AB8-8482-0A52D502BD35}
{5AAA90B9-946D-4034-83F3-676B06A6E326} = {5AAA90B9-946D-4034-83F3-676B06A6E326}
@@ -17,6 +18,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lua", "Lua.vcproj", "{082E8
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ToLua", "ToLua.vcproj", "{EEAB54AD-114C-4AB8-8482-0A52D502BD35}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WebServer", "WebServer.vcproj", "{9A476537-42C0-4848-AB40-15CFE83D17A8}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -43,6 +46,10 @@ Global
{EEAB54AD-114C-4AB8-8482-0A52D502BD35}.Debug|Win32.Build.0 = Debug|Win32
{EEAB54AD-114C-4AB8-8482-0A52D502BD35}.Release|Win32.ActiveCfg = Release|Win32
{EEAB54AD-114C-4AB8-8482-0A52D502BD35}.Release|Win32.Build.0 = Release|Win32
+ {9A476537-42C0-4848-AB40-15CFE83D17A8}.Debug|Win32.ActiveCfg = Debug|Win32
+ {9A476537-42C0-4848-AB40-15CFE83D17A8}.Debug|Win32.Build.0 = Debug|Win32
+ {9A476537-42C0-4848-AB40-15CFE83D17A8}.Release|Win32.ActiveCfg = Release|Win32
+ {9A476537-42C0-4848-AB40-15CFE83D17A8}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/VC2008/MCServer.vcproj b/VC2008/MCServer.vcproj
index 1bed41d81..4274c2f5e 100644
--- a/VC2008/MCServer.vcproj
+++ b/VC2008/MCServer.vcproj
@@ -46,7 +46,8 @@
MinimalRebuild="false"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
- UsePrecompiledHeader="0"
+ UsePrecompiledHeader="2"
+ PrecompiledHeaderThrough="Globals.h"
WarningLevel="3"
DebugInformationFormat="4"
/>
@@ -115,7 +116,8 @@
AdditionalIncludeDirectories="../zlib-1.2.5;../jsoncpp-src-0.5.0/include;../lua-5.1.4/src;../tolua++-1.0.93/include"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;"
RuntimeLibrary="2"
- UsePrecompiledHeader="0"
+ UsePrecompiledHeader="2"
+ PrecompiledHeaderThrough="Globals.h"
WarningLevel="3"
DebugInformationFormat="3"
/>
@@ -287,14 +289,6 @@
RelativePath="..\source\cEntity.h"
>
-
-
-
-
@@ -416,9 +410,18 @@
FavorSizeOrSpeed="1"
OmitFramePointers="true"
BasicRuntimeChecks="0"
+ UsePrecompiledHeader="0"
DebugInformationFormat="3"
/>
+
+
+
-
-
-
-
@@ -660,6 +655,30 @@
RelativePath="..\source\FileDefine.h"
>
+
+
+
+
+
+
+
+
+
+
@@ -1415,6 +1434,14 @@
RelativePath="..\source\cCriticalSection.h"
>
+
+
+
+
@@ -1423,6 +1450,14 @@
RelativePath="..\source\cSemaphore.h"
>
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/VC2008/WebServer.vcproj b/VC2008/WebServer.vcproj
new file mode 100644
index 000000000..f86f4ba8b
--- /dev/null
+++ b/VC2008/WebServer.vcproj
@@ -0,0 +1,233 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/VC2010/MCServer.vcxproj b/VC2010/MCServer.vcxproj
index 84449e65d..48447f926 100644
--- a/VC2010/MCServer.vcxproj
+++ b/VC2010/MCServer.vcxproj
@@ -109,6 +109,8 @@
Level3
EditAndContinue
true
+ Use
+ Globals.h
/IGNORE:4078 %(AdditionalOptions)
@@ -138,6 +140,8 @@
Level3
EditAndContinue
true
+ Use
+ Globals.h
/IGNORE:4078 %(AdditionalOptions)
@@ -230,8 +234,7 @@
false
StreamingSIMDExtensions
Fast
-
-
+ Use
Level4
@@ -239,6 +242,7 @@
true
true
+ Globals.h
/IGNORE:4078 %(AdditionalOptions)
@@ -339,6 +343,7 @@
Speed
true
Default
+ NotUsing
@@ -381,6 +386,11 @@
+
+ Create
+ Create
+ Create
+
@@ -540,6 +550,7 @@
+
diff --git a/VC2010/MCServer.vcxproj.filters b/VC2010/MCServer.vcxproj.filters
index 98598731a..0d7e966f9 100644
--- a/VC2010/MCServer.vcxproj.filters
+++ b/VC2010/MCServer.vcxproj.filters
@@ -907,6 +907,7 @@
cWebAdmin\cWebPlugin\cWebPlugin
+
@@ -1395,6 +1396,7 @@
cWebAdmin\cWebPlugin\cWebPlugin
+
diff --git a/VC2010/WebServer.vcxproj b/VC2010/WebServer.vcxproj
index 03c84d620..90c0dc96c 100644
--- a/VC2010/WebServer.vcxproj
+++ b/VC2010/WebServer.vcxproj
@@ -76,6 +76,8 @@
Level3
Disabled
true
+ Use
+ Globals.h
true
@@ -103,6 +105,8 @@
MultiThreaded
Speed
true
+ Use
+ Globals.h
true
@@ -128,7 +132,11 @@
-
+
+
+ Create
+ Create
+
@@ -136,7 +144,8 @@
-
+
+
diff --git a/VC2010/WebServer.vcxproj.filters b/VC2010/WebServer.vcxproj.filters
index 4c80b0863..105781d04 100644
--- a/VC2010/WebServer.vcxproj.filters
+++ b/VC2010/WebServer.vcxproj.filters
@@ -6,9 +6,8 @@
-
- Threading
-
+
+
@@ -17,13 +16,7 @@
-
- Threading
-
-
-
-
- {5108ca96-8262-4e37-b891-cff8f714210e}
-
+
+
\ No newline at end of file
diff --git a/WebServer/Globals.cpp b/WebServer/Globals.cpp
new file mode 100644
index 000000000..2c60fd698
--- /dev/null
+++ b/WebServer/Globals.cpp
@@ -0,0 +1,10 @@
+
+// Globals.cpp
+
+// This file is used for precompiled header generation in MSVC environments
+
+#include "Globals.h"
+
+
+
+
diff --git a/WebServer/Globals.h b/WebServer/Globals.h
new file mode 100644
index 000000000..027b988ef
--- /dev/null
+++ b/WebServer/Globals.h
@@ -0,0 +1,78 @@
+
+// Globals.h
+
+// This file gets included from every module in the project, so that global symbols may be introduced easily
+// Also used for precompiled header generation in MSVC environments
+
+
+
+
+
+// OS-dependent stuff:
+#ifdef _WIN32
+ #define WIN32_LEAN_AND_MEAN
+ #include
+ #include
+#else
+ #include
+ #include // for mkdir
+ #include
+ #include
+ #include
+ #include
+ #include
+
+ #include
+ #include
+ #include
+ #include
+ #include
+ #include
+#endif
+
+
+
+
+
+// CRT stuff:
+#include
+#include
+
+
+
+
+
+// STL stuff:
+#include
+#include
+#include
+#include