From: havoc Date: Sun, 9 Aug 2015 18:30:47 +0000 (+0000) Subject: Fixed two compile issues with vid_sdl.c. X-Git-Tag: xonotic-v0.8.5~88^2~97 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59d9acac0b803124032d42df4b7a5d03021ab16e;p=xonotic%2Fdarkplaces.git Fixed two compile issues with vid_sdl.c. Added support for SDL2 compilation in vs2010, vs2012, vs2013. Changed the build directories for all vs2010, vs2012, vs2013 projects - they are now more consistent (output binaries go into SolutionDir, intermediate files have a fully qualified directory so they don't conflict between builds). Audited and reduced differences between vs2010, vs2012, vs2013 projects. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12224 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/darkplaces-dedicated-vs2010.vcxproj b/darkplaces-dedicated-vs2010.vcxproj index 2d601db7..92b37c95 100644 --- a/darkplaces-dedicated-vs2010.vcxproj +++ b/darkplaces-dedicated-vs2010.vcxproj @@ -39,11 +39,11 @@ <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false $(ProjectName) $(ProjectName) @@ -57,7 +57,7 @@ MultiThreadedDebugDLL - Level3 + Level4 EditAndContinue 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) @@ -77,7 +77,7 @@ true - Level3 + Level4 ProgramDatabase 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) diff --git a/darkplaces-dedicated-vs2012.vcxproj b/darkplaces-dedicated-vs2012.vcxproj index 7d8f85f2..0f17ffef 100644 --- a/darkplaces-dedicated-vs2012.vcxproj +++ b/darkplaces-dedicated-vs2012.vcxproj @@ -71,23 +71,23 @@ <_ProjectFileVersion>11.0.50727.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)-DED\ + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-DED\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true $(SolutionDir)\ - $(Configuration)-$(ProjectName)-DED\ + $(Configuration)-$(ProjectName)-$(Platform)\ false - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-DED\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false @@ -98,7 +98,7 @@ EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 EditAndContinue 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true @@ -121,7 +121,7 @@ EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 ProgramDatabase 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true @@ -141,7 +141,7 @@ MultiThreadedDLL true - Level3 + Level4 ProgramDatabase 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true @@ -166,7 +166,7 @@ MultiThreadedDLL true - Level3 + Level4 ProgramDatabase 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true diff --git a/darkplaces-dedicated-vs2013.vcxproj b/darkplaces-dedicated-vs2013.vcxproj index ff19a776..4a85b170 100644 --- a/darkplaces-dedicated-vs2013.vcxproj +++ b/darkplaces-dedicated-vs2013.vcxproj @@ -71,23 +71,23 @@ <_ProjectFileVersion>11.0.50727.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)-DED\ + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-DED\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true $(SolutionDir)\ - $(Configuration)-$(ProjectName)-DED\ + $(Configuration)-$(ProjectName)-$(Platform)\ false - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-DED\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false @@ -98,7 +98,7 @@ EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 EditAndContinue 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true @@ -122,7 +122,7 @@ EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 ProgramDatabase 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true @@ -143,7 +143,7 @@ MultiThreadedDLL true - Level3 + Level4 ProgramDatabase 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true @@ -169,7 +169,7 @@ MultiThreadedDLL true - Level3 + Level4 ProgramDatabase 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) true diff --git a/darkplaces-sdl-vs2010.vcxproj b/darkplaces-sdl-vs2010.vcxproj index 912237b0..4d93ef33 100644 --- a/darkplaces-sdl-vs2010.vcxproj +++ b/darkplaces-sdl-vs2010.vcxproj @@ -39,11 +39,11 @@ <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false $(ProjectName) $(ProjectName) diff --git a/darkplaces-sdl-vs2012.vcxproj b/darkplaces-sdl-vs2012.vcxproj index 0e182318..551ed83d 100644 --- a/darkplaces-sdl-vs2012.vcxproj +++ b/darkplaces-sdl-vs2012.vcxproj @@ -71,23 +71,23 @@ <_ProjectFileVersion>11.0.50727.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)-SDL\ + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-SDL\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true $(SolutionDir)\ - $(Configuration)-$(ProjectName)-SDL\ + $(Configuration)-$(ProjectName)-$(Platform)\ false - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-SDL\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false diff --git a/darkplaces-sdl-vs2013.vcxproj b/darkplaces-sdl-vs2013.vcxproj index c7ddf274..0f883390 100644 --- a/darkplaces-sdl-vs2013.vcxproj +++ b/darkplaces-sdl-vs2013.vcxproj @@ -71,23 +71,23 @@ <_ProjectFileVersion>11.0.50727.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)-SDL\ + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-SDL\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true $(SolutionDir)\ - $(Configuration)-$(ProjectName)-SDL\ + $(Configuration)-$(ProjectName)-$(Platform)\ false - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)-SDL\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false diff --git a/darkplaces-sdl2-vs2010.vcxproj b/darkplaces-sdl2-vs2010.vcxproj new file mode 100644 index 00000000..9401d143 --- /dev/null +++ b/darkplaces-sdl2-vs2010.vcxproj @@ -0,0 +1,292 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {7470C8B3-FCA7-42D3-9909-5F9E735C7C51} + darkplacessdl2 + Win32Proj + + + + Application + MultiByte + true + + + Application + MultiByte + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + true + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + false + $(ProjectName) + $(ProjectName) + + + + Disabled + CONFIG_MENU;CONFIG_CD;WIN32;_DEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + + + Level4 + EditAndContinue + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + + + $(OutDir)$(TargetName)$(TargetExt) + msvcrt.lib;%(IgnoreSpecificDefaultLibraries) + true + Windows + MachineX86 + + + + + MaxSpeed + true + CONFIG_MENU;CONFIG_CD;WIN32;NDEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + MultiThreadedDLL + true + + + Level4 + ProgramDatabase + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + + + $(OutDir)$(TargetName)$(TargetExt) + true + Windows + true + true + MachineX86 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/darkplaces-sdl2-vs2012.vcxproj b/darkplaces-sdl2-vs2012.vcxproj new file mode 100644 index 00000000..9a49ba37 --- /dev/null +++ b/darkplaces-sdl2-vs2012.vcxproj @@ -0,0 +1,383 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {7470C8B3-FCA7-42D3-9909-5F9E735C7C51} + darkplacessdl2 + Win32Proj + darkplaces-sdl2-vs2012 + + + + Application + v110 + MultiByte + true + + + Application + v110 + MultiByte + + + Application + v110 + MultiByte + true + + + Application + v110 + MultiByte + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>11.0.50727.1 + + + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ + true + + + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + true + + + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + false + + + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + false + + + + Disabled + CONFIG_MENU;CONFIG_CD;WIN32;_DEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + + Level4 + EditAndContinue + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + + + $(OutDir)$(TargetName)$(TargetExt) + msvcrt.lib;%(IgnoreSpecificDefaultLibraries) + true + Windows + MachineX86 + + + + + X64 + + + Disabled + CONFIG_MENU;CONFIG_CD;WIN32;WIN64;_DEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + + Level4 + ProgramDatabase + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + + + $(OutDir)$(TargetName)$(TargetExt) + msvcrt.lib;%(IgnoreSpecificDefaultLibraries) + true + Windows + MachineX64 + + + + + MaxSpeed + true + CONFIG_MENU;CONFIG_CD;WIN32;NDEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + MultiThreadedDLL + true + + Level4 + ProgramDatabase + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + + + $(OutDir)$(TargetName)$(TargetExt) + true + Windows + true + true + MachineX86 + + + + + X64 + + + MaxSpeed + true + CONFIG_MENU;CONFIG_CD;WIN32;WIN64;NDEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + MultiThreadedDLL + true + + Level4 + ProgramDatabase + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + + + $(OutDir)$(TargetName)$(TargetExt) + true + Windows + true + true + MachineX64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/darkplaces-sdl2-vs2013.vcxproj b/darkplaces-sdl2-vs2013.vcxproj new file mode 100644 index 00000000..51c67eb2 --- /dev/null +++ b/darkplaces-sdl2-vs2013.vcxproj @@ -0,0 +1,392 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2} + darkplacessdl2 + Win32Proj + darkplaces-sdl2-vs2013 + + + + Application + v120 + MultiByte + true + + + Application + v120 + MultiByte + + + Application + v120 + MultiByte + true + + + Application + v120 + MultiByte + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>11.0.50727.1 + + + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ + true + + + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + true + + + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + false + + + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ + false + + + + Disabled + CONFIG_MENU;CONFIG_CD;WIN32;_DEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + + Level4 + EditAndContinue + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + /wd"4201" %(AdditionalOptions) + + + $(OutDir)$(TargetName)$(TargetExt) + msvcrt.lib;%(IgnoreSpecificDefaultLibraries) + true + Windows + MachineX86 + + + + + X64 + + + Disabled + CONFIG_MENU;CONFIG_CD;WIN32;WIN64;_DEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + + Level4 + ProgramDatabase + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + /wd"4201" %(AdditionalOptions) + + + $(OutDir)$(TargetName)$(TargetExt) + msvcrt.lib;%(IgnoreSpecificDefaultLibraries) + true + Windows + MachineX64 + + + + + MaxSpeed + true + CONFIG_MENU;CONFIG_CD;WIN32;NDEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + MultiThreadedDLL + true + + Level4 + ProgramDatabase + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + /wd"4201" %(AdditionalOptions) + + + $(OutDir)$(TargetName)$(TargetExt) + true + Windows + true + true + MachineX86 + + + + + X64 + + + MaxSpeed + true + CONFIG_MENU;CONFIG_CD;WIN32;WIN64;NDEBUG;_WINDOWS;_FILE_OFFSET_BITS=64;__KERNEL_STRICT_NAMES;%(PreprocessorDefinitions) + MultiThreadedDLL + true + + Level4 + ProgramDatabase + 4706;4127;4100;4055;4054;4244;4305;4702;%(DisableSpecificWarnings) + true + /wd"4201" %(AdditionalOptions) + + + $(OutDir)$(TargetName)$(TargetExt) + true + Windows + true + true + MachineX64 + + + + + + + + + + + + + + + + + + + + + + + + + /wd"4800" %(AdditionalOptions) + /wd"4800" %(AdditionalOptions) + /wd"4800" %(AdditionalOptions) + /wd"4800" %(AdditionalOptions) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/darkplaces-vs2010.sln b/darkplaces-vs2010.sln index 0febc775..b97ef0fd 100644 --- a/darkplaces-vs2010.sln +++ b/darkplaces-vs2010.sln @@ -1,11 +1,13 @@  Microsoft Visual Studio Solution File, Format Version 11.00 # Visual C++ Express 2010 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-wgl", "darkplaces-wgl-vs2010.vcxproj", "{6E3D4311-BB84-4EB7-8C6C-10AA3D249C28}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-wgl-vs2010", "darkplaces-wgl-vs2010.vcxproj", "{6E3D4311-BB84-4EB7-8C6C-10AA3D249C28}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl", "darkplaces-sdl-vs2010.vcxproj", "{7470C8B3-FCA7-42D3-9909-5F9E735C7C51}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl-vs2010", "darkplaces-sdl-vs2010.vcxproj", "{7470C8B3-FCA7-42D3-9909-5F9E735C7C51}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-dedicated", "darkplaces-dedicated-vs2010.vcxproj", "{389AE334-D907-4069-90B3-F0551B3EFDE9}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-dedicated-vs2010", "darkplaces-dedicated-vs2010.vcxproj", "{389AE334-D907-4069-90B3-F0551B3EFDE9}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl2-vs2010", "darkplaces-sdl2-vs2010.vcxproj", "{72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/darkplaces-vs2012.sln b/darkplaces-vs2012.sln index 18d8c1c7..8d4aa6bc 100644 --- a/darkplaces-vs2012.sln +++ b/darkplaces-vs2012.sln @@ -1,11 +1,13 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Express 2012 for Windows Desktop -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-wgl", "darkplaces-wgl-vs2012.vcxproj", "{6E3D4311-BB84-4EB7-8C6C-10AA3D249C28}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-wgl-vs2012", "darkplaces-wgl-vs2012.vcxproj", "{6E3D4311-BB84-4EB7-8C6C-10AA3D249C28}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl", "darkplaces-sdl-vs2012.vcxproj", "{7470C8B3-FCA7-42D3-9909-5F9E735C7C51}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl-vs2012", "darkplaces-sdl-vs2012.vcxproj", "{7470C8B3-FCA7-42D3-9909-5F9E735C7C51}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-dedicated", "darkplaces-dedicated-vs2012.vcxproj", "{389AE334-D907-4069-90B3-F0551B3EFDE9}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-dedicated-vs2012", "darkplaces-dedicated-vs2012.vcxproj", "{389AE334-D907-4069-90B3-F0551B3EFDE9}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl2-vs2012", "darkplaces-sdl2-vs2012.vcxproj", "{72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/darkplaces-vs2013.sln b/darkplaces-vs2013.sln index ed2481d5..5e8dfc58 100644 --- a/darkplaces-vs2013.sln +++ b/darkplaces-vs2013.sln @@ -1,11 +1,15 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 2012 for Windows Desktop -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-wgl", "darkplaces-wgl-vs2013.vcxproj", "{6E3D4311-BB84-4EB7-8C6C-10AA3D249C28}" +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-wgl-vs2013", "darkplaces-wgl-vs2013.vcxproj", "{6E3D4311-BB84-4EB7-8C6C-10AA3D249C28}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl", "darkplaces-sdl-vs2013.vcxproj", "{7470C8B3-FCA7-42D3-9909-5F9E735C7C51}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl-vs2013", "darkplaces-sdl-vs2013.vcxproj", "{7470C8B3-FCA7-42D3-9909-5F9E735C7C51}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-dedicated", "darkplaces-dedicated-vs2013.vcxproj", "{389AE334-D907-4069-90B3-F0551B3EFDE9}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-dedicated-vs2013", "darkplaces-dedicated-vs2013.vcxproj", "{389AE334-D907-4069-90B3-F0551B3EFDE9}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "darkplaces-sdl2-vs2013", "darkplaces-sdl2-vs2013.vcxproj", "{72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -39,6 +43,14 @@ Global {389AE334-D907-4069-90B3-F0551B3EFDE9}.Release|Win32.Build.0 = Release|Win32 {389AE334-D907-4069-90B3-F0551B3EFDE9}.Release|x64.ActiveCfg = Release|x64 {389AE334-D907-4069-90B3-F0551B3EFDE9}.Release|x64.Build.0 = Release|x64 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Debug|Win32.ActiveCfg = Debug|Win32 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Debug|Win32.Build.0 = Debug|Win32 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Debug|x64.ActiveCfg = Debug|x64 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Debug|x64.Build.0 = Debug|x64 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Release|Win32.ActiveCfg = Release|Win32 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Release|Win32.Build.0 = Release|Win32 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Release|x64.ActiveCfg = Release|x64 + {72D93E63-FDBB-4AA3-B42B-FAADA6D7F5B2}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/darkplaces-wgl-vs2010.vcxproj b/darkplaces-wgl-vs2010.vcxproj index 3515e804..2daad8b0 100644 --- a/darkplaces-wgl-vs2010.vcxproj +++ b/darkplaces-wgl-vs2010.vcxproj @@ -39,11 +39,11 @@ <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false $(ProjectName) $(ProjectName) @@ -78,7 +78,7 @@ true - Level3 + Level4 ProgramDatabase CompileAsCpp 4706;4127;4100;4055;4054;4244;4305;4702;4201;4611;%(DisableSpecificWarnings) diff --git a/darkplaces-wgl-vs2012.vcxproj b/darkplaces-wgl-vs2012.vcxproj index f9ad5fb4..c35763ce 100644 --- a/darkplaces-wgl-vs2012.vcxproj +++ b/darkplaces-wgl-vs2012.vcxproj @@ -71,23 +71,23 @@ <_ProjectFileVersion>11.0.50727.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true $(SolutionDir)\ - $(Configuration)-$(ProjectName)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false diff --git a/darkplaces-wgl-vs2013.vcxproj b/darkplaces-wgl-vs2013.vcxproj index de618afb..90186490 100644 --- a/darkplaces-wgl-vs2013.vcxproj +++ b/darkplaces-wgl-vs2013.vcxproj @@ -71,23 +71,23 @@ <_ProjectFileVersion>11.0.50727.1 - $(SolutionDir)$(Configuration)-$(ProjectName)\ - $(Configuration)-$(ProjectName)\ + $(SolutionDir))\ + $(Configuration)-$(ProjectName)-$(Platform)\ true - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ true $(SolutionDir)\ - $(Configuration)-$(ProjectName)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false - $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ + $(SolutionDir)\ + $(Configuration)-$(ProjectName)-$(Platform)\ false diff --git a/sys_sdl.c b/sys_sdl.c index 228c0a49..7bfb041f 100644 --- a/sys_sdl.c +++ b/sys_sdl.c @@ -1,9 +1,5 @@ #ifdef WIN32 -#ifdef _MSC_VER -#pragma comment(lib, "sdl.lib") -#pragma comment(lib, "sdlmain.lib") -#endif #include #include "conio.h" #else @@ -24,6 +20,18 @@ #include +#ifdef WIN32 +#ifdef _MSC_VER +#if SDL_MAJOR_VERSION == 1 +#pragma comment(lib, "sdl.lib") +#pragma comment(lib, "sdlmain.lib") +#else +#pragma comment(lib, "sdl2.lib") +#pragma comment(lib, "sdl2main.lib") +#endif +#endif +#endif + #include "quakedef.h" // ======================================================================= diff --git a/vid_sdl.c b/vid_sdl.c index e3c934a7..03af6eaf 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -2527,8 +2527,6 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode) // Knghtbrd: should do platform-specific extension string function here vid_isfullscreen = false; - int xPos = SDL_WINDOWPOS_UNDEFINED; - int yPos = SDL_WINDOWPOS_UNDEFINED; #if SDL_MAJOR_VERSION == 1 { const SDL_VideoInfo *vi = SDL_GetVideoInfo(); @@ -2549,6 +2547,8 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode) } } #else + int xPos = SDL_WINDOWPOS_UNDEFINED; + int yPos = SDL_WINDOWPOS_UNDEFINED; { if (mode->fullscreen) { if (vid_desktopfullscreen.integer) @@ -2564,7 +2564,6 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode) } else { #ifdef WIN32 - DWORD windowStyle = 0; RECT rect; AdjustWindowBounds(mode, &rect); xPos = rect.left; diff --git a/vs2010_sdl2_win32.props b/vs2010_sdl2_win32.props new file mode 100644 index 00000000..0ca4653d --- /dev/null +++ b/vs2010_sdl2_win32.props @@ -0,0 +1,14 @@ + + + + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;C:\dev\SDL2-2.0\include;$(IncludePath) + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;C:\dev\SDL2-2.0\lib\x86;$(LibraryPath) + <_PropertySheetDisplayName>vs2010_win32 + + + + \ No newline at end of file diff --git a/vs2010_sdl2_win64.props b/vs2010_sdl2_win64.props new file mode 100644 index 00000000..9539eb51 --- /dev/null +++ b/vs2010_sdl2_win64.props @@ -0,0 +1,14 @@ + + + + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;C:\dev\SDL2-2.0\include;$(IncludePath) + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x64;C:\dev\SDL2-2.0\lib\x64;$(LibraryPath) + <_PropertySheetDisplayName>vs2010_win64 + + + + \ No newline at end of file diff --git a/vs2012_sdl2_win32.props b/vs2012_sdl2_win32.props new file mode 100644 index 00000000..e5fa2c1a --- /dev/null +++ b/vs2012_sdl2_win32.props @@ -0,0 +1,14 @@ + + + + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;C:\dev\SDL2-2.0\include;$(IncludePath) + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;C:\dev\SDL2-2.0\lib\x86;$(LibraryPath) + <_PropertySheetDisplayName>vs2012_win32 + + + + \ No newline at end of file diff --git a/vs2012_sdl2_win64.props b/vs2012_sdl2_win64.props new file mode 100644 index 00000000..cfe1b950 --- /dev/null +++ b/vs2012_sdl2_win64.props @@ -0,0 +1,14 @@ + + + + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;C:\dev\SDL2-2.0\include;$(IncludePath) + + + C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x64;C:\dev\SDL2-2.0\lib\x64;$(LibraryPath) + <_PropertySheetDisplayName>vs2012_win64 + + + + \ No newline at end of file