add-x64-support.patch 9.2 KB

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