add-x64-support.patch 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. From b19c27d28962429145d464bd44501939f24dacf4 Mon Sep 17 00:00:00 2001
  2. From: PucklaMotzer09 <[email protected]>
  3. Date: Sun, 30 Aug 2020 13:45:52 +0200
  4. Subject: [PATCH] Add x64 support
  5. ---
  6. SDL2_gfx.sln | 6 +++
  7. SDL2_gfx.vcxproj | 95 ++++++++++++++++++++++++++++++++++++++++++++++--
  8. 2 files changed, 98 insertions(+), 3 deletions(-)
  9. diff --git a/SDL2_gfx.sln b/SDL2_gfx.sln
  10. index 786f339..bd7635b 100644
  11. --- a/SDL2_gfx.sln
  12. +++ b/SDL2_gfx.sln
  13. @@ -15,12 +15,18 @@ Global
  14. GlobalSection(SolutionConfigurationPlatforms) = preSolution
  15. Debug|Win32 = Debug|Win32
  16. Release|Win32 = Release|Win32
  17. + Debug|x64 = Debug|x64
  18. + Release|x64 = Release|x64
  19. EndGlobalSection
  20. GlobalSection(ProjectConfigurationPlatforms) = postSolution
  21. {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.ActiveCfg = Debug|Win32
  22. {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.Build.0 = Debug|Win32
  23. {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Release|Win32.ActiveCfg = Release|Win32
  24. {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Release|Win32.Build.0 = Release|Win32
  25. + {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Debug|x64.ActiveCfg = Debug|x64
  26. + {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Debug|x64.Build.0 = Debug|x64
  27. + {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Release|x64.ActiveCfg = Release|x64
  28. + {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Release|x64.Build.0 = Release|x64
  29. {AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.ActiveCfg = Debug|Win32
  30. {AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.Build.0 = Debug|Win32
  31. {AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}.Release|Win32.ActiveCfg = Release|Win32
  32. diff --git a/SDL2_gfx.vcxproj b/SDL2_gfx.vcxproj
  33. index e842d8a..4ae0cfa 100644
  34. --- a/SDL2_gfx.vcxproj
  35. +++ b/SDL2_gfx.vcxproj
  36. @@ -9,24 +9,42 @@
  37. <Configuration>Release</Configuration>
  38. <Platform>Win32</Platform>
  39. </ProjectConfiguration>
  40. + <ProjectConfiguration Include="Debug|x64">
  41. + <Configuration>Debug</Configuration>
  42. + <Platform>x64</Platform>
  43. + </ProjectConfiguration>
  44. + <ProjectConfiguration Include="Release|x64">
  45. + <Configuration>Release</Configuration>
  46. + <Platform>x64</Platform>
  47. + </ProjectConfiguration>
  48. </ItemGroup>
  49. <PropertyGroup Label="Globals">
  50. <ProjectGuid>{AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}</ProjectGuid>
  51. <RootNamespace>SDL2_gfx</RootNamespace>
  52. <Keyword>Win32Proj</Keyword>
  53. - <WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
  54. </PropertyGroup>
  55. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  56. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
  57. <ConfigurationType>DynamicLibrary</ConfigurationType>
  58. <CharacterSet>Unicode</CharacterSet>
  59. <WholeProgramOptimization>true</WholeProgramOptimization>
  60. - <PlatformToolset>v141</PlatformToolset>
  61. + <PlatformToolset>v142</PlatformToolset>
  62. </PropertyGroup>
  63. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
  64. <ConfigurationType>DynamicLibrary</ConfigurationType>
  65. <CharacterSet>Unicode</CharacterSet>
  66. - <PlatformToolset>v141</PlatformToolset>
  67. + <PlatformToolset>v142</PlatformToolset>
  68. + </PropertyGroup>
  69. + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
  70. + <ConfigurationType>DynamicLibrary</ConfigurationType>
  71. + <CharacterSet>Unicode</CharacterSet>
  72. + <WholeProgramOptimization>true</WholeProgramOptimization>
  73. + <PlatformToolset>v142</PlatformToolset>
  74. + </PropertyGroup>
  75. + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
  76. + <ConfigurationType>DynamicLibrary</ConfigurationType>
  77. + <CharacterSet>Unicode</CharacterSet>
  78. + <PlatformToolset>v142</PlatformToolset>
  79. </PropertyGroup>
  80. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  81. <ImportGroup Label="ExtensionSettings">
  82. @@ -37,6 +55,12 @@
  83. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
  84. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  85. </ImportGroup>
  86. + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
  87. + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  88. + </ImportGroup>
  89. + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
  90. + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  91. + </ImportGroup>
  92. <PropertyGroup Label="UserMacros" />
  93. <PropertyGroup>
  94. <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
  95. @@ -46,6 +70,12 @@
  96. <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
  97. <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
  98. <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
  99. + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
  100. + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
  101. + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
  102. + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
  103. + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
  104. + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
  105. </PropertyGroup>
  106. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  107. <ClCompile>
  108. @@ -104,6 +134,63 @@
  109. </Command>
  110. </PostBuildEvent>
  111. </ItemDefinitionGroup>
  112. + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  113. + <ClCompile>
  114. + <Optimization>Disabled</Optimization>
  115. + <AdditionalIncludeDirectories>..\SDL2-2.0.5\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  116. + <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;DLL_EXPORT;USE_MMX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  117. + <MinimalRebuild>true</MinimalRebuild>
  118. + <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
  119. + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
  120. + <PrecompiledHeader>
  121. + </PrecompiledHeader>
  122. + <WarningLevel>Level3</WarningLevel>
  123. + <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
  124. + </ClCompile>
  125. + <Link>
  126. + <AdditionalDependencies>SDL2.lib;%(AdditionalDependencies)</AdditionalDependencies>
  127. + <AdditionalLibraryDirectories>..\SDL2-2.0.5\VisualC\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  128. + <GenerateDebugInformation>true</GenerateDebugInformation>
  129. + <SubSystem>Windows</SubSystem>
  130. + <RandomizedBaseAddress>false</RandomizedBaseAddress>
  131. + <DataExecutionPrevention>
  132. + </DataExecutionPrevention>
  133. + <ImportLibrary>
  134. + </ImportLibrary>
  135. + <TargetMachine>MachineX64</TargetMachine>
  136. + </Link>
  137. + <PostBuildEvent>
  138. + <Command>
  139. + </Command>
  140. + </PostBuildEvent>
  141. + </ItemDefinitionGroup>
  142. + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  143. + <ClCompile>
  144. + <Optimization>MaxSpeed</Optimization>
  145. + <AdditionalIncludeDirectories>..\SDL2-2.0.5\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  146. + <IntrinsicFunctions>true</IntrinsicFunctions>
  147. + <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;DLL_EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  148. + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
  149. + <FunctionLevelLinking>true</FunctionLevelLinking>
  150. + <PrecompiledHeader>
  151. + </PrecompiledHeader>
  152. + <WarningLevel>Level3</WarningLevel>
  153. + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
  154. + </ClCompile>
  155. + <Link>
  156. + <AdditionalDependencies>SDL2.lib;%(AdditionalDependencies)</AdditionalDependencies>
  157. + <AdditionalLibraryDirectories>..\SDL2-2.0.5\VisualC\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  158. + <GenerateDebugInformation>true</GenerateDebugInformation>
  159. + <SubSystem>Windows</SubSystem>
  160. + <OptimizeReferences>true</OptimizeReferences>
  161. + <EnableCOMDATFolding>true</EnableCOMDATFolding>
  162. + <TargetMachine>MachineX64</TargetMachine>
  163. + </Link>
  164. + <PostBuildEvent>
  165. + <Command>
  166. + </Command>
  167. + </PostBuildEvent>
  168. + </ItemDefinitionGroup>
  169. <ItemGroup>
  170. <ClCompile Include="SDL2_framerate.c" />
  171. <ClCompile Include="SDL2_gfxPrimitives.c" />
  172. @@ -121,10 +208,12 @@
  173. <CustomBuildStep Include="ChangeLog">
  174. <FileType>Document</FileType>
  175. <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
  176. + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
  177. </CustomBuildStep>
  178. <CustomBuildStep Include="README">
  179. <FileType>Document</FileType>
  180. <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
  181. + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
  182. </CustomBuildStep>
  183. </ItemGroup>
  184. <ItemGroup>
  185. --
  186. 2.28.0.windows.1