From 7a4ce592a4be04b7accf48f54cade72dd68c858e Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 6 Jun 2011 21:15:42 +0000 Subject: [PATCH] - Adapt MSVC project files to new libjpeg, fix by Guillaume Bougard and cyrri - add tr_model_iqm.c to MSVC project, by cyrri --- code/jpeg-8c/jconfig.h | 4 + misc/msvc/cgame.vcproj | 23 ++-- misc/msvc/game.vcproj | 23 ++-- misc/msvc/ioq3.sln | 122 ++++++++++---------- misc/msvc/q3_ui.vcproj | 23 ++-- misc/msvc/quake3.vcproj | 247 ++++++++++++++++++++++++---------------- misc/msvc/ui.vcproj | 23 ++-- 7 files changed, 251 insertions(+), 214 deletions(-) diff --git a/code/jpeg-8c/jconfig.h b/code/jpeg-8c/jconfig.h index ee83f412..248d6d0f 100644 --- a/code/jpeg-8c/jconfig.h +++ b/code/jpeg-8c/jconfig.h @@ -31,7 +31,11 @@ typedef unsigned char boolean; #endif /* #undef RIGHT_SHIFT_IS_UNSIGNED */ +#ifdef _MSC_VER +#define INLINE __inline +#else #define INLINE __inline__ +#endif /* These are for configuring the JPEG memory manager. */ /* #undef DEFAULT_MAX_MEM */ /* #undef NO_MKTEMP */ diff --git a/misc/msvc/cgame.vcproj b/misc/msvc/cgame.vcproj index 2c76c9dd..685e22f3 100644 --- a/misc/msvc/cgame.vcproj +++ b/misc/msvc/cgame.vcproj @@ -1,10 +1,11 @@ @@ -104,9 +107,6 @@ - @@ -180,6 +180,8 @@ MapFileName="$(IntDir)\cgamex86.map" SubSystem="2" BaseAddress="0x30000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\cgamex86.lib" TargetMachine="1" /> @@ -201,9 +203,6 @@ - @@ -277,6 +276,8 @@ MapFileName="$(IntDir)\cgamex86.map" SubSystem="2" BaseAddress="0x30000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\cgamex86.lib" TargetMachine="1" /> @@ -298,9 +299,6 @@ - @@ -374,6 +372,8 @@ MapFileName="$(IntDir)\cgamex86.map" SubSystem="2" BaseAddress="0x30000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\cgamex86.lib" TargetMachine="1" /> @@ -395,9 +395,6 @@ - diff --git a/misc/msvc/game.vcproj b/misc/msvc/game.vcproj index 902fc0ba..dd46e483 100644 --- a/misc/msvc/game.vcproj +++ b/misc/msvc/game.vcproj @@ -1,9 +1,10 @@ @@ -103,9 +106,6 @@ - @@ -179,6 +179,8 @@ MapFileName="$(IntDir)\qagamex86.map" SubSystem="2" BaseAddress="0x20000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\qagamex86.lib" TargetMachine="1" /> @@ -200,9 +202,6 @@ - @@ -276,6 +275,8 @@ MapFileName="$(IntDir)\qagamex86.map" SubSystem="2" BaseAddress="0x20000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\qagamex86.lib" TargetMachine="1" /> @@ -297,9 +298,6 @@ - @@ -373,6 +371,8 @@ MapFileName="$(IntDir)\qagamex86.map" SubSystem="2" BaseAddress="0x20000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\qagamex86.lib" TargetMachine="1" /> @@ -394,9 +394,6 @@ - diff --git a/misc/msvc/ioq3.sln b/misc/msvc/ioq3.sln index 13b1bb3c..88fa7f51 100755 --- a/misc/msvc/ioq3.sln +++ b/misc/msvc/ioq3.sln @@ -1,61 +1,61 @@ -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual C++ Express 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cgame", "cgame.vcproj", "{C878E295-CB82-4B40-8ECF-5CE5525466FA}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "game", "game.vcproj", "{F9EE10DA-2404-4154-B904-F93C936C040A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "q3_ui", "q3_ui.vcproj", "{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quake3", "quake3.vcproj", "{81CB51C4-B434-4E12-B69B-BAEE102F2852}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ui", "ui.vcproj", "{A8EAC38E-C7DA-42F8-811D-77FD092B9D19}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug TA|Win32 = Debug TA|Win32 - Debug|Win32 = Debug|Win32 - Release TA|Win32 = Release TA|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug TA|Win32.Build.0 = Debug TA|Win32 - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug|Win32.ActiveCfg = Debug|Win32 - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug|Win32.Build.0 = Debug|Win32 - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release TA|Win32.ActiveCfg = Release TA|Win32 - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release TA|Win32.Build.0 = Release TA|Win32 - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release|Win32.ActiveCfg = Release|Win32 - {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release|Win32.Build.0 = Release|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug TA|Win32.Build.0 = Debug TA|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug|Win32.ActiveCfg = Debug|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug|Win32.Build.0 = Debug|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Release TA|Win32.ActiveCfg = Release TA|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Release TA|Win32.Build.0 = Release TA|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Release|Win32.ActiveCfg = Release|Win32 - {F9EE10DA-2404-4154-B904-F93C936C040A}.Release|Win32.Build.0 = Release|Win32 - {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 - {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|Win32.ActiveCfg = Debug|Win32 - {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|Win32.Build.0 = Debug|Win32 - {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release TA|Win32.ActiveCfg = Release TA|Win32 - {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|Win32.ActiveCfg = Release|Win32 - {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|Win32.Build.0 = Release|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug TA|Win32.Build.0 = Debug TA|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug|Win32.ActiveCfg = Debug|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug|Win32.Build.0 = Debug|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release TA|Win32.ActiveCfg = Release TA|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release TA|Win32.Build.0 = Release TA|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release|Win32.ActiveCfg = Release|Win32 - {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release|Win32.Build.0 = Release|Win32 - {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 - {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Debug TA|Win32.Build.0 = Debug TA|Win32 - {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Debug|Win32.ActiveCfg = Debug|Win32 - {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Release TA|Win32.ActiveCfg = Release TA|Win32 - {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Release TA|Win32.Build.0 = Release TA|Win32 - {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Release|Win32.ActiveCfg = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cgame", "cgame.vcproj", "{C878E295-CB82-4B40-8ECF-5CE5525466FA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "game", "game.vcproj", "{F9EE10DA-2404-4154-B904-F93C936C040A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "q3_ui", "q3_ui.vcproj", "{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quake3", "quake3.vcproj", "{81CB51C4-B434-4E12-B69B-BAEE102F2852}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ui", "ui.vcproj", "{A8EAC38E-C7DA-42F8-811D-77FD092B9D19}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug TA|Win32 = Debug TA|Win32 + Debug|Win32 = Debug|Win32 + Release TA|Win32 = Release TA|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug TA|Win32.Build.0 = Debug TA|Win32 + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug|Win32.ActiveCfg = Debug|Win32 + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Debug|Win32.Build.0 = Debug|Win32 + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release TA|Win32.ActiveCfg = Release TA|Win32 + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release TA|Win32.Build.0 = Release TA|Win32 + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release|Win32.ActiveCfg = Release|Win32 + {C878E295-CB82-4B40-8ECF-5CE5525466FA}.Release|Win32.Build.0 = Release|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug TA|Win32.Build.0 = Debug TA|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug|Win32.ActiveCfg = Debug|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Debug|Win32.Build.0 = Debug|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Release TA|Win32.ActiveCfg = Release TA|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Release TA|Win32.Build.0 = Release TA|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Release|Win32.ActiveCfg = Release|Win32 + {F9EE10DA-2404-4154-B904-F93C936C040A}.Release|Win32.Build.0 = Release|Win32 + {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 + {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|Win32.ActiveCfg = Debug|Win32 + {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|Win32.Build.0 = Debug|Win32 + {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release TA|Win32.ActiveCfg = Release TA|Win32 + {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|Win32.ActiveCfg = Release|Win32 + {D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|Win32.Build.0 = Release|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug TA|Win32.Build.0 = Debug TA|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug|Win32.ActiveCfg = Debug|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug|Win32.Build.0 = Debug|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release TA|Win32.ActiveCfg = Release TA|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release TA|Win32.Build.0 = Release TA|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release|Win32.ActiveCfg = Release|Win32 + {81CB51C4-B434-4E12-B69B-BAEE102F2852}.Release|Win32.Build.0 = Release|Win32 + {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Debug TA|Win32.ActiveCfg = Debug TA|Win32 + {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Debug TA|Win32.Build.0 = Debug TA|Win32 + {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Debug|Win32.ActiveCfg = Debug|Win32 + {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Release TA|Win32.ActiveCfg = Release TA|Win32 + {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Release TA|Win32.Build.0 = Release TA|Win32 + {A8EAC38E-C7DA-42F8-811D-77FD092B9D19}.Release|Win32.ActiveCfg = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/misc/msvc/q3_ui.vcproj b/misc/msvc/q3_ui.vcproj index 812c90a7..b6a983d1 100644 --- a/misc/msvc/q3_ui.vcproj +++ b/misc/msvc/q3_ui.vcproj @@ -1,9 +1,10 @@ @@ -104,9 +107,6 @@ - @@ -177,6 +177,8 @@ SuppressStartupBanner="true" ModuleDefinitionFile="q3_ui.def" ProgramDatabaseFile="$(IntDir)\uix86_old.pdb" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\q3_ui.lib" TargetMachine="1" /> @@ -198,9 +200,6 @@ - @@ -271,6 +270,8 @@ SuppressStartupBanner="true" ModuleDefinitionFile=".\q3_ui.def" ProgramDatabaseFile="$(IntDir)\uix86.pdb" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\uix86.lib" TargetMachine="1" /> @@ -292,9 +293,6 @@ - @@ -369,6 +367,8 @@ GenerateMapFile="true" MapFileName="$(IntDir)\uix86.map" BaseAddress="0x40000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\uix86.lib" TargetMachine="1" /> @@ -390,9 +390,6 @@ - diff --git a/misc/msvc/quake3.vcproj b/misc/msvc/quake3.vcproj index 3a398b0e..09424501 100644 --- a/misc/msvc/quake3.vcproj +++ b/misc/msvc/quake3.vcproj @@ -1,9 +1,10 @@ - - - @@ -342,7 +340,7 @@ - + + + + + + + + + + + + + + @@ -2175,49 +2215,6 @@ /> - - - - - - - - - - - - - - @@ -2489,143 +2486,187 @@ Name="Source Files" > + + + + + + + + + + + + + + + + + + + + + + @@ -2984,6 +3025,10 @@ RelativePath="..\..\code\renderer\tr_model.c" > + + diff --git a/misc/msvc/ui.vcproj b/misc/msvc/ui.vcproj index 79e08215..cdc4d17f 100644 --- a/misc/msvc/ui.vcproj +++ b/misc/msvc/ui.vcproj @@ -1,9 +1,10 @@ @@ -103,9 +106,6 @@ - @@ -179,6 +179,8 @@ GenerateMapFile="true" MapFileName="$(IntDir)\uix86_new.map" BaseAddress="0x40000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\uix86_new.lib" TargetMachine="1" /> @@ -200,9 +202,6 @@ - @@ -275,6 +274,8 @@ GenerateMapFile="true" MapFileName="$(IntDir)\uix86_new.map" BaseAddress="0x40000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\uix86_new.lib" TargetMachine="1" /> @@ -296,9 +297,6 @@ - @@ -373,6 +371,8 @@ GenerateMapFile="true" MapFileName="$(IntDir)\uix86.map" BaseAddress="0x40000000" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary="$(IntDir)\uix86.lib" TargetMachine="1" /> @@ -394,9 +394,6 @@ -