diff options
Diffstat (limited to 'contrib/SDL-3.2.8/include/build_config')
10 files changed, 2209 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config.h new file mode 100644 index 0000000..83031b7 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config.h | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_h_ | ||
| 23 | #define SDL_build_config_h_ | ||
| 24 | |||
| 25 | #include <SDL3/SDL_platform_defines.h> | ||
| 26 | |||
| 27 | /** | ||
| 28 | * \file SDL_build_config.h | ||
| 29 | * | ||
| 30 | * This is a set of defines to configure the SDL features | ||
| 31 | */ | ||
| 32 | |||
| 33 | /* Add any platform that doesn't build using the configure system. */ | ||
| 34 | #if defined(SDL_PLATFORM_PRIVATE) | ||
| 35 | #include "SDL_build_config_private.h" | ||
| 36 | #elif defined(SDL_PLATFORM_WIN32) | ||
| 37 | #include "SDL_build_config_windows.h" | ||
| 38 | #elif defined(SDL_PLATFORM_WINGDK) | ||
| 39 | #include "SDL_build_config_wingdk.h" | ||
| 40 | #elif defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES) | ||
| 41 | #include "SDL_build_config_xbox.h" | ||
| 42 | #elif defined(SDL_PLATFORM_MACOS) | ||
| 43 | #include "SDL_build_config_macos.h" | ||
| 44 | #elif defined(SDL_PLATFORM_IOS) | ||
| 45 | #include "SDL_build_config_ios.h" | ||
| 46 | #elif defined(SDL_PLATFORM_ANDROID) | ||
| 47 | #include "SDL_build_config_android.h" | ||
| 48 | #else | ||
| 49 | /* This is a minimal configuration just to get SDL running on new platforms. */ | ||
| 50 | #include "SDL_build_config_minimal.h" | ||
| 51 | #endif /* platform config */ | ||
| 52 | |||
| 53 | #ifdef USING_GENERATED_CONFIG_H | ||
| 54 | #error Wrong SDL_build_config.h, check your include path? | ||
| 55 | #endif | ||
| 56 | |||
| 57 | #endif /* SDL_build_config_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config.h.cmake b/contrib/SDL-3.2.8/include/build_config/SDL_build_config.h.cmake new file mode 100644 index 0000000..6ce491e --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config.h.cmake | |||
| @@ -0,0 +1,548 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | /** | ||
| 23 | * \file SDL_build_config.h | ||
| 24 | * | ||
| 25 | * This is a set of defines to configure the SDL features | ||
| 26 | */ | ||
| 27 | |||
| 28 | #ifndef SDL_build_config_h_ | ||
| 29 | #define SDL_build_config_h_ | ||
| 30 | |||
| 31 | /* General platform specific identifiers */ | ||
| 32 | #include <SDL3/SDL_platform_defines.h> | ||
| 33 | |||
| 34 | #cmakedefine HAVE_GCC_ATOMICS 1 | ||
| 35 | #cmakedefine HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1 | ||
| 36 | |||
| 37 | #cmakedefine SDL_DISABLE_ALLOCA 1 | ||
| 38 | |||
| 39 | /* Useful headers */ | ||
| 40 | #cmakedefine HAVE_FLOAT_H 1 | ||
| 41 | #cmakedefine HAVE_STDARG_H 1 | ||
| 42 | #cmakedefine HAVE_STDDEF_H 1 | ||
| 43 | #cmakedefine HAVE_STDINT_H 1 | ||
| 44 | |||
| 45 | /* Comment this if you want to build without any C library requirements */ | ||
| 46 | #cmakedefine HAVE_LIBC 1 | ||
| 47 | #ifdef HAVE_LIBC | ||
| 48 | |||
| 49 | /* Useful headers */ | ||
| 50 | #cmakedefine HAVE_ALLOCA_H 1 | ||
| 51 | #cmakedefine HAVE_ICONV_H 1 | ||
| 52 | #cmakedefine HAVE_INTTYPES_H 1 | ||
| 53 | #cmakedefine HAVE_LIMITS_H 1 | ||
| 54 | #cmakedefine HAVE_MALLOC_H 1 | ||
| 55 | #cmakedefine HAVE_MATH_H 1 | ||
| 56 | #cmakedefine HAVE_MEMORY_H 1 | ||
| 57 | #cmakedefine HAVE_SIGNAL_H 1 | ||
| 58 | #cmakedefine HAVE_STDIO_H 1 | ||
| 59 | #cmakedefine HAVE_STDLIB_H 1 | ||
| 60 | #cmakedefine HAVE_STRINGS_H 1 | ||
| 61 | #cmakedefine HAVE_STRING_H 1 | ||
| 62 | #cmakedefine HAVE_SYS_TYPES_H 1 | ||
| 63 | #cmakedefine HAVE_WCHAR_H 1 | ||
| 64 | #cmakedefine HAVE_PTHREAD_NP_H 1 | ||
| 65 | |||
| 66 | /* C library functions */ | ||
| 67 | #cmakedefine HAVE_DLOPEN 1 | ||
| 68 | #cmakedefine HAVE_MALLOC 1 | ||
| 69 | #cmakedefine HAVE_FDATASYNC 1 | ||
| 70 | #cmakedefine HAVE_GETENV 1 | ||
| 71 | #cmakedefine HAVE_GETHOSTNAME 1 | ||
| 72 | #cmakedefine HAVE_SETENV 1 | ||
| 73 | #cmakedefine HAVE_PUTENV 1 | ||
| 74 | #cmakedefine HAVE_UNSETENV 1 | ||
| 75 | #cmakedefine HAVE_ABS 1 | ||
| 76 | #cmakedefine HAVE_BCOPY 1 | ||
| 77 | #cmakedefine HAVE_MEMSET 1 | ||
| 78 | #cmakedefine HAVE_MEMCPY 1 | ||
| 79 | #cmakedefine HAVE_MEMMOVE 1 | ||
| 80 | #cmakedefine HAVE_MEMCMP 1 | ||
| 81 | #cmakedefine HAVE_WCSLEN 1 | ||
| 82 | #cmakedefine HAVE_WCSNLEN 1 | ||
| 83 | #cmakedefine HAVE_WCSLCPY 1 | ||
| 84 | #cmakedefine HAVE_WCSLCAT 1 | ||
| 85 | #cmakedefine HAVE_WCSSTR 1 | ||
| 86 | #cmakedefine HAVE_WCSCMP 1 | ||
| 87 | #cmakedefine HAVE_WCSNCMP 1 | ||
| 88 | #cmakedefine HAVE_WCSTOL 1 | ||
| 89 | #cmakedefine HAVE_STRLEN 1 | ||
| 90 | #cmakedefine HAVE_STRNLEN 1 | ||
| 91 | #cmakedefine HAVE_STRLCPY 1 | ||
| 92 | #cmakedefine HAVE_STRLCAT 1 | ||
| 93 | #cmakedefine HAVE_STRPBRK 1 | ||
| 94 | #cmakedefine HAVE__STRREV 1 | ||
| 95 | #cmakedefine HAVE_INDEX 1 | ||
| 96 | #cmakedefine HAVE_RINDEX 1 | ||
| 97 | #cmakedefine HAVE_STRCHR 1 | ||
| 98 | #cmakedefine HAVE_STRRCHR 1 | ||
| 99 | #cmakedefine HAVE_STRSTR 1 | ||
| 100 | #cmakedefine HAVE_STRNSTR 1 | ||
| 101 | #cmakedefine HAVE_STRTOK_R 1 | ||
| 102 | #cmakedefine HAVE_ITOA 1 | ||
| 103 | #cmakedefine HAVE__LTOA 1 | ||
| 104 | #cmakedefine HAVE__UITOA 1 | ||
| 105 | #cmakedefine HAVE__ULTOA 1 | ||
| 106 | #cmakedefine HAVE_STRTOL 1 | ||
| 107 | #cmakedefine HAVE_STRTOUL 1 | ||
| 108 | #cmakedefine HAVE__I64TOA 1 | ||
| 109 | #cmakedefine HAVE__UI64TOA 1 | ||
| 110 | #cmakedefine HAVE_STRTOLL 1 | ||
| 111 | #cmakedefine HAVE_STRTOULL 1 | ||
| 112 | #cmakedefine HAVE_STRTOD 1 | ||
| 113 | #cmakedefine HAVE_ATOI 1 | ||
| 114 | #cmakedefine HAVE_ATOF 1 | ||
| 115 | #cmakedefine HAVE_STRCMP 1 | ||
| 116 | #cmakedefine HAVE_STRNCMP 1 | ||
| 117 | #cmakedefine HAVE_VSSCANF 1 | ||
| 118 | #cmakedefine HAVE_VSNPRINTF 1 | ||
| 119 | #cmakedefine HAVE_ACOS 1 | ||
| 120 | #cmakedefine HAVE_ACOSF 1 | ||
| 121 | #cmakedefine HAVE_ASIN 1 | ||
| 122 | #cmakedefine HAVE_ASINF 1 | ||
| 123 | #cmakedefine HAVE_ATAN 1 | ||
| 124 | #cmakedefine HAVE_ATANF 1 | ||
| 125 | #cmakedefine HAVE_ATAN2 1 | ||
| 126 | #cmakedefine HAVE_ATAN2F 1 | ||
| 127 | #cmakedefine HAVE_CEIL 1 | ||
| 128 | #cmakedefine HAVE_CEILF 1 | ||
| 129 | #cmakedefine HAVE_COPYSIGN 1 | ||
| 130 | #cmakedefine HAVE_COPYSIGNF 1 | ||
| 131 | #cmakedefine HAVE__COPYSIGN 1 | ||
| 132 | #cmakedefine HAVE_COS 1 | ||
| 133 | #cmakedefine HAVE_COSF 1 | ||
| 134 | #cmakedefine HAVE_EXP 1 | ||
| 135 | #cmakedefine HAVE_EXPF 1 | ||
| 136 | #cmakedefine HAVE_FABS 1 | ||
| 137 | #cmakedefine HAVE_FABSF 1 | ||
| 138 | #cmakedefine HAVE_FLOOR 1 | ||
| 139 | #cmakedefine HAVE_FLOORF 1 | ||
| 140 | #cmakedefine HAVE_FMOD 1 | ||
| 141 | #cmakedefine HAVE_FMODF 1 | ||
| 142 | #cmakedefine HAVE_ISINF 1 | ||
| 143 | #cmakedefine HAVE_ISINFF 1 | ||
| 144 | #cmakedefine HAVE_ISINF_FLOAT_MACRO 1 | ||
| 145 | #cmakedefine HAVE_ISNAN 1 | ||
| 146 | #cmakedefine HAVE_ISNANF 1 | ||
| 147 | #cmakedefine HAVE_ISNAN_FLOAT_MACRO 1 | ||
| 148 | #cmakedefine HAVE_LOG 1 | ||
| 149 | #cmakedefine HAVE_LOGF 1 | ||
| 150 | #cmakedefine HAVE_LOG10 1 | ||
| 151 | #cmakedefine HAVE_LOG10F 1 | ||
| 152 | #cmakedefine HAVE_LROUND 1 | ||
| 153 | #cmakedefine HAVE_LROUNDF 1 | ||
| 154 | #cmakedefine HAVE_MODF 1 | ||
| 155 | #cmakedefine HAVE_MODFF 1 | ||
| 156 | #cmakedefine HAVE_POW 1 | ||
| 157 | #cmakedefine HAVE_POWF 1 | ||
| 158 | #cmakedefine HAVE_ROUND 1 | ||
| 159 | #cmakedefine HAVE_ROUNDF 1 | ||
| 160 | #cmakedefine HAVE_SCALBN 1 | ||
| 161 | #cmakedefine HAVE_SCALBNF 1 | ||
| 162 | #cmakedefine HAVE_SIN 1 | ||
| 163 | #cmakedefine HAVE_SINF 1 | ||
| 164 | #cmakedefine HAVE_SQRT 1 | ||
| 165 | #cmakedefine HAVE_SQRTF 1 | ||
| 166 | #cmakedefine HAVE_TAN 1 | ||
| 167 | #cmakedefine HAVE_TANF 1 | ||
| 168 | #cmakedefine HAVE_TRUNC 1 | ||
| 169 | #cmakedefine HAVE_TRUNCF 1 | ||
| 170 | #cmakedefine HAVE__FSEEKI64 1 | ||
| 171 | #cmakedefine HAVE_FOPEN64 1 | ||
| 172 | #cmakedefine HAVE_FSEEKO 1 | ||
| 173 | #cmakedefine HAVE_FSEEKO64 1 | ||
| 174 | #cmakedefine HAVE_MEMFD_CREATE 1 | ||
| 175 | #cmakedefine HAVE_POSIX_FALLOCATE 1 | ||
| 176 | #cmakedefine HAVE_SIGACTION 1 | ||
| 177 | #cmakedefine HAVE_SA_SIGACTION 1 | ||
| 178 | #cmakedefine HAVE_ST_MTIM 1 | ||
| 179 | #cmakedefine HAVE_SETJMP 1 | ||
| 180 | #cmakedefine HAVE_NANOSLEEP 1 | ||
| 181 | #cmakedefine HAVE_GMTIME_R 1 | ||
| 182 | #cmakedefine HAVE_LOCALTIME_R 1 | ||
| 183 | #cmakedefine HAVE_NL_LANGINFO 1 | ||
| 184 | #cmakedefine HAVE_SYSCONF 1 | ||
| 185 | #cmakedefine HAVE_SYSCTLBYNAME 1 | ||
| 186 | #cmakedefine HAVE_CLOCK_GETTIME 1 | ||
| 187 | #cmakedefine HAVE_GETPAGESIZE 1 | ||
| 188 | #cmakedefine HAVE_ICONV 1 | ||
| 189 | #cmakedefine SDL_USE_LIBICONV 1 | ||
| 190 | #cmakedefine HAVE_PTHREAD_SETNAME_NP 1 | ||
| 191 | #cmakedefine HAVE_PTHREAD_SET_NAME_NP 1 | ||
| 192 | #cmakedefine HAVE_SEM_TIMEDWAIT 1 | ||
| 193 | #cmakedefine HAVE_GETAUXVAL 1 | ||
| 194 | #cmakedefine HAVE_ELF_AUX_INFO 1 | ||
| 195 | #cmakedefine HAVE_POLL 1 | ||
| 196 | #cmakedefine HAVE__EXIT 1 | ||
| 197 | |||
| 198 | #endif /* HAVE_LIBC */ | ||
| 199 | |||
| 200 | #cmakedefine HAVE_DBUS_DBUS_H 1 | ||
| 201 | #cmakedefine HAVE_FCITX 1 | ||
| 202 | #cmakedefine HAVE_IBUS_IBUS_H 1 | ||
| 203 | #cmakedefine HAVE_INOTIFY_INIT1 1 | ||
| 204 | #cmakedefine HAVE_INOTIFY 1 | ||
| 205 | #cmakedefine HAVE_LIBUSB 1 | ||
| 206 | #cmakedefine HAVE_O_CLOEXEC 1 | ||
| 207 | |||
| 208 | #cmakedefine HAVE_LINUX_INPUT_H 1 | ||
| 209 | #cmakedefine HAVE_LIBUDEV_H 1 | ||
| 210 | #cmakedefine HAVE_LIBDECOR_H 1 | ||
| 211 | #cmakedefine HAVE_LIBURING_H 1 | ||
| 212 | |||
| 213 | #cmakedefine HAVE_DDRAW_H 1 | ||
| 214 | #cmakedefine HAVE_DSOUND_H 1 | ||
| 215 | #cmakedefine HAVE_DINPUT_H 1 | ||
| 216 | #cmakedefine HAVE_XINPUT_H 1 | ||
| 217 | #cmakedefine HAVE_WINDOWS_GAMING_INPUT_H 1 | ||
| 218 | #cmakedefine HAVE_GAMEINPUT_H 1 | ||
| 219 | #cmakedefine HAVE_DXGI_H 1 | ||
| 220 | #cmakedefine HAVE_DXGI1_6_H 1 | ||
| 221 | |||
| 222 | #cmakedefine HAVE_MMDEVICEAPI_H 1 | ||
| 223 | #cmakedefine HAVE_TPCSHRD_H 1 | ||
| 224 | #cmakedefine HAVE_ROAPI_H 1 | ||
| 225 | #cmakedefine HAVE_SHELLSCALINGAPI_H 1 | ||
| 226 | |||
| 227 | #cmakedefine USE_POSIX_SPAWN 1 | ||
| 228 | |||
| 229 | /* SDL internal assertion support */ | ||
| 230 | #cmakedefine SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED 1 | ||
| 231 | #ifdef SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED | ||
| 232 | #define SDL_DEFAULT_ASSERT_LEVEL @SDL_DEFAULT_ASSERT_LEVEL@ | ||
| 233 | #endif | ||
| 234 | |||
| 235 | /* Allow disabling of major subsystems */ | ||
| 236 | #cmakedefine SDL_AUDIO_DISABLED 1 | ||
| 237 | #cmakedefine SDL_VIDEO_DISABLED 1 | ||
| 238 | #cmakedefine SDL_GPU_DISABLED 1 | ||
| 239 | #cmakedefine SDL_RENDER_DISABLED 1 | ||
| 240 | #cmakedefine SDL_CAMERA_DISABLED 1 | ||
| 241 | #cmakedefine SDL_JOYSTICK_DISABLED 1 | ||
| 242 | #cmakedefine SDL_HAPTIC_DISABLED 1 | ||
| 243 | #cmakedefine SDL_HIDAPI_DISABLED 1 | ||
| 244 | #cmakedefine SDL_POWER_DISABLED 1 | ||
| 245 | #cmakedefine SDL_SENSOR_DISABLED 1 | ||
| 246 | #cmakedefine SDL_DIALOG_DISABLED 1 | ||
| 247 | #cmakedefine SDL_THREADS_DISABLED 1 | ||
| 248 | |||
| 249 | /* Enable various audio drivers */ | ||
| 250 | #cmakedefine SDL_AUDIO_DRIVER_ALSA 1 | ||
| 251 | #cmakedefine SDL_AUDIO_DRIVER_ALSA_DYNAMIC @SDL_AUDIO_DRIVER_ALSA_DYNAMIC@ | ||
| 252 | #cmakedefine SDL_AUDIO_DRIVER_OPENSLES 1 | ||
| 253 | #cmakedefine SDL_AUDIO_DRIVER_AAUDIO 1 | ||
| 254 | #cmakedefine SDL_AUDIO_DRIVER_COREAUDIO 1 | ||
| 255 | #cmakedefine SDL_AUDIO_DRIVER_DISK 1 | ||
| 256 | #cmakedefine SDL_AUDIO_DRIVER_DSOUND 1 | ||
| 257 | #cmakedefine SDL_AUDIO_DRIVER_DUMMY 1 | ||
| 258 | #cmakedefine SDL_AUDIO_DRIVER_EMSCRIPTEN 1 | ||
| 259 | #cmakedefine SDL_AUDIO_DRIVER_HAIKU 1 | ||
| 260 | #cmakedefine SDL_AUDIO_DRIVER_JACK 1 | ||
| 261 | #cmakedefine SDL_AUDIO_DRIVER_JACK_DYNAMIC @SDL_AUDIO_DRIVER_JACK_DYNAMIC@ | ||
| 262 | #cmakedefine SDL_AUDIO_DRIVER_NETBSD 1 | ||
| 263 | #cmakedefine SDL_AUDIO_DRIVER_OSS 1 | ||
| 264 | #cmakedefine SDL_AUDIO_DRIVER_PIPEWIRE 1 | ||
| 265 | #cmakedefine SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC @SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC@ | ||
| 266 | #cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO 1 | ||
| 267 | #cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC @SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC@ | ||
| 268 | #cmakedefine SDL_AUDIO_DRIVER_SNDIO 1 | ||
| 269 | #cmakedefine SDL_AUDIO_DRIVER_SNDIO_DYNAMIC @SDL_AUDIO_DRIVER_SNDIO_DYNAMIC@ | ||
| 270 | #cmakedefine SDL_AUDIO_DRIVER_WASAPI 1 | ||
| 271 | #cmakedefine SDL_AUDIO_DRIVER_VITA 1 | ||
| 272 | #cmakedefine SDL_AUDIO_DRIVER_PSP 1 | ||
| 273 | #cmakedefine SDL_AUDIO_DRIVER_PS2 1 | ||
| 274 | #cmakedefine SDL_AUDIO_DRIVER_N3DS 1 | ||
| 275 | #cmakedefine SDL_AUDIO_DRIVER_QNX 1 | ||
| 276 | |||
| 277 | /* Enable various input drivers */ | ||
| 278 | #cmakedefine SDL_INPUT_LINUXEV 1 | ||
| 279 | #cmakedefine SDL_INPUT_LINUXKD 1 | ||
| 280 | #cmakedefine SDL_INPUT_FBSDKBIO 1 | ||
| 281 | #cmakedefine SDL_INPUT_WSCONS 1 | ||
| 282 | #cmakedefine SDL_HAVE_MACHINE_JOYSTICK_H 1 | ||
| 283 | #cmakedefine SDL_JOYSTICK_ANDROID 1 | ||
| 284 | #cmakedefine SDL_JOYSTICK_DINPUT 1 | ||
| 285 | #cmakedefine SDL_JOYSTICK_DUMMY 1 | ||
| 286 | #cmakedefine SDL_JOYSTICK_EMSCRIPTEN 1 | ||
| 287 | #cmakedefine SDL_JOYSTICK_GAMEINPUT 1 | ||
| 288 | #cmakedefine SDL_JOYSTICK_HAIKU 1 | ||
| 289 | #cmakedefine SDL_JOYSTICK_HIDAPI 1 | ||
| 290 | #cmakedefine SDL_JOYSTICK_IOKIT 1 | ||
| 291 | #cmakedefine SDL_JOYSTICK_LINUX 1 | ||
| 292 | #cmakedefine SDL_JOYSTICK_MFI 1 | ||
| 293 | #cmakedefine SDL_JOYSTICK_N3DS 1 | ||
| 294 | #cmakedefine SDL_JOYSTICK_PS2 1 | ||
| 295 | #cmakedefine SDL_JOYSTICK_PSP 1 | ||
| 296 | #cmakedefine SDL_JOYSTICK_RAWINPUT 1 | ||
| 297 | #cmakedefine SDL_JOYSTICK_USBHID 1 | ||
| 298 | #cmakedefine SDL_JOYSTICK_VIRTUAL 1 | ||
| 299 | #cmakedefine SDL_JOYSTICK_VITA 1 | ||
| 300 | #cmakedefine SDL_JOYSTICK_WGI 1 | ||
| 301 | #cmakedefine SDL_JOYSTICK_XINPUT 1 | ||
| 302 | #cmakedefine SDL_HAPTIC_DUMMY 1 | ||
| 303 | #cmakedefine SDL_HAPTIC_LINUX 1 | ||
| 304 | #cmakedefine SDL_HAPTIC_IOKIT 1 | ||
| 305 | #cmakedefine SDL_HAPTIC_DINPUT 1 | ||
| 306 | #cmakedefine SDL_HAPTIC_ANDROID 1 | ||
| 307 | #cmakedefine SDL_LIBUSB_DYNAMIC @SDL_LIBUSB_DYNAMIC@ | ||
| 308 | #cmakedefine SDL_UDEV_DYNAMIC @SDL_UDEV_DYNAMIC@ | ||
| 309 | |||
| 310 | /* Enable various process implementations */ | ||
| 311 | #cmakedefine SDL_PROCESS_DUMMY 1 | ||
| 312 | #cmakedefine SDL_PROCESS_POSIX 1 | ||
| 313 | #cmakedefine SDL_PROCESS_WINDOWS 1 | ||
| 314 | |||
| 315 | /* Enable various sensor drivers */ | ||
| 316 | #cmakedefine SDL_SENSOR_ANDROID 1 | ||
| 317 | #cmakedefine SDL_SENSOR_COREMOTION 1 | ||
| 318 | #cmakedefine SDL_SENSOR_WINDOWS 1 | ||
| 319 | #cmakedefine SDL_SENSOR_DUMMY 1 | ||
| 320 | #cmakedefine SDL_SENSOR_VITA 1 | ||
| 321 | #cmakedefine SDL_SENSOR_N3DS 1 | ||
| 322 | |||
| 323 | /* Enable various shared object loading systems */ | ||
| 324 | #cmakedefine SDL_LOADSO_DLOPEN 1 | ||
| 325 | #cmakedefine SDL_LOADSO_DUMMY 1 | ||
| 326 | #cmakedefine SDL_LOADSO_WINDOWS 1 | ||
| 327 | |||
| 328 | /* Enable various threading systems */ | ||
| 329 | #cmakedefine SDL_THREAD_GENERIC_COND_SUFFIX 1 | ||
| 330 | #cmakedefine SDL_THREAD_GENERIC_RWLOCK_SUFFIX 1 | ||
| 331 | #cmakedefine SDL_THREAD_PTHREAD 1 | ||
| 332 | #cmakedefine SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1 | ||
| 333 | #cmakedefine SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1 | ||
| 334 | #cmakedefine SDL_THREAD_WINDOWS 1 | ||
| 335 | #cmakedefine SDL_THREAD_VITA 1 | ||
| 336 | #cmakedefine SDL_THREAD_PSP 1 | ||
| 337 | #cmakedefine SDL_THREAD_PS2 1 | ||
| 338 | #cmakedefine SDL_THREAD_N3DS 1 | ||
| 339 | |||
| 340 | /* Enable various RTC systems */ | ||
| 341 | #cmakedefine SDL_TIME_UNIX 1 | ||
| 342 | #cmakedefine SDL_TIME_WINDOWS 1 | ||
| 343 | #cmakedefine SDL_TIME_VITA 1 | ||
| 344 | #cmakedefine SDL_TIME_PSP 1 | ||
| 345 | #cmakedefine SDL_TIME_PS2 1 | ||
| 346 | #cmakedefine SDL_TIME_N3DS 1 | ||
| 347 | |||
| 348 | /* Enable various timer systems */ | ||
| 349 | #cmakedefine SDL_TIMER_HAIKU 1 | ||
| 350 | #cmakedefine SDL_TIMER_UNIX 1 | ||
| 351 | #cmakedefine SDL_TIMER_WINDOWS 1 | ||
| 352 | #cmakedefine SDL_TIMER_VITA 1 | ||
| 353 | #cmakedefine SDL_TIMER_PSP 1 | ||
| 354 | #cmakedefine SDL_TIMER_PS2 1 | ||
| 355 | #cmakedefine SDL_TIMER_N3DS 1 | ||
| 356 | |||
| 357 | /* Enable various video drivers */ | ||
| 358 | #cmakedefine SDL_VIDEO_DRIVER_ANDROID 1 | ||
| 359 | #cmakedefine SDL_VIDEO_DRIVER_COCOA 1 | ||
| 360 | #cmakedefine SDL_VIDEO_DRIVER_DUMMY 1 | ||
| 361 | #cmakedefine SDL_VIDEO_DRIVER_EMSCRIPTEN 1 | ||
| 362 | #cmakedefine SDL_VIDEO_DRIVER_HAIKU 1 | ||
| 363 | #cmakedefine SDL_VIDEO_DRIVER_KMSDRM 1 | ||
| 364 | #cmakedefine SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC @SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC@ | ||
| 365 | #cmakedefine SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM @SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM@ | ||
| 366 | #cmakedefine SDL_VIDEO_DRIVER_N3DS 1 | ||
| 367 | #cmakedefine SDL_VIDEO_DRIVER_OFFSCREEN 1 | ||
| 368 | #cmakedefine SDL_VIDEO_DRIVER_PS2 1 | ||
| 369 | #cmakedefine SDL_VIDEO_DRIVER_PSP 1 | ||
| 370 | #cmakedefine SDL_VIDEO_DRIVER_RISCOS 1 | ||
| 371 | #cmakedefine SDL_VIDEO_DRIVER_ROCKCHIP 1 | ||
| 372 | #cmakedefine SDL_VIDEO_DRIVER_RPI 1 | ||
| 373 | #cmakedefine SDL_VIDEO_DRIVER_UIKIT 1 | ||
| 374 | #cmakedefine SDL_VIDEO_DRIVER_VITA 1 | ||
| 375 | #cmakedefine SDL_VIDEO_DRIVER_VIVANTE 1 | ||
| 376 | #cmakedefine SDL_VIDEO_DRIVER_VIVANTE_VDK 1 | ||
| 377 | #cmakedefine SDL_VIDEO_DRIVER_OPENVR 1 | ||
| 378 | #cmakedefine SDL_VIDEO_DRIVER_WAYLAND 1 | ||
| 379 | #cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC@ | ||
| 380 | #cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR@ | ||
| 381 | #cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL@ | ||
| 382 | #cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR@ | ||
| 383 | #cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON@ | ||
| 384 | #cmakedefine SDL_VIDEO_DRIVER_WINDOWS 1 | ||
| 385 | #cmakedefine SDL_VIDEO_DRIVER_X11 1 | ||
| 386 | #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC @SDL_VIDEO_DRIVER_X11_DYNAMIC@ | ||
| 387 | #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR @SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR@ | ||
| 388 | #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT @SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT@ | ||
| 389 | #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES @SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES@ | ||
| 390 | #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 @SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2@ | ||
| 391 | #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR @SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR@ | ||
| 392 | #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS @SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS@ | ||
| 393 | #cmakedefine SDL_VIDEO_DRIVER_X11_HAS_XKBLOOKUPKEYSYM 1 | ||
| 394 | #cmakedefine SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1 | ||
| 395 | #cmakedefine SDL_VIDEO_DRIVER_X11_XCURSOR 1 | ||
| 396 | #cmakedefine SDL_VIDEO_DRIVER_X11_XDBE 1 | ||
| 397 | #cmakedefine SDL_VIDEO_DRIVER_X11_XFIXES 1 | ||
| 398 | #cmakedefine SDL_VIDEO_DRIVER_X11_XINPUT2 1 | ||
| 399 | #cmakedefine SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1 | ||
| 400 | #cmakedefine SDL_VIDEO_DRIVER_X11_XRANDR 1 | ||
| 401 | #cmakedefine SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1 | ||
| 402 | #cmakedefine SDL_VIDEO_DRIVER_X11_XSHAPE 1 | ||
| 403 | #cmakedefine SDL_VIDEO_DRIVER_X11_XSYNC 1 | ||
| 404 | #cmakedefine SDL_VIDEO_DRIVER_QNX 1 | ||
| 405 | |||
| 406 | #cmakedefine SDL_VIDEO_RENDER_D3D 1 | ||
| 407 | #cmakedefine SDL_VIDEO_RENDER_D3D11 1 | ||
| 408 | #cmakedefine SDL_VIDEO_RENDER_D3D12 1 | ||
| 409 | #cmakedefine SDL_VIDEO_RENDER_GPU 1 | ||
| 410 | #cmakedefine SDL_VIDEO_RENDER_METAL 1 | ||
| 411 | #cmakedefine SDL_VIDEO_RENDER_VULKAN 1 | ||
| 412 | #cmakedefine SDL_VIDEO_RENDER_OGL 1 | ||
| 413 | #cmakedefine SDL_VIDEO_RENDER_OGL_ES2 1 | ||
| 414 | #cmakedefine SDL_VIDEO_RENDER_PS2 1 | ||
| 415 | #cmakedefine SDL_VIDEO_RENDER_PSP 1 | ||
| 416 | #cmakedefine SDL_VIDEO_RENDER_VITA_GXM 1 | ||
| 417 | |||
| 418 | /* Enable OpenGL support */ | ||
| 419 | #cmakedefine SDL_VIDEO_OPENGL 1 | ||
| 420 | #cmakedefine SDL_VIDEO_OPENGL_ES 1 | ||
| 421 | #cmakedefine SDL_VIDEO_OPENGL_ES2 1 | ||
| 422 | #cmakedefine SDL_VIDEO_OPENGL_CGL 1 | ||
| 423 | #cmakedefine SDL_VIDEO_OPENGL_GLX 1 | ||
| 424 | #cmakedefine SDL_VIDEO_OPENGL_WGL 1 | ||
| 425 | #cmakedefine SDL_VIDEO_OPENGL_EGL 1 | ||
| 426 | |||
| 427 | /* Enable Vulkan support */ | ||
| 428 | #cmakedefine SDL_VIDEO_VULKAN 1 | ||
| 429 | |||
| 430 | /* Enable Metal support */ | ||
| 431 | #cmakedefine SDL_VIDEO_METAL 1 | ||
| 432 | |||
| 433 | /* Enable GPU support */ | ||
| 434 | #cmakedefine SDL_GPU_D3D11 1 | ||
| 435 | #cmakedefine SDL_GPU_D3D12 1 | ||
| 436 | #cmakedefine SDL_GPU_VULKAN 1 | ||
| 437 | #cmakedefine SDL_GPU_METAL 1 | ||
| 438 | |||
| 439 | /* Enable system power support */ | ||
| 440 | #cmakedefine SDL_POWER_ANDROID 1 | ||
| 441 | #cmakedefine SDL_POWER_LINUX 1 | ||
| 442 | #cmakedefine SDL_POWER_WINDOWS 1 | ||
| 443 | #cmakedefine SDL_POWER_MACOSX 1 | ||
| 444 | #cmakedefine SDL_POWER_UIKIT 1 | ||
| 445 | #cmakedefine SDL_POWER_HAIKU 1 | ||
| 446 | #cmakedefine SDL_POWER_EMSCRIPTEN 1 | ||
| 447 | #cmakedefine SDL_POWER_HARDWIRED 1 | ||
| 448 | #cmakedefine SDL_POWER_VITA 1 | ||
| 449 | #cmakedefine SDL_POWER_PSP 1 | ||
| 450 | #cmakedefine SDL_POWER_N3DS 1 | ||
| 451 | |||
| 452 | /* Enable system filesystem support */ | ||
| 453 | #cmakedefine SDL_FILESYSTEM_ANDROID 1 | ||
| 454 | #cmakedefine SDL_FILESYSTEM_HAIKU 1 | ||
| 455 | #cmakedefine SDL_FILESYSTEM_COCOA 1 | ||
| 456 | #cmakedefine SDL_FILESYSTEM_DUMMY 1 | ||
| 457 | #cmakedefine SDL_FILESYSTEM_RISCOS 1 | ||
| 458 | #cmakedefine SDL_FILESYSTEM_UNIX 1 | ||
| 459 | #cmakedefine SDL_FILESYSTEM_WINDOWS 1 | ||
| 460 | #cmakedefine SDL_FILESYSTEM_EMSCRIPTEN 1 | ||
| 461 | #cmakedefine SDL_FILESYSTEM_VITA 1 | ||
| 462 | #cmakedefine SDL_FILESYSTEM_PSP 1 | ||
| 463 | #cmakedefine SDL_FILESYSTEM_PS2 1 | ||
| 464 | #cmakedefine SDL_FILESYSTEM_N3DS 1 | ||
| 465 | |||
| 466 | /* Enable system storage support */ | ||
| 467 | #cmakedefine SDL_STORAGE_STEAM @SDL_STORAGE_STEAM@ | ||
| 468 | |||
| 469 | /* Enable system FSops support */ | ||
| 470 | #cmakedefine SDL_FSOPS_POSIX 1 | ||
| 471 | #cmakedefine SDL_FSOPS_WINDOWS 1 | ||
| 472 | #cmakedefine SDL_FSOPS_DUMMY 1 | ||
| 473 | |||
| 474 | /* Enable camera subsystem */ | ||
| 475 | #cmakedefine SDL_CAMERA_DRIVER_DUMMY 1 | ||
| 476 | /* !!! FIXME: for later cmakedefine SDL_CAMERA_DRIVER_DISK 1 */ | ||
| 477 | #cmakedefine SDL_CAMERA_DRIVER_V4L2 1 | ||
| 478 | #cmakedefine SDL_CAMERA_DRIVER_COREMEDIA 1 | ||
| 479 | #cmakedefine SDL_CAMERA_DRIVER_ANDROID 1 | ||
| 480 | #cmakedefine SDL_CAMERA_DRIVER_EMSCRIPTEN 1 | ||
| 481 | #cmakedefine SDL_CAMERA_DRIVER_MEDIAFOUNDATION 1 | ||
| 482 | #cmakedefine SDL_CAMERA_DRIVER_PIPEWIRE 1 | ||
| 483 | #cmakedefine SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC @SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC@ | ||
| 484 | #cmakedefine SDL_CAMERA_DRIVER_VITA 1 | ||
| 485 | |||
| 486 | /* Enable dialog subsystem */ | ||
| 487 | #cmakedefine SDL_DIALOG_DUMMY 1 | ||
| 488 | |||
| 489 | /* Enable assembly routines */ | ||
| 490 | #cmakedefine SDL_ALTIVEC_BLITTERS 1 | ||
| 491 | |||
| 492 | /* Whether SDL_DYNAMIC_API needs dlopen */ | ||
| 493 | #cmakedefine DYNAPI_NEEDS_DLOPEN 1 | ||
| 494 | |||
| 495 | /* Enable ime support */ | ||
| 496 | #cmakedefine SDL_USE_IME 1 | ||
| 497 | #cmakedefine SDL_DISABLE_WINDOWS_IME 1 | ||
| 498 | #cmakedefine SDL_GDK_TEXTINPUT 1 | ||
| 499 | |||
| 500 | /* Platform specific definitions */ | ||
| 501 | #cmakedefine SDL_IPHONE_KEYBOARD 1 | ||
| 502 | #cmakedefine SDL_IPHONE_LAUNCHSCREEN 1 | ||
| 503 | |||
| 504 | #cmakedefine SDL_VIDEO_VITA_PIB 1 | ||
| 505 | #cmakedefine SDL_VIDEO_VITA_PVR 1 | ||
| 506 | #cmakedefine SDL_VIDEO_VITA_PVR_OGL 1 | ||
| 507 | |||
| 508 | /* Libdecor version info */ | ||
| 509 | #define SDL_LIBDECOR_VERSION_MAJOR @SDL_LIBDECOR_VERSION_MAJOR@ | ||
| 510 | #define SDL_LIBDECOR_VERSION_MINOR @SDL_LIBDECOR_VERSION_MINOR@ | ||
| 511 | #define SDL_LIBDECOR_VERSION_PATCH @SDL_LIBDECOR_VERSION_PATCH@ | ||
| 512 | |||
| 513 | #if !defined(HAVE_STDINT_H) && !defined(_STDINT_H_) | ||
| 514 | /* Most everything except Visual Studio 2008 and earlier has stdint.h now */ | ||
| 515 | #if defined(_MSC_VER) && (_MSC_VER < 1600) | ||
| 516 | typedef signed __int8 int8_t; | ||
| 517 | typedef unsigned __int8 uint8_t; | ||
| 518 | typedef signed __int16 int16_t; | ||
| 519 | typedef unsigned __int16 uint16_t; | ||
| 520 | typedef signed __int32 int32_t; | ||
| 521 | typedef unsigned __int32 uint32_t; | ||
| 522 | typedef signed __int64 int64_t; | ||
| 523 | typedef unsigned __int64 uint64_t; | ||
| 524 | #ifndef _UINTPTR_T_DEFINED | ||
| 525 | #ifdef _WIN64 | ||
| 526 | typedef unsigned __int64 uintptr_t; | ||
| 527 | #else | ||
| 528 | typedef unsigned int uintptr_t; | ||
| 529 | #endif | ||
| 530 | #endif | ||
| 531 | #endif /* Visual Studio 2008 */ | ||
| 532 | #endif /* !_STDINT_H_ && !HAVE_STDINT_H */ | ||
| 533 | |||
| 534 | /* Configure use of intrinsics */ | ||
| 535 | #cmakedefine SDL_DISABLE_SSE 1 | ||
| 536 | #cmakedefine SDL_DISABLE_SSE2 1 | ||
| 537 | #cmakedefine SDL_DISABLE_SSE3 1 | ||
| 538 | #cmakedefine SDL_DISABLE_SSE4_1 1 | ||
| 539 | #cmakedefine SDL_DISABLE_SSE4_2 1 | ||
| 540 | #cmakedefine SDL_DISABLE_AVX 1 | ||
| 541 | #cmakedefine SDL_DISABLE_AVX2 1 | ||
| 542 | #cmakedefine SDL_DISABLE_AVX512F 1 | ||
| 543 | #cmakedefine SDL_DISABLE_MMX 1 | ||
| 544 | #cmakedefine SDL_DISABLE_LSX 1 | ||
| 545 | #cmakedefine SDL_DISABLE_LASX 1 | ||
| 546 | #cmakedefine SDL_DISABLE_NEON 1 | ||
| 547 | |||
| 548 | #endif /* SDL_build_config_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config_android.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_android.h new file mode 100644 index 0000000..a0727f5 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_android.h | |||
| @@ -0,0 +1,217 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_android_h_ | ||
| 23 | #define SDL_build_config_android_h_ | ||
| 24 | #define SDL_build_config_h_ | ||
| 25 | |||
| 26 | #include <SDL3/SDL_platform_defines.h> | ||
| 27 | |||
| 28 | /** | ||
| 29 | * \file SDL_build_config_android.h | ||
| 30 | * | ||
| 31 | * This is a configuration that can be used to build SDL for Android | ||
| 32 | */ | ||
| 33 | |||
| 34 | #include <stdarg.h> | ||
| 35 | |||
| 36 | #define HAVE_GCC_ATOMICS 1 | ||
| 37 | |||
| 38 | #define HAVE_ALLOCA_H 1 | ||
| 39 | #define HAVE_FLOAT_H 1 | ||
| 40 | #define HAVE_INTTYPES_H 1 | ||
| 41 | #define HAVE_LIMITS_H 1 | ||
| 42 | #define HAVE_MATH_H 1 | ||
| 43 | #define HAVE_SIGNAL_H 1 | ||
| 44 | #define HAVE_STDARG_H 1 | ||
| 45 | #define HAVE_STDDEF_H 1 | ||
| 46 | #define HAVE_STDINT_H 1 | ||
| 47 | #define HAVE_STDIO_H 1 | ||
| 48 | #define HAVE_STDLIB_H 1 | ||
| 49 | #define HAVE_STRING_H 1 | ||
| 50 | #define HAVE_SYS_TYPES_H 1 | ||
| 51 | #define HAVE_WCHAR_H 1 | ||
| 52 | |||
| 53 | /* C library functions */ | ||
| 54 | #define HAVE_LIBC 1 | ||
| 55 | #define HAVE_DLOPEN 1 | ||
| 56 | #define HAVE_MALLOC 1 | ||
| 57 | #define HAVE_FDATASYNC 1 | ||
| 58 | #define HAVE_GETENV 1 | ||
| 59 | #define HAVE_GETHOSTNAME 1 | ||
| 60 | #define HAVE_PUTENV 1 | ||
| 61 | #define HAVE_SETENV 1 | ||
| 62 | #define HAVE_UNSETENV 1 | ||
| 63 | #define HAVE_ABS 1 | ||
| 64 | #define HAVE_BCOPY 1 | ||
| 65 | #define HAVE_MEMSET 1 | ||
| 66 | #define HAVE_MEMCPY 1 | ||
| 67 | #define HAVE_MEMMOVE 1 | ||
| 68 | #define HAVE_MEMCMP 1 | ||
| 69 | #define HAVE_STRLEN 1 | ||
| 70 | #define HAVE_STRLCPY 1 | ||
| 71 | #define HAVE_STRLCAT 1 | ||
| 72 | #define HAVE_STRCHR 1 | ||
| 73 | #define HAVE_STRRCHR 1 | ||
| 74 | #define HAVE_STRSTR 1 | ||
| 75 | #define HAVE_STRTOK_R 1 | ||
| 76 | #define HAVE_STRTOL 1 | ||
| 77 | #define HAVE_STRTOUL 1 | ||
| 78 | #define HAVE_STRTOLL 1 | ||
| 79 | #define HAVE_STRTOULL 1 | ||
| 80 | #define HAVE_STRTOD 1 | ||
| 81 | #define HAVE_ATOI 1 | ||
| 82 | #define HAVE_ATOF 1 | ||
| 83 | #define HAVE_STRCMP 1 | ||
| 84 | #define HAVE_STRNCMP 1 | ||
| 85 | #define HAVE_VSSCANF 1 | ||
| 86 | #define HAVE_VSNPRINTF 1 | ||
| 87 | #define HAVE_ACOS 1 | ||
| 88 | #define HAVE_ACOSF 1 | ||
| 89 | #define HAVE_ASIN 1 | ||
| 90 | #define HAVE_ASINF 1 | ||
| 91 | #define HAVE_ATAN 1 | ||
| 92 | #define HAVE_ATANF 1 | ||
| 93 | #define HAVE_ATAN2 1 | ||
| 94 | #define HAVE_ATAN2F 1 | ||
| 95 | #define HAVE_CEIL 1 | ||
| 96 | #define HAVE_CEILF 1 | ||
| 97 | #define HAVE_COPYSIGN 1 | ||
| 98 | #define HAVE_COPYSIGNF 1 | ||
| 99 | #define HAVE_COS 1 | ||
| 100 | #define HAVE_COSF 1 | ||
| 101 | #define HAVE_EXP 1 | ||
| 102 | #define HAVE_EXPF 1 | ||
| 103 | #define HAVE_FABS 1 | ||
| 104 | #define HAVE_FABSF 1 | ||
| 105 | #define HAVE_FLOOR 1 | ||
| 106 | #define HAVE_FLOORF 1 | ||
| 107 | #define HAVE_FMOD 1 | ||
| 108 | #define HAVE_FMODF 1 | ||
| 109 | #define HAVE_ISINF 1 | ||
| 110 | #define HAVE_ISINF_FLOAT_MACRO 1 | ||
| 111 | #define HAVE_ISNAN 1 | ||
| 112 | #define HAVE_ISNAN_FLOAT_MACRO 1 | ||
| 113 | #define HAVE_LOG 1 | ||
| 114 | #define HAVE_LOGF 1 | ||
| 115 | #define HAVE_LOG10 1 | ||
| 116 | #define HAVE_LOG10F 1 | ||
| 117 | #define HAVE_LROUND 1 | ||
| 118 | #define HAVE_LROUNDF 1 | ||
| 119 | #define HAVE_MODF 1 | ||
| 120 | #define HAVE_MODFF 1 | ||
| 121 | #define HAVE_POW 1 | ||
| 122 | #define HAVE_POWF 1 | ||
| 123 | #define HAVE_ROUND 1 | ||
| 124 | #define HAVE_ROUNDF 1 | ||
| 125 | #define HAVE_SCALBN 1 | ||
| 126 | #define HAVE_SCALBNF 1 | ||
| 127 | #define HAVE_SIN 1 | ||
| 128 | #define HAVE_SINF 1 | ||
| 129 | #define HAVE_SQRT 1 | ||
| 130 | #define HAVE_SQRTF 1 | ||
| 131 | #define HAVE_TAN 1 | ||
| 132 | #define HAVE_TANF 1 | ||
| 133 | #define HAVE_TRUNC 1 | ||
| 134 | #define HAVE_TRUNCF 1 | ||
| 135 | #define HAVE_SIGACTION 1 | ||
| 136 | #define HAVE_SETJMP 1 | ||
| 137 | #define HAVE_NANOSLEEP 1 | ||
| 138 | #define HAVE_GMTIME_R 1 | ||
| 139 | #define HAVE_LOCALTIME_R 1 | ||
| 140 | #define HAVE_SYSCONF 1 | ||
| 141 | #define HAVE_CLOCK_GETTIME 1 | ||
| 142 | |||
| 143 | /* Enable various audio drivers */ | ||
| 144 | #ifndef SDL_AUDIO_DISABLED | ||
| 145 | #define SDL_AUDIO_DRIVER_OPENSLES 1 | ||
| 146 | #define SDL_AUDIO_DRIVER_AAUDIO 1 | ||
| 147 | #endif /* SDL_AUDIO_DISABLED */ | ||
| 148 | |||
| 149 | /* Enable various input drivers */ | ||
| 150 | #ifndef SDL_JOYSTICK_DISABLED | ||
| 151 | #define SDL_JOYSTICK_ANDROID 1 | ||
| 152 | #define SDL_JOYSTICK_HIDAPI 1 | ||
| 153 | #define SDL_JOYSTICK_VIRTUAL 1 | ||
| 154 | #endif /* SDL_JOYSTICK_DISABLED */ | ||
| 155 | #ifndef SDL_HAPTIC_DISABLED | ||
| 156 | #define SDL_HAPTIC_ANDROID 1 | ||
| 157 | #endif /* SDL_HAPTIC_DISABLED */ | ||
| 158 | |||
| 159 | /* Enable the stub process support */ | ||
| 160 | #define SDL_PROCESS_DUMMY 1 | ||
| 161 | |||
| 162 | /* Enable sensor driver */ | ||
| 163 | #ifndef SDL_SENSOR_DISABLED | ||
| 164 | #define SDL_SENSOR_ANDROID 1 | ||
| 165 | #endif /* SDL_SENSOR_DISABLED */ | ||
| 166 | |||
| 167 | /* Enable various shared object loading systems */ | ||
| 168 | #define SDL_LOADSO_DLOPEN 1 | ||
| 169 | |||
| 170 | /* Enable various threading systems */ | ||
| 171 | #define SDL_THREAD_PTHREAD 1 | ||
| 172 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1 | ||
| 173 | |||
| 174 | /* Enable RTC system */ | ||
| 175 | #define SDL_TIME_UNIX 1 | ||
| 176 | |||
| 177 | /* Enable various timer systems */ | ||
| 178 | #define SDL_TIMER_UNIX 1 | ||
| 179 | |||
| 180 | /* Enable various video drivers */ | ||
| 181 | #define SDL_VIDEO_DRIVER_ANDROID 1 | ||
| 182 | |||
| 183 | /* Enable OpenGL ES */ | ||
| 184 | #define SDL_VIDEO_OPENGL_ES 1 | ||
| 185 | #define SDL_VIDEO_OPENGL_ES2 1 | ||
| 186 | #define SDL_VIDEO_OPENGL_EGL 1 | ||
| 187 | #define SDL_VIDEO_RENDER_OGL_ES2 1 | ||
| 188 | |||
| 189 | /* Enable Vulkan support */ | ||
| 190 | #if defined(__ARM_ARCH) && __ARM_ARCH < 7 | ||
| 191 | /* Android does not support Vulkan in native code using the "armeabi" ABI. */ | ||
| 192 | #else | ||
| 193 | #define SDL_VIDEO_VULKAN 1 | ||
| 194 | #define SDL_VIDEO_RENDER_VULKAN 1 | ||
| 195 | #define SDL_GPU_VULKAN 1 | ||
| 196 | #define SDL_VIDEO_RENDER_GPU 1 | ||
| 197 | #endif | ||
| 198 | |||
| 199 | /* Enable system power support */ | ||
| 200 | #define SDL_POWER_ANDROID 1 | ||
| 201 | |||
| 202 | /* Enable the filesystem driver */ | ||
| 203 | #define SDL_FILESYSTEM_ANDROID 1 | ||
| 204 | #define SDL_FSOPS_POSIX 1 | ||
| 205 | |||
| 206 | /* Enable the camera driver */ | ||
| 207 | #ifndef SDL_CAMERA_DISABLED | ||
| 208 | #define SDL_CAMERA_DRIVER_ANDROID 1 | ||
| 209 | #endif /* SDL_CAMERA_DISABLED */ | ||
| 210 | |||
| 211 | /* Enable nl_langinfo and high-res file times on version 26 and higher. */ | ||
| 212 | #if __ANDROID_API__ >= 26 | ||
| 213 | #define HAVE_NL_LANGINFO 1 | ||
| 214 | #define HAVE_ST_MTIM 1 | ||
| 215 | #endif | ||
| 216 | |||
| 217 | #endif /* SDL_build_config_android_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config_ios.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_ios.h new file mode 100644 index 0000000..be1ec29 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_ios.h | |||
| @@ -0,0 +1,226 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_ios_h_ | ||
| 23 | #define SDL_build_config_ios_h_ | ||
| 24 | #define SDL_build_config_h_ | ||
| 25 | |||
| 26 | #include <SDL3/SDL_platform_defines.h> | ||
| 27 | |||
| 28 | #define HAVE_GCC_ATOMICS 1 | ||
| 29 | |||
| 30 | #define HAVE_ALLOCA_H 1 | ||
| 31 | #define HAVE_FLOAT_H 1 | ||
| 32 | #define HAVE_INTTYPES_H 1 | ||
| 33 | #define HAVE_LIMITS_H 1 | ||
| 34 | #define HAVE_MATH_H 1 | ||
| 35 | #define HAVE_SIGNAL_H 1 | ||
| 36 | #define HAVE_STDARG_H 1 | ||
| 37 | #define HAVE_STDDEF_H 1 | ||
| 38 | #define HAVE_STDINT_H 1 | ||
| 39 | #define HAVE_STDIO_H 1 | ||
| 40 | #define HAVE_STDLIB_H 1 | ||
| 41 | #define HAVE_STRING_H 1 | ||
| 42 | #define HAVE_SYS_TYPES_H 1 | ||
| 43 | #define HAVE_WCHAR_H 1 | ||
| 44 | |||
| 45 | /* C library functions */ | ||
| 46 | #define HAVE_LIBC 1 | ||
| 47 | #define HAVE_DLOPEN 1 | ||
| 48 | #define HAVE_MALLOC 1 | ||
| 49 | #define HAVE_GETENV 1 | ||
| 50 | #define HAVE_GETHOSTNAME 1 | ||
| 51 | #define HAVE_PUTENV 1 | ||
| 52 | #define HAVE_SETENV 1 | ||
| 53 | #define HAVE_UNSETENV 1 | ||
| 54 | #define HAVE_ABS 1 | ||
| 55 | #define HAVE_BCOPY 1 | ||
| 56 | #define HAVE_MEMSET 1 | ||
| 57 | #define HAVE_MEMCPY 1 | ||
| 58 | #define HAVE_MEMMOVE 1 | ||
| 59 | #define HAVE_MEMCMP 1 | ||
| 60 | #define HAVE_STRLEN 1 | ||
| 61 | #define HAVE_STRLCPY 1 | ||
| 62 | #define HAVE_STRLCAT 1 | ||
| 63 | #define HAVE_STRCHR 1 | ||
| 64 | #define HAVE_STRRCHR 1 | ||
| 65 | #define HAVE_STRSTR 1 | ||
| 66 | #define HAVE_STRTOK_R 1 | ||
| 67 | #define HAVE_STRTOL 1 | ||
| 68 | #define HAVE_STRTOUL 1 | ||
| 69 | #define HAVE_STRTOLL 1 | ||
| 70 | #define HAVE_STRTOULL 1 | ||
| 71 | #define HAVE_STRTOD 1 | ||
| 72 | #define HAVE_ATOI 1 | ||
| 73 | #define HAVE_ATOF 1 | ||
| 74 | #define HAVE_STRCMP 1 | ||
| 75 | #define HAVE_STRNCMP 1 | ||
| 76 | #define HAVE_STRPBRK 1 | ||
| 77 | #define HAVE_VSSCANF 1 | ||
| 78 | #define HAVE_VSNPRINTF 1 | ||
| 79 | #define HAVE_ACOS 1 | ||
| 80 | #define HAVE_ACOSF 1 | ||
| 81 | #define HAVE_ASIN 1 | ||
| 82 | #define HAVE_ASINF 1 | ||
| 83 | #define HAVE_ATAN 1 | ||
| 84 | #define HAVE_ATANF 1 | ||
| 85 | #define HAVE_ATAN2 1 | ||
| 86 | #define HAVE_ATAN2F 1 | ||
| 87 | #define HAVE_CEIL 1 | ||
| 88 | #define HAVE_CEILF 1 | ||
| 89 | #define HAVE_COPYSIGN 1 | ||
| 90 | #define HAVE_COPYSIGNF 1 | ||
| 91 | #define HAVE_COS 1 | ||
| 92 | #define HAVE_COSF 1 | ||
| 93 | #define HAVE_EXP 1 | ||
| 94 | #define HAVE_EXPF 1 | ||
| 95 | #define HAVE_FABS 1 | ||
| 96 | #define HAVE_FABSF 1 | ||
| 97 | #define HAVE_FLOOR 1 | ||
| 98 | #define HAVE_FLOORF 1 | ||
| 99 | #define HAVE_FMOD 1 | ||
| 100 | #define HAVE_FMODF 1 | ||
| 101 | #define HAVE_ISINF 1 | ||
| 102 | #define HAVE_ISINF_FLOAT_MACRO 1 | ||
| 103 | #define HAVE_ISNAN 1 | ||
| 104 | #define HAVE_ISNAN_FLOAT_MACRO 1 | ||
| 105 | #define HAVE_LOG 1 | ||
| 106 | #define HAVE_LOGF 1 | ||
| 107 | #define HAVE_LOG10 1 | ||
| 108 | #define HAVE_LOG10F 1 | ||
| 109 | #define HAVE_LROUND 1 | ||
| 110 | #define HAVE_LROUNDF 1 | ||
| 111 | #define HAVE_MODF 1 | ||
| 112 | #define HAVE_MODFF 1 | ||
| 113 | #define HAVE_POW 1 | ||
| 114 | #define HAVE_POWF 1 | ||
| 115 | #define HAVE_ROUND 1 | ||
| 116 | #define HAVE_ROUNDF 1 | ||
| 117 | #define HAVE_SCALBN 1 | ||
| 118 | #define HAVE_SCALBNF 1 | ||
| 119 | #define HAVE_SIN 1 | ||
| 120 | #define HAVE_SINF 1 | ||
| 121 | #define HAVE_SQRT 1 | ||
| 122 | #define HAVE_SQRTF 1 | ||
| 123 | #define HAVE_TAN 1 | ||
| 124 | #define HAVE_TANF 1 | ||
| 125 | #define HAVE_TRUNC 1 | ||
| 126 | #define HAVE_TRUNCF 1 | ||
| 127 | #define HAVE_SIGACTION 1 | ||
| 128 | #define HAVE_SETJMP 1 | ||
| 129 | #define HAVE_NANOSLEEP 1 | ||
| 130 | #define HAVE_GMTIME_R 1 | ||
| 131 | #define HAVE_LOCALTIME_R 1 | ||
| 132 | #define HAVE_NL_LANGINFO 1 | ||
| 133 | #define HAVE_SYSCONF 1 | ||
| 134 | #define HAVE_SYSCTLBYNAME 1 | ||
| 135 | #define HAVE_O_CLOEXEC 1 | ||
| 136 | |||
| 137 | /* enable iPhone version of Core Audio driver */ | ||
| 138 | #define SDL_AUDIO_DRIVER_COREAUDIO 1 | ||
| 139 | /* Enable the dummy audio driver (src/audio/dummy/\*.c) */ | ||
| 140 | #define SDL_AUDIO_DRIVER_DUMMY 1 | ||
| 141 | |||
| 142 | /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */ | ||
| 143 | #define SDL_HAPTIC_DUMMY 1 | ||
| 144 | |||
| 145 | /* Enable joystick support */ | ||
| 146 | /* Only enable HIDAPI support if you want to support Steam Controllers on iOS and tvOS */ | ||
| 147 | /*#define SDL_JOYSTICK_HIDAPI 1*/ | ||
| 148 | #define SDL_JOYSTICK_MFI 1 | ||
| 149 | #define SDL_JOYSTICK_VIRTUAL 1 | ||
| 150 | |||
| 151 | /* Enable various process implementations */ | ||
| 152 | #define SDL_PROCESS_DUMMY 1 | ||
| 153 | |||
| 154 | #ifdef SDL_PLATFORM_TVOS | ||
| 155 | #define SDL_SENSOR_DUMMY 1 | ||
| 156 | #else | ||
| 157 | /* Enable the CoreMotion sensor driver */ | ||
| 158 | #define SDL_SENSOR_COREMOTION 1 | ||
| 159 | #endif | ||
| 160 | |||
| 161 | /* Enable Unix style SO loading */ | ||
| 162 | #define SDL_LOADSO_DLOPEN 1 | ||
| 163 | |||
| 164 | /* Enable various threading systems */ | ||
| 165 | #define SDL_THREAD_PTHREAD 1 | ||
| 166 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1 | ||
| 167 | |||
| 168 | /* Enable various RTC system */ | ||
| 169 | #define SDL_TIME_UNIX 1 | ||
| 170 | |||
| 171 | /* Enable various timer systems */ | ||
| 172 | #define SDL_TIMER_UNIX 1 | ||
| 173 | |||
| 174 | /* Supported video drivers */ | ||
| 175 | #define SDL_VIDEO_DRIVER_UIKIT 1 | ||
| 176 | #define SDL_VIDEO_DRIVER_DUMMY 1 | ||
| 177 | |||
| 178 | /* Enable OpenGL ES */ | ||
| 179 | #if !TARGET_OS_MACCATALYST && !TARGET_OS_VISION | ||
| 180 | #define SDL_VIDEO_OPENGL_ES2 1 | ||
| 181 | #define SDL_VIDEO_OPENGL_ES 1 | ||
| 182 | #define SDL_VIDEO_RENDER_OGL_ES2 1 | ||
| 183 | #endif | ||
| 184 | |||
| 185 | /* Metal supported on 64-bit devices running iOS 8.0 and tvOS 9.0 and newer | ||
| 186 | Also supported in simulator from iOS 13.0 and tvOS 13.0 | ||
| 187 | */ | ||
| 188 | #if (TARGET_OS_SIMULATOR && ((__IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) || (__TV_OS_VERSION_MIN_REQUIRED >= 130000))) || (!TARGET_CPU_ARM && ((__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 90000))) | ||
| 189 | #define SDL_PLATFORM_SUPPORTS_METAL 1 | ||
| 190 | #else | ||
| 191 | #define SDL_PLATFORM_SUPPORTS_METAL 0 | ||
| 192 | #endif | ||
| 193 | |||
| 194 | #if SDL_PLATFORM_SUPPORTS_METAL | ||
| 195 | #define SDL_VIDEO_METAL 1 | ||
| 196 | #define SDL_VIDEO_VULKAN 1 | ||
| 197 | #define SDL_GPU_METAL 1 | ||
| 198 | #define SDL_GPU_VULKAN 1 | ||
| 199 | #define SDL_VIDEO_RENDER_METAL 1 | ||
| 200 | #define SDL_VIDEO_RENDER_GPU 1 | ||
| 201 | #endif | ||
| 202 | |||
| 203 | /* Enable system power support */ | ||
| 204 | #define SDL_POWER_UIKIT 1 | ||
| 205 | |||
| 206 | /* enable iPhone keyboard support */ | ||
| 207 | #define SDL_IPHONE_KEYBOARD 1 | ||
| 208 | |||
| 209 | /* enable iOS extended launch screen */ | ||
| 210 | #define SDL_IPHONE_LAUNCHSCREEN 1 | ||
| 211 | |||
| 212 | /* enable filesystem support */ | ||
| 213 | #define SDL_FILESYSTEM_COCOA 1 | ||
| 214 | #define SDL_FSOPS_POSIX 1 | ||
| 215 | |||
| 216 | /* enable camera support */ | ||
| 217 | #ifndef SDL_PLATFORM_TVOS | ||
| 218 | #define SDL_CAMERA_DRIVER_COREMEDIA 1 | ||
| 219 | #endif | ||
| 220 | |||
| 221 | #define SDL_CAMERA_DRIVER_DUMMY 1 | ||
| 222 | |||
| 223 | /* Enable dialog subsystem */ | ||
| 224 | #define SDL_DIALOG_DUMMY 1 | ||
| 225 | |||
| 226 | #endif /* SDL_build_config_ios_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config_macos.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_macos.h new file mode 100644 index 0000000..1a66449 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_macos.h | |||
| @@ -0,0 +1,257 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_macos_h_ | ||
| 23 | #define SDL_build_config_macos_h_ | ||
| 24 | #define SDL_build_config_h_ | ||
| 25 | |||
| 26 | #include <SDL3/SDL_platform_defines.h> | ||
| 27 | |||
| 28 | /* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */ | ||
| 29 | #include <AvailabilityMacros.h> | ||
| 30 | |||
| 31 | /* This is a set of defines to configure the SDL features */ | ||
| 32 | |||
| 33 | /* Useful headers */ | ||
| 34 | #define HAVE_ALLOCA_H 1 | ||
| 35 | #define HAVE_FLOAT_H 1 | ||
| 36 | #define HAVE_INTTYPES_H 1 | ||
| 37 | #define HAVE_LIMITS_H 1 | ||
| 38 | #define HAVE_MATH_H 1 | ||
| 39 | #define HAVE_SIGNAL_H 1 | ||
| 40 | #define HAVE_STDARG_H 1 | ||
| 41 | #define HAVE_STDDEF_H 1 | ||
| 42 | #define HAVE_STDINT_H 1 | ||
| 43 | #define HAVE_STDIO_H 1 | ||
| 44 | #define HAVE_STDLIB_H 1 | ||
| 45 | #define HAVE_STRING_H 1 | ||
| 46 | #define HAVE_SYS_TYPES_H 1 | ||
| 47 | #define HAVE_WCHAR_H 1 | ||
| 48 | |||
| 49 | /* C library functions */ | ||
| 50 | #define HAVE_LIBC 1 | ||
| 51 | #define HAVE_DLOPEN 1 | ||
| 52 | #define HAVE_MALLOC 1 | ||
| 53 | #define HAVE_GETENV 1 | ||
| 54 | #define HAVE_GETHOSTNAME 1 | ||
| 55 | #define HAVE_SETENV 1 | ||
| 56 | #define HAVE_PUTENV 1 | ||
| 57 | #define HAVE_UNSETENV 1 | ||
| 58 | #define HAVE_ABS 1 | ||
| 59 | #define HAVE_BCOPY 1 | ||
| 60 | #define HAVE_MEMSET 1 | ||
| 61 | #define HAVE_MEMCPY 1 | ||
| 62 | #define HAVE_MEMMOVE 1 | ||
| 63 | #define HAVE_MEMCMP 1 | ||
| 64 | #define HAVE_STRLEN 1 | ||
| 65 | #define HAVE_STRLCPY 1 | ||
| 66 | #define HAVE_STRLCAT 1 | ||
| 67 | #define HAVE_STRPBRK 1 | ||
| 68 | #define HAVE_STRCHR 1 | ||
| 69 | #define HAVE_STRRCHR 1 | ||
| 70 | #define HAVE_STRSTR 1 | ||
| 71 | #define HAVE_STRTOK_R 1 | ||
| 72 | #define HAVE_STRTOL 1 | ||
| 73 | #define HAVE_STRTOUL 1 | ||
| 74 | #define HAVE_STRTOLL 1 | ||
| 75 | #define HAVE_STRTOULL 1 | ||
| 76 | #define HAVE_STRTOD 1 | ||
| 77 | #define HAVE_ATOI 1 | ||
| 78 | #define HAVE_ATOF 1 | ||
| 79 | #define HAVE_STRCMP 1 | ||
| 80 | #define HAVE_STRNCMP 1 | ||
| 81 | #define HAVE_VSSCANF 1 | ||
| 82 | #define HAVE_VSNPRINTF 1 | ||
| 83 | #define HAVE_ACOS 1 | ||
| 84 | #define HAVE_ACOSF 1 | ||
| 85 | #define HAVE_ASIN 1 | ||
| 86 | #define HAVE_ASINF 1 | ||
| 87 | #define HAVE_ATAN 1 | ||
| 88 | #define HAVE_ATANF 1 | ||
| 89 | #define HAVE_ATAN2 1 | ||
| 90 | #define HAVE_ATAN2F 1 | ||
| 91 | #define HAVE_CEIL 1 | ||
| 92 | #define HAVE_CEILF 1 | ||
| 93 | #define HAVE_COPYSIGN 1 | ||
| 94 | #define HAVE_COPYSIGNF 1 | ||
| 95 | #define HAVE_COS 1 | ||
| 96 | #define HAVE_COSF 1 | ||
| 97 | #define HAVE_EXP 1 | ||
| 98 | #define HAVE_EXPF 1 | ||
| 99 | #define HAVE_FABS 1 | ||
| 100 | #define HAVE_FABSF 1 | ||
| 101 | #define HAVE_FLOOR 1 | ||
| 102 | #define HAVE_FLOORF 1 | ||
| 103 | #define HAVE_FMOD 1 | ||
| 104 | #define HAVE_FMODF 1 | ||
| 105 | #define HAVE_ISINF 1 | ||
| 106 | #define HAVE_ISINF_FLOAT_MACRO 1 | ||
| 107 | #define HAVE_ISNAN 1 | ||
| 108 | #define HAVE_ISNAN_FLOAT_MACRO 1 | ||
| 109 | #define HAVE_LOG 1 | ||
| 110 | #define HAVE_LOGF 1 | ||
| 111 | #define HAVE_LOG10 1 | ||
| 112 | #define HAVE_LOG10F 1 | ||
| 113 | #define HAVE_LROUND 1 | ||
| 114 | #define HAVE_LROUNDF 1 | ||
| 115 | #define HAVE_MODF 1 | ||
| 116 | #define HAVE_MODFF 1 | ||
| 117 | #define HAVE_POW 1 | ||
| 118 | #define HAVE_POWF 1 | ||
| 119 | #define HAVE_ROUND 1 | ||
| 120 | #define HAVE_ROUNDF 1 | ||
| 121 | #define HAVE_SCALBN 1 | ||
| 122 | #define HAVE_SCALBNF 1 | ||
| 123 | #define HAVE_SIN 1 | ||
| 124 | #define HAVE_SINF 1 | ||
| 125 | #define HAVE_SQRT 1 | ||
| 126 | #define HAVE_SQRTF 1 | ||
| 127 | #define HAVE_TAN 1 | ||
| 128 | #define HAVE_TANF 1 | ||
| 129 | #define HAVE_TRUNC 1 | ||
| 130 | #define HAVE_TRUNCF 1 | ||
| 131 | #define HAVE_SIGACTION 1 | ||
| 132 | #define HAVE_SETJMP 1 | ||
| 133 | #define HAVE_NANOSLEEP 1 | ||
| 134 | #define HAVE_GMTIME_R 1 | ||
| 135 | #define HAVE_LOCALTIME_R 1 | ||
| 136 | #define HAVE_NL_LANGINFO 1 | ||
| 137 | #define HAVE_SYSCONF 1 | ||
| 138 | #define HAVE_SYSCTLBYNAME 1 | ||
| 139 | |||
| 140 | #if defined(__has_include) && (defined(__i386__) || defined(__x86_64)) | ||
| 141 | # if !__has_include(<immintrin.h>) | ||
| 142 | # define SDL_DISABLE_AVX 1 | ||
| 143 | # endif | ||
| 144 | #endif | ||
| 145 | |||
| 146 | #if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070) | ||
| 147 | #define HAVE_O_CLOEXEC 1 | ||
| 148 | #endif | ||
| 149 | |||
| 150 | #define HAVE_GCC_ATOMICS 1 | ||
| 151 | |||
| 152 | /* Enable various audio drivers */ | ||
| 153 | #define SDL_AUDIO_DRIVER_COREAUDIO 1 | ||
| 154 | #define SDL_AUDIO_DRIVER_DISK 1 | ||
| 155 | #define SDL_AUDIO_DRIVER_DUMMY 1 | ||
| 156 | |||
| 157 | /* Enable various input drivers */ | ||
| 158 | #define SDL_JOYSTICK_HIDAPI 1 | ||
| 159 | #define SDL_JOYSTICK_IOKIT 1 | ||
| 160 | #define SDL_JOYSTICK_VIRTUAL 1 | ||
| 161 | #define SDL_HAPTIC_IOKIT 1 | ||
| 162 | |||
| 163 | /* The MFI controller support requires ARC Objective C runtime */ | ||
| 164 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__) | ||
| 165 | #define SDL_JOYSTICK_MFI 1 | ||
| 166 | #endif | ||
| 167 | |||
| 168 | /* Enable various process implementations */ | ||
| 169 | #define SDL_PROCESS_POSIX 1 | ||
| 170 | |||
| 171 | /* Enable the dummy sensor driver */ | ||
| 172 | #define SDL_SENSOR_DUMMY 1 | ||
| 173 | |||
| 174 | /* Enable various shared object loading systems */ | ||
| 175 | #define SDL_LOADSO_DLOPEN 1 | ||
| 176 | |||
| 177 | /* Enable various threading systems */ | ||
| 178 | #define SDL_THREAD_PTHREAD 1 | ||
| 179 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1 | ||
| 180 | |||
| 181 | /* Enable various RTC system */ | ||
| 182 | #define SDL_TIME_UNIX 1 | ||
| 183 | |||
| 184 | /* Enable various timer systems */ | ||
| 185 | #define SDL_TIMER_UNIX 1 | ||
| 186 | |||
| 187 | /* Enable various video drivers */ | ||
| 188 | #define SDL_VIDEO_DRIVER_COCOA 1 | ||
| 189 | #define SDL_VIDEO_DRIVER_DUMMY 1 | ||
| 190 | #define SDL_VIDEO_DRIVER_OFFSCREEN 1 | ||
| 191 | #undef SDL_VIDEO_DRIVER_X11 | ||
| 192 | #define SDL_VIDEO_DRIVER_X11_DYNAMIC "/opt/X11/lib/libX11.6.dylib" | ||
| 193 | #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/opt/X11/lib/libXext.6.dylib" | ||
| 194 | #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/opt/X11/lib/libXi.6.dylib" | ||
| 195 | #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/opt/X11/lib/libXrandr.2.dylib" | ||
| 196 | #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/opt/X11/lib/libXss.1.dylib" | ||
| 197 | #define SDL_VIDEO_DRIVER_X11_XDBE 1 | ||
| 198 | #define SDL_VIDEO_DRIVER_X11_XRANDR 1 | ||
| 199 | #define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1 | ||
| 200 | #define SDL_VIDEO_DRIVER_X11_XSHAPE 1 | ||
| 201 | #define SDL_VIDEO_DRIVER_X11_HAS_XKBLOOKUPKEYSYM 1 | ||
| 202 | |||
| 203 | #ifdef MAC_OS_X_VERSION_10_8 | ||
| 204 | /* | ||
| 205 | * No matter the versions targeted, this is the 10.8 or later SDK, so you have | ||
| 206 | * to use the external Xquartz, which is a more modern Xlib. Previous SDKs | ||
| 207 | * used an older Xlib. | ||
| 208 | */ | ||
| 209 | #define SDL_VIDEO_DRIVER_X11_XINPUT2 1 | ||
| 210 | #define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1 | ||
| 211 | #endif | ||
| 212 | |||
| 213 | #define SDL_VIDEO_RENDER_OGL 1 | ||
| 214 | #define SDL_VIDEO_RENDER_OGL_ES2 1 | ||
| 215 | |||
| 216 | /* Metal only supported on 64-bit architectures with 10.11+ */ | ||
| 217 | #if TARGET_RT_64_BIT && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100) | ||
| 218 | #define SDL_PLATFORM_SUPPORTS_METAL 1 | ||
| 219 | #endif | ||
| 220 | |||
| 221 | #ifdef SDL_PLATFORM_SUPPORTS_METAL | ||
| 222 | #define SDL_VIDEO_RENDER_METAL 1 | ||
| 223 | #endif | ||
| 224 | |||
| 225 | /* Enable OpenGL support */ | ||
| 226 | #define SDL_VIDEO_OPENGL 1 | ||
| 227 | #define SDL_VIDEO_OPENGL_ES2 1 | ||
| 228 | #define SDL_VIDEO_OPENGL_EGL 1 | ||
| 229 | #define SDL_VIDEO_OPENGL_CGL 1 | ||
| 230 | #define SDL_VIDEO_OPENGL_GLX 1 | ||
| 231 | |||
| 232 | /* Enable Vulkan and Metal support */ | ||
| 233 | #ifdef SDL_PLATFORM_SUPPORTS_METAL | ||
| 234 | #define SDL_VIDEO_METAL 1 | ||
| 235 | #define SDL_GPU_METAL 1 | ||
| 236 | #define SDL_VIDEO_VULKAN 1 | ||
| 237 | #define SDL_GPU_VULKAN 1 | ||
| 238 | #define SDL_VIDEO_RENDER_GPU 1 | ||
| 239 | #endif | ||
| 240 | |||
| 241 | /* Enable system power support */ | ||
| 242 | #define SDL_POWER_MACOSX 1 | ||
| 243 | |||
| 244 | /* enable filesystem support */ | ||
| 245 | #define SDL_FILESYSTEM_COCOA 1 | ||
| 246 | #define SDL_FSOPS_POSIX 1 | ||
| 247 | |||
| 248 | /* enable camera support */ | ||
| 249 | #define SDL_CAMERA_DRIVER_COREMEDIA 1 | ||
| 250 | #define SDL_CAMERA_DRIVER_DUMMY 1 | ||
| 251 | |||
| 252 | /* Enable assembly routines */ | ||
| 253 | #ifdef __ppc__ | ||
| 254 | #define SDL_ALTIVEC_BLITTERS 1 | ||
| 255 | #endif | ||
| 256 | |||
| 257 | #endif /* SDL_build_config_macos_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config_minimal.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_minimal.h new file mode 100644 index 0000000..d5fe736 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_minimal.h | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_minimal_h_ | ||
| 23 | #define SDL_build_config_minimal_h_ | ||
| 24 | #define SDL_build_config_h_ | ||
| 25 | |||
| 26 | #include <SDL3/SDL_platform_defines.h> | ||
| 27 | |||
| 28 | /** | ||
| 29 | * \file SDL_build_config_minimal.h | ||
| 30 | * | ||
| 31 | * This is the minimal configuration that can be used to build SDL. | ||
| 32 | */ | ||
| 33 | |||
| 34 | #define HAVE_STDARG_H 1 | ||
| 35 | #define HAVE_STDDEF_H 1 | ||
| 36 | |||
| 37 | #if !defined(HAVE_STDINT_H) && !defined(_STDINT_H_) | ||
| 38 | /* Most everything except Visual Studio 2008 and earlier has stdint.h now */ | ||
| 39 | #if defined(_MSC_VER) && (_MSC_VER < 1600) | ||
| 40 | typedef signed __int8 int8_t; | ||
| 41 | typedef unsigned __int8 uint8_t; | ||
| 42 | typedef signed __int16 int16_t; | ||
| 43 | typedef unsigned __int16 uint16_t; | ||
| 44 | typedef signed __int32 int32_t; | ||
| 45 | typedef unsigned __int32 uint32_t; | ||
| 46 | typedef signed __int64 int64_t; | ||
| 47 | typedef unsigned __int64 uint64_t; | ||
| 48 | #ifndef _UINTPTR_T_DEFINED | ||
| 49 | #ifdef _WIN64 | ||
| 50 | typedef unsigned __int64 uintptr_t; | ||
| 51 | #else | ||
| 52 | typedef unsigned int uintptr_t; | ||
| 53 | #endif | ||
| 54 | #endif | ||
| 55 | #else | ||
| 56 | #define HAVE_STDINT_H 1 | ||
| 57 | #endif /* Visual Studio 2008 */ | ||
| 58 | #endif /* !_STDINT_H_ && !HAVE_STDINT_H */ | ||
| 59 | |||
| 60 | #ifdef __GNUC__ | ||
| 61 | #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1 | ||
| 62 | #endif | ||
| 63 | |||
| 64 | /* Enable the dummy audio driver (src/audio/dummy/\*.c) */ | ||
| 65 | #define SDL_AUDIO_DRIVER_DUMMY 1 | ||
| 66 | |||
| 67 | /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ | ||
| 68 | #define SDL_JOYSTICK_DISABLED 1 | ||
| 69 | |||
| 70 | /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */ | ||
| 71 | #define SDL_HAPTIC_DISABLED 1 | ||
| 72 | |||
| 73 | /* Enable the stub HIDAPI */ | ||
| 74 | #define SDL_HIDAPI_DISABLED 1 | ||
| 75 | |||
| 76 | /* Enable the stub process support */ | ||
| 77 | #define SDL_PROCESS_DUMMY 1 | ||
| 78 | |||
| 79 | /* Enable the stub sensor driver (src/sensor/dummy/\*.c) */ | ||
| 80 | #define SDL_SENSOR_DISABLED 1 | ||
| 81 | |||
| 82 | /* Enable the dummy shared object loader (src/loadso/dummy/\*.c) */ | ||
| 83 | #define SDL_LOADSO_DUMMY 1 | ||
| 84 | |||
| 85 | /* Enable the stub thread support (src/thread/generic/\*.c) */ | ||
| 86 | #define SDL_THREADS_DISABLED 1 | ||
| 87 | |||
| 88 | /* Enable the dummy video driver (src/video/dummy/\*.c) */ | ||
| 89 | #define SDL_VIDEO_DRIVER_DUMMY 1 | ||
| 90 | |||
| 91 | /* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */ | ||
| 92 | #define SDL_FILESYSTEM_DUMMY 1 | ||
| 93 | #define SDL_FSOPS_DUMMY 1 | ||
| 94 | |||
| 95 | /* Enable the camera driver (src/camera/dummy/\*.c) */ | ||
| 96 | #define SDL_CAMERA_DRIVER_DUMMY 1 | ||
| 97 | |||
| 98 | /* Enable dialog subsystem */ | ||
| 99 | #define SDL_DIALOG_DUMMY 1 | ||
| 100 | |||
| 101 | #endif /* SDL_build_config_minimal_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config_windows.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_windows.h new file mode 100644 index 0000000..4427517 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_windows.h | |||
| @@ -0,0 +1,307 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_windows_h_ | ||
| 23 | #define SDL_build_config_windows_h_ | ||
| 24 | #define SDL_build_config_h_ | ||
| 25 | |||
| 26 | #include <SDL3/SDL_platform_defines.h> | ||
| 27 | |||
| 28 | /* winsdkver.h defines _WIN32_MAXVER for SDK version detection. It is present since at least the Windows 7 SDK, | ||
| 29 | * but out of caution we'll only use it if the compiler supports __has_include() to confirm its presence. | ||
| 30 | * If your compiler doesn't support __has_include() but you have winsdkver.h, define HAVE_WINSDKVER_H. */ | ||
| 31 | #if !defined(HAVE_WINSDKVER_H) && defined(__has_include) | ||
| 32 | #if __has_include(<winsdkver.h>) | ||
| 33 | #define HAVE_WINSDKVER_H 1 | ||
| 34 | #endif | ||
| 35 | #endif | ||
| 36 | |||
| 37 | #ifdef HAVE_WINSDKVER_H | ||
| 38 | #include <winsdkver.h> | ||
| 39 | #endif | ||
| 40 | |||
| 41 | /* sdkddkver.h defines more specific SDK version numbers. This is needed because older versions of the | ||
| 42 | * Windows 10 SDK have broken declarations for the C API for DirectX 12. */ | ||
| 43 | #if !defined(HAVE_SDKDDKVER_H) && defined(__has_include) | ||
| 44 | #if __has_include(<sdkddkver.h>) | ||
| 45 | #define HAVE_SDKDDKVER_H 1 | ||
| 46 | #endif | ||
| 47 | #endif | ||
| 48 | |||
| 49 | #ifdef HAVE_SDKDDKVER_H | ||
| 50 | #include <sdkddkver.h> | ||
| 51 | #endif | ||
| 52 | |||
| 53 | /* This is a set of defines to configure the SDL features */ | ||
| 54 | |||
| 55 | #if !defined(HAVE_STDINT_H) && !defined(_STDINT_H_) | ||
| 56 | /* Most everything except Visual Studio 2008 and earlier has stdint.h now */ | ||
| 57 | #if defined(_MSC_VER) && (_MSC_VER < 1600) | ||
| 58 | typedef signed __int8 int8_t; | ||
| 59 | typedef unsigned __int8 uint8_t; | ||
| 60 | typedef signed __int16 int16_t; | ||
| 61 | typedef unsigned __int16 uint16_t; | ||
| 62 | typedef signed __int32 int32_t; | ||
| 63 | typedef unsigned __int32 uint32_t; | ||
| 64 | typedef signed __int64 int64_t; | ||
| 65 | typedef unsigned __int64 uint64_t; | ||
| 66 | #ifndef _UINTPTR_T_DEFINED | ||
| 67 | #ifdef _WIN64 | ||
| 68 | typedef unsigned __int64 uintptr_t; | ||
| 69 | #else | ||
| 70 | typedef unsigned int uintptr_t; | ||
| 71 | #endif | ||
| 72 | #endif | ||
| 73 | #else | ||
| 74 | #define HAVE_STDINT_H 1 | ||
| 75 | #endif /* Visual Studio 2008 */ | ||
| 76 | #endif /* !_STDINT_H_ && !HAVE_STDINT_H */ | ||
| 77 | |||
| 78 | #ifdef __clang__ | ||
| 79 | # define HAVE_GCC_ATOMICS 1 | ||
| 80 | #endif | ||
| 81 | |||
| 82 | #define HAVE_DDRAW_H 1 | ||
| 83 | #define HAVE_DINPUT_H 1 | ||
| 84 | #define HAVE_DSOUND_H 1 | ||
| 85 | #define HAVE_DXGI_H 1 | ||
| 86 | #define HAVE_XINPUT_H 1 | ||
| 87 | #if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0A00 /* Windows 10 SDK */ | ||
| 88 | #define HAVE_DXGI1_6_H 1 | ||
| 89 | #define HAVE_WINDOWS_GAMING_INPUT_H 1 | ||
| 90 | #endif | ||
| 91 | #if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0602 /* Windows 8 SDK */ | ||
| 92 | #define HAVE_D3D11_H 1 | ||
| 93 | #define HAVE_ROAPI_H 1 | ||
| 94 | #endif | ||
| 95 | #if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0603 /* Windows 8.1 SDK */ | ||
| 96 | #define HAVE_SHELLSCALINGAPI_H 1 | ||
| 97 | #endif | ||
| 98 | #define HAVE_MMDEVICEAPI_H 1 | ||
| 99 | #define HAVE_AUDIOCLIENT_H 1 | ||
| 100 | #define HAVE_TPCSHRD_H 1 | ||
| 101 | #define HAVE_SENSORSAPI_H 1 | ||
| 102 | #if defined(__has_include) && __has_include(<gameinput.h>) | ||
| 103 | #define HAVE_GAMEINPUT_H 1 | ||
| 104 | #endif | ||
| 105 | #if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600) | ||
| 106 | #elif defined(__has_include) && (defined(__i386__) || defined(__x86_64)) | ||
| 107 | # if !__has_include(<immintrin.h>) | ||
| 108 | # define SDL_DISABLE_AVX 1 | ||
| 109 | # endif | ||
| 110 | #else | ||
| 111 | # define SDL_DISABLE_AVX 1 | ||
| 112 | #endif | ||
| 113 | |||
| 114 | /* This can be disabled to avoid C runtime dependencies and manifest requirements */ | ||
| 115 | #ifndef HAVE_LIBC | ||
| 116 | #define HAVE_LIBC 1 | ||
| 117 | #endif | ||
| 118 | |||
| 119 | #if HAVE_LIBC | ||
| 120 | /* Useful headers */ | ||
| 121 | #define HAVE_FLOAT_H 1 | ||
| 122 | #define HAVE_LIMITS_H 1 | ||
| 123 | #define HAVE_MATH_H 1 | ||
| 124 | #define HAVE_SIGNAL_H 1 | ||
| 125 | #define HAVE_STDARG_H 1 | ||
| 126 | #define HAVE_STDDEF_H 1 | ||
| 127 | #define HAVE_STDIO_H 1 | ||
| 128 | #define HAVE_STDLIB_H 1 | ||
| 129 | #define HAVE_STRING_H 1 | ||
| 130 | #define HAVE_WCHAR_H 1 | ||
| 131 | |||
| 132 | /* C library functions */ | ||
| 133 | #define HAVE_MALLOC 1 | ||
| 134 | #define HAVE_ABS 1 | ||
| 135 | #define HAVE_MEMSET 1 | ||
| 136 | #define HAVE_MEMCPY 1 | ||
| 137 | #define HAVE_MEMMOVE 1 | ||
| 138 | #define HAVE_MEMCMP 1 | ||
| 139 | #define HAVE_STRLEN 1 | ||
| 140 | #define HAVE__STRREV 1 | ||
| 141 | #define HAVE_STRCHR 1 | ||
| 142 | #define HAVE_STRRCHR 1 | ||
| 143 | #define HAVE_STRSTR 1 | ||
| 144 | /* #undef HAVE_STRTOK_R */ | ||
| 145 | /* These functions have security warnings, so we won't use them */ | ||
| 146 | /* #undef HAVE__LTOA */ | ||
| 147 | /* #undef HAVE__ULTOA */ | ||
| 148 | #define HAVE_STRTOL 1 | ||
| 149 | #define HAVE_STRTOUL 1 | ||
| 150 | #define HAVE_STRTOD 1 | ||
| 151 | #define HAVE_ATOI 1 | ||
| 152 | #define HAVE_ATOF 1 | ||
| 153 | #define HAVE_STRCMP 1 | ||
| 154 | #define HAVE_STRNCMP 1 | ||
| 155 | #define HAVE_STRPBRK 1 | ||
| 156 | #define HAVE_VSSCANF 1 | ||
| 157 | #define HAVE_VSNPRINTF 1 | ||
| 158 | #define HAVE_ACOS 1 | ||
| 159 | #define HAVE_ASIN 1 | ||
| 160 | #define HAVE_ATAN 1 | ||
| 161 | #define HAVE_ATAN2 1 | ||
| 162 | #define HAVE_CEIL 1 | ||
| 163 | #define HAVE_COS 1 | ||
| 164 | #define HAVE_EXP 1 | ||
| 165 | #define HAVE_FABS 1 | ||
| 166 | #define HAVE_FLOOR 1 | ||
| 167 | #define HAVE_FMOD 1 | ||
| 168 | #define HAVE_ISINF 1 | ||
| 169 | #define HAVE_ISINF_FLOAT_MACRO 1 | ||
| 170 | #define HAVE_ISNAN 1 | ||
| 171 | #define HAVE_ISNAN_FLOAT_MACRO 1 | ||
| 172 | #define HAVE_LOG 1 | ||
| 173 | #define HAVE_LOG10 1 | ||
| 174 | #define HAVE_POW 1 | ||
| 175 | #define HAVE_SIN 1 | ||
| 176 | #define HAVE_SQRT 1 | ||
| 177 | #define HAVE_TAN 1 | ||
| 178 | #define HAVE_ACOSF 1 | ||
| 179 | #define HAVE_ASINF 1 | ||
| 180 | #define HAVE_ATANF 1 | ||
| 181 | #define HAVE_ATAN2F 1 | ||
| 182 | #define HAVE_CEILF 1 | ||
| 183 | #define HAVE__COPYSIGN 1 | ||
| 184 | #define HAVE_COSF 1 | ||
| 185 | #define HAVE_EXPF 1 | ||
| 186 | #define HAVE_FABSF 1 | ||
| 187 | #define HAVE_FLOORF 1 | ||
| 188 | #define HAVE_FMODF 1 | ||
| 189 | #define HAVE_LOGF 1 | ||
| 190 | #define HAVE_LOG10F 1 | ||
| 191 | #define HAVE_POWF 1 | ||
| 192 | #define HAVE_SINF 1 | ||
| 193 | #define HAVE_SQRTF 1 | ||
| 194 | #define HAVE_TANF 1 | ||
| 195 | #ifdef _MSC_VER | ||
| 196 | /* These functions were added with the VC++ 2013 C runtime library */ | ||
| 197 | #if _MSC_VER >= 1800 | ||
| 198 | #define HAVE_STRTOLL 1 | ||
| 199 | #define HAVE_STRTOULL 1 | ||
| 200 | #define HAVE_VSSCANF 1 | ||
| 201 | #define HAVE_LROUND 1 | ||
| 202 | #define HAVE_LROUNDF 1 | ||
| 203 | #define HAVE_ROUND 1 | ||
| 204 | #define HAVE_ROUNDF 1 | ||
| 205 | #define HAVE_SCALBN 1 | ||
| 206 | #define HAVE_SCALBNF 1 | ||
| 207 | #define HAVE_TRUNC 1 | ||
| 208 | #define HAVE_TRUNCF 1 | ||
| 209 | #endif | ||
| 210 | /* This function is available with at least the VC++ 2008 C runtime library */ | ||
| 211 | #if _MSC_VER >= 1400 | ||
| 212 | #define HAVE__FSEEKI64 1 | ||
| 213 | #endif | ||
| 214 | #endif /* _MSC_VER */ | ||
| 215 | #else | ||
| 216 | #define HAVE_STDARG_H 1 | ||
| 217 | #define HAVE_STDDEF_H 1 | ||
| 218 | #endif | ||
| 219 | |||
| 220 | /* Enable various audio drivers */ | ||
| 221 | #if defined(HAVE_MMDEVICEAPI_H) && defined(HAVE_AUDIOCLIENT_H) | ||
| 222 | #define SDL_AUDIO_DRIVER_WASAPI 1 | ||
| 223 | #endif | ||
| 224 | #define SDL_AUDIO_DRIVER_DSOUND 1 | ||
| 225 | #define SDL_AUDIO_DRIVER_DISK 1 | ||
| 226 | #define SDL_AUDIO_DRIVER_DUMMY 1 | ||
| 227 | |||
| 228 | /* Enable various input drivers */ | ||
| 229 | #define SDL_JOYSTICK_DINPUT 1 | ||
| 230 | #ifdef HAVE_GAMEINPUT_H | ||
| 231 | #define SDL_JOYSTICK_GAMEINPUT 1 | ||
| 232 | #endif | ||
| 233 | #define SDL_JOYSTICK_HIDAPI 1 | ||
| 234 | #define SDL_JOYSTICK_RAWINPUT 1 | ||
| 235 | #define SDL_JOYSTICK_VIRTUAL 1 | ||
| 236 | #ifdef HAVE_WINDOWS_GAMING_INPUT_H | ||
| 237 | #define SDL_JOYSTICK_WGI 1 | ||
| 238 | #endif | ||
| 239 | #define SDL_JOYSTICK_XINPUT 1 | ||
| 240 | #define SDL_HAPTIC_DINPUT 1 | ||
| 241 | |||
| 242 | /* Enable various process implementations */ | ||
| 243 | #define SDL_PROCESS_WINDOWS 1 | ||
| 244 | |||
| 245 | /* Enable the sensor driver */ | ||
| 246 | #ifdef HAVE_SENSORSAPI_H | ||
| 247 | #define SDL_SENSOR_WINDOWS 1 | ||
| 248 | #else | ||
| 249 | #define SDL_SENSOR_DUMMY 1 | ||
| 250 | #endif | ||
| 251 | |||
| 252 | /* Enable various shared object loading systems */ | ||
| 253 | #define SDL_LOADSO_WINDOWS 1 | ||
| 254 | |||
| 255 | /* Enable various threading systems */ | ||
| 256 | #define SDL_THREAD_GENERIC_COND_SUFFIX 1 | ||
| 257 | #define SDL_THREAD_GENERIC_RWLOCK_SUFFIX 1 | ||
| 258 | #define SDL_THREAD_WINDOWS 1 | ||
| 259 | |||
| 260 | /* Enable RTC system */ | ||
| 261 | #define SDL_TIME_WINDOWS 1 | ||
| 262 | |||
| 263 | /* Enable various timer systems */ | ||
| 264 | #define SDL_TIMER_WINDOWS 1 | ||
| 265 | |||
| 266 | /* Enable various video drivers */ | ||
| 267 | #define SDL_VIDEO_DRIVER_DUMMY 1 | ||
| 268 | #define SDL_VIDEO_DRIVER_OFFSCREEN 1 | ||
| 269 | #define SDL_VIDEO_DRIVER_WINDOWS 1 | ||
| 270 | #define SDL_VIDEO_RENDER_D3D 1 | ||
| 271 | #ifdef HAVE_D3D11_H | ||
| 272 | #define SDL_VIDEO_RENDER_D3D11 1 | ||
| 273 | #endif | ||
| 274 | #define SDL_VIDEO_RENDER_D3D12 1 | ||
| 275 | |||
| 276 | /* Enable OpenGL support */ | ||
| 277 | #define SDL_VIDEO_OPENGL 1 | ||
| 278 | #define SDL_VIDEO_OPENGL_WGL 1 | ||
| 279 | #define SDL_VIDEO_RENDER_OGL 1 | ||
| 280 | #define SDL_VIDEO_RENDER_OGL_ES2 1 | ||
| 281 | #define SDL_VIDEO_OPENGL_ES2 1 | ||
| 282 | #define SDL_VIDEO_OPENGL_EGL 1 | ||
| 283 | |||
| 284 | /* Enable Vulkan support */ | ||
| 285 | #define SDL_VIDEO_VULKAN 1 | ||
| 286 | #define SDL_VIDEO_RENDER_VULKAN 1 | ||
| 287 | |||
| 288 | /* Enable GPU support */ | ||
| 289 | #ifdef HAVE_D3D11_H | ||
| 290 | #define SDL_GPU_D3D11 1 | ||
| 291 | #endif | ||
| 292 | #define SDL_GPU_D3D12 1 | ||
| 293 | #define SDL_GPU_VULKAN 1 | ||
| 294 | #define SDL_VIDEO_RENDER_GPU 1 | ||
| 295 | |||
| 296 | /* Enable system power support */ | ||
| 297 | #define SDL_POWER_WINDOWS 1 | ||
| 298 | |||
| 299 | /* Enable filesystem support */ | ||
| 300 | #define SDL_FILESYSTEM_WINDOWS 1 | ||
| 301 | #define SDL_FSOPS_WINDOWS 1 | ||
| 302 | |||
| 303 | /* Enable the camera driver */ | ||
| 304 | #define SDL_CAMERA_DRIVER_MEDIAFOUNDATION 1 | ||
| 305 | #define SDL_CAMERA_DRIVER_DUMMY 1 | ||
| 306 | |||
| 307 | #endif /* SDL_build_config_windows_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config_wingdk.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_wingdk.h new file mode 100644 index 0000000..502eb92 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_wingdk.h | |||
| @@ -0,0 +1,234 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_wingdk_h_ | ||
| 23 | #define SDL_build_config_wingdk_h_ | ||
| 24 | #define SDL_build_config_h_ | ||
| 25 | |||
| 26 | #include <SDL3/SDL_platform_defines.h> | ||
| 27 | |||
| 28 | /* Windows GDK does not need Windows SDK version checks because it requires | ||
| 29 | * a recent version of the Windows 10 SDK. */ | ||
| 30 | |||
| 31 | #ifdef __clang__ | ||
| 32 | # define HAVE_GCC_ATOMICS 1 | ||
| 33 | #endif | ||
| 34 | |||
| 35 | #define HAVE_DDRAW_H 1 | ||
| 36 | #define HAVE_DINPUT_H 1 | ||
| 37 | #define HAVE_DSOUND_H 1 | ||
| 38 | /* No SDK version checks needed for these because the SDK has to be new. */ | ||
| 39 | #define HAVE_DXGI_H 1 | ||
| 40 | #define HAVE_DXGI1_6_H 1 | ||
| 41 | #define HAVE_XINPUT_H 1 | ||
| 42 | #define HAVE_WINDOWS_GAMING_INPUT_H 1 | ||
| 43 | #define HAVE_D3D11_H 1 | ||
| 44 | #define HAVE_ROAPI_H 1 | ||
| 45 | #define HAVE_SHELLSCALINGAPI_H 1 | ||
| 46 | #define HAVE_MMDEVICEAPI_H 1 | ||
| 47 | #define HAVE_AUDIOCLIENT_H 1 | ||
| 48 | #define HAVE_TPCSHRD_H 1 | ||
| 49 | #define HAVE_SENSORSAPI_H 1 | ||
| 50 | #define HAVE_GAMEINPUT_H 1 | ||
| 51 | #if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600) | ||
| 52 | #elif defined(__has_include) && (defined(__i386__) || defined(__x86_64)) | ||
| 53 | # if !__has_include(<immintrin.h>) | ||
| 54 | # define SDL_DISABLE_AVX 1 | ||
| 55 | # endif | ||
| 56 | #else | ||
| 57 | # define SDL_DISABLE_AVX 1 | ||
| 58 | #endif | ||
| 59 | |||
| 60 | /* Useful headers */ | ||
| 61 | #define HAVE_FLOAT_H 1 | ||
| 62 | #define HAVE_LIMITS_H 1 | ||
| 63 | #define HAVE_MATH_H 1 | ||
| 64 | #define HAVE_SIGNAL_H 1 | ||
| 65 | #define HAVE_STDARG_H 1 | ||
| 66 | #define HAVE_STDDEF_H 1 | ||
| 67 | #define HAVE_STDINT_H 1 | ||
| 68 | #define HAVE_STDIO_H 1 | ||
| 69 | #define HAVE_STDLIB_H 1 | ||
| 70 | #define HAVE_STRING_H 1 | ||
| 71 | #define HAVE_WCHAR_H 1 | ||
| 72 | |||
| 73 | /* C library functions */ | ||
| 74 | #define HAVE_LIBC 1 | ||
| 75 | #define HAVE_MALLOC 1 | ||
| 76 | #define HAVE_ABS 1 | ||
| 77 | #define HAVE_MEMSET 1 | ||
| 78 | #define HAVE_MEMCPY 1 | ||
| 79 | #define HAVE_MEMMOVE 1 | ||
| 80 | #define HAVE_MEMCMP 1 | ||
| 81 | #define HAVE_STRLEN 1 | ||
| 82 | #define HAVE__STRREV 1 | ||
| 83 | #define HAVE_STRCHR 1 | ||
| 84 | #define HAVE_STRRCHR 1 | ||
| 85 | #define HAVE_STRSTR 1 | ||
| 86 | /* #undef HAVE_STRTOK_R */ | ||
| 87 | /* These functions have security warnings, so we won't use them */ | ||
| 88 | /* #undef HAVE__LTOA */ | ||
| 89 | /* #undef HAVE__ULTOA */ | ||
| 90 | #define HAVE_STRTOL 1 | ||
| 91 | #define HAVE_STRTOUL 1 | ||
| 92 | #define HAVE_STRTOD 1 | ||
| 93 | #define HAVE_ATOI 1 | ||
| 94 | #define HAVE_ATOF 1 | ||
| 95 | #define HAVE_STRCMP 1 | ||
| 96 | #define HAVE_STRNCMP 1 | ||
| 97 | #define HAVE_ACOS 1 | ||
| 98 | #define HAVE_ASIN 1 | ||
| 99 | #define HAVE_ATAN 1 | ||
| 100 | #define HAVE_ATAN2 1 | ||
| 101 | #define HAVE_CEIL 1 | ||
| 102 | #define HAVE_COS 1 | ||
| 103 | #define HAVE_EXP 1 | ||
| 104 | #define HAVE_FABS 1 | ||
| 105 | #define HAVE_FLOOR 1 | ||
| 106 | #define HAVE_FMOD 1 | ||
| 107 | #define HAVE_ISINF 1 | ||
| 108 | #define HAVE_ISINF_FLOAT_MACRO 1 | ||
| 109 | #define HAVE_ISNAN 1 | ||
| 110 | #define HAVE_ISNAN_FLOAT_MACRO 1 | ||
| 111 | #define HAVE_LOG 1 | ||
| 112 | #define HAVE_LOG10 1 | ||
| 113 | #define HAVE_POW 1 | ||
| 114 | #define HAVE_SIN 1 | ||
| 115 | #define HAVE_SQRT 1 | ||
| 116 | #define HAVE_TAN 1 | ||
| 117 | #define HAVE_ACOSF 1 | ||
| 118 | #define HAVE_ASINF 1 | ||
| 119 | #define HAVE_ATANF 1 | ||
| 120 | #define HAVE_ATAN2F 1 | ||
| 121 | #define HAVE_CEILF 1 | ||
| 122 | #define HAVE__COPYSIGN 1 | ||
| 123 | #define HAVE_COSF 1 | ||
| 124 | #define HAVE_EXPF 1 | ||
| 125 | #define HAVE_FABSF 1 | ||
| 126 | #define HAVE_FLOORF 1 | ||
| 127 | #define HAVE_FMODF 1 | ||
| 128 | #define HAVE_LOGF 1 | ||
| 129 | #define HAVE_LOG10F 1 | ||
| 130 | #define HAVE_POWF 1 | ||
| 131 | #define HAVE_SINF 1 | ||
| 132 | #define HAVE_SQRTF 1 | ||
| 133 | #define HAVE_TANF 1 | ||
| 134 | #ifdef _MSC_VER | ||
| 135 | /* These functions were added with the VC++ 2013 C runtime library */ | ||
| 136 | #define HAVE_STRTOLL 1 | ||
| 137 | #define HAVE_STRTOULL 1 | ||
| 138 | #define HAVE_VSSCANF 1 | ||
| 139 | #define HAVE_LROUND 1 | ||
| 140 | #define HAVE_LROUNDF 1 | ||
| 141 | #define HAVE_ROUND 1 | ||
| 142 | #define HAVE_ROUNDF 1 | ||
| 143 | #define HAVE_SCALBN 1 | ||
| 144 | #define HAVE_SCALBNF 1 | ||
| 145 | #define HAVE_TRUNC 1 | ||
| 146 | #define HAVE_TRUNCF 1 | ||
| 147 | #define HAVE__FSEEKI64 1 | ||
| 148 | #endif /* _MSC_VER */ | ||
| 149 | |||
| 150 | /* Enable various audio drivers */ | ||
| 151 | #if defined(HAVE_MMDEVICEAPI_H) && defined(HAVE_AUDIOCLIENT_H) | ||
| 152 | #define SDL_AUDIO_DRIVER_WASAPI 1 | ||
| 153 | #endif | ||
| 154 | #define SDL_AUDIO_DRIVER_DSOUND 1 | ||
| 155 | #define SDL_AUDIO_DRIVER_DISK 1 | ||
| 156 | #define SDL_AUDIO_DRIVER_DUMMY 1 | ||
| 157 | |||
| 158 | /* Enable various input drivers */ | ||
| 159 | #define SDL_JOYSTICK_DINPUT 1 | ||
| 160 | #define SDL_JOYSTICK_GAMEINPUT 1 | ||
| 161 | #define SDL_JOYSTICK_HIDAPI 1 | ||
| 162 | #define SDL_JOYSTICK_RAWINPUT 1 | ||
| 163 | #define SDL_JOYSTICK_VIRTUAL 1 | ||
| 164 | #define SDL_JOYSTICK_WGI 1 | ||
| 165 | #define SDL_JOYSTICK_XINPUT 1 | ||
| 166 | #define SDL_HAPTIC_DINPUT 1 | ||
| 167 | |||
| 168 | /* Enable various process implementations */ | ||
| 169 | #define SDL_PROCESS_WINDOWS 1 | ||
| 170 | |||
| 171 | /* Enable the sensor driver */ | ||
| 172 | #ifdef HAVE_SENSORSAPI_H | ||
| 173 | #define SDL_SENSOR_WINDOWS 1 | ||
| 174 | #else | ||
| 175 | #define SDL_SENSOR_DUMMY 1 | ||
| 176 | #endif | ||
| 177 | |||
| 178 | /* Enable various shared object loading systems */ | ||
| 179 | #define SDL_LOADSO_WINDOWS 1 | ||
| 180 | |||
| 181 | /* Enable various threading systems */ | ||
| 182 | #define SDL_THREAD_GENERIC_COND_SUFFIX 1 | ||
| 183 | #define SDL_THREAD_GENERIC_RWLOCK_SUFFIX 1 | ||
| 184 | #define SDL_THREAD_WINDOWS 1 | ||
| 185 | |||
| 186 | /* Enable various time systems */ | ||
| 187 | #define SDL_TIME_WINDOWS 1 | ||
| 188 | |||
| 189 | /* Enable various timer systems */ | ||
| 190 | #define SDL_TIMER_WINDOWS 1 | ||
| 191 | |||
| 192 | /* Enable various video drivers */ | ||
| 193 | #define SDL_VIDEO_DRIVER_DUMMY 1 | ||
| 194 | #define SDL_VIDEO_DRIVER_WINDOWS 1 | ||
| 195 | #define SDL_VIDEO_RENDER_D3D 1 | ||
| 196 | #ifdef HAVE_D3D11_H | ||
| 197 | #define SDL_VIDEO_RENDER_D3D11 1 | ||
| 198 | #endif | ||
| 199 | #define SDL_VIDEO_RENDER_D3D12 1 | ||
| 200 | |||
| 201 | /* Enable OpenGL support */ | ||
| 202 | #define SDL_VIDEO_OPENGL 1 | ||
| 203 | #define SDL_VIDEO_OPENGL_WGL 1 | ||
| 204 | #define SDL_VIDEO_RENDER_OGL 1 | ||
| 205 | #define SDL_VIDEO_RENDER_OGL_ES2 1 | ||
| 206 | #define SDL_VIDEO_OPENGL_ES2 1 | ||
| 207 | #define SDL_VIDEO_OPENGL_EGL 1 | ||
| 208 | |||
| 209 | /* Enable Vulkan support */ | ||
| 210 | #define SDL_VIDEO_VULKAN 1 | ||
| 211 | #define SDL_VIDEO_RENDER_VULKAN 1 | ||
| 212 | |||
| 213 | /* Enable GPU support */ | ||
| 214 | #ifdef HAVE_D3D11_H | ||
| 215 | #define SDL_GPU_D3D11 1 | ||
| 216 | #endif | ||
| 217 | #define SDL_GPU_D3D12 1 | ||
| 218 | #define SDL_GPU_VULKAN 1 | ||
| 219 | #define SDL_VIDEO_RENDER_GPU 1 | ||
| 220 | |||
| 221 | /* Enable system power support */ | ||
| 222 | #define SDL_POWER_WINDOWS 1 | ||
| 223 | |||
| 224 | /* Enable filesystem support */ | ||
| 225 | #define SDL_FILESYSTEM_WINDOWS 1 | ||
| 226 | #define SDL_FSOPS_WINDOWS 1 | ||
| 227 | |||
| 228 | /* Enable the camera driver (src/camera/dummy/\*.c) */ /* !!! FIXME */ | ||
| 229 | #define SDL_CAMERA_DRIVER_DUMMY 1 | ||
| 230 | |||
| 231 | /* Use the (inferior) GDK text input method for GDK platforms */ | ||
| 232 | /*#define SDL_GDK_TEXTINPUT 1*/ | ||
| 233 | |||
| 234 | #endif /* SDL_build_config_wingdk_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_build_config_xbox.h b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_xbox.h new file mode 100644 index 0000000..5834e71 --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_build_config_xbox.h | |||
| @@ -0,0 +1,223 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef SDL_build_config_wingdk_h_ | ||
| 23 | #define SDL_build_config_wingdk_h_ | ||
| 24 | #define SDL_build_config_h_ | ||
| 25 | |||
| 26 | #include <SDL3/SDL_platform_defines.h> | ||
| 27 | |||
| 28 | /* Windows GDK does not need Windows SDK version checks because it requires | ||
| 29 | * a recent version of the Windows 10 SDK. */ | ||
| 30 | |||
| 31 | #ifdef __clang__ | ||
| 32 | # define HAVE_GCC_ATOMICS 1 | ||
| 33 | #endif | ||
| 34 | |||
| 35 | /*#define HAVE_DDRAW_H 1*/ | ||
| 36 | /*#define HAVE_DINPUT_H 1*/ | ||
| 37 | /*#define HAVE_DSOUND_H 1*/ | ||
| 38 | /* No SDK version checks needed for these because the SDK has to be new. */ | ||
| 39 | /* #define HAVE_DXGI_H 1 */ | ||
| 40 | #define HAVE_XINPUT_H 1 | ||
| 41 | /*#define HAVE_WINDOWS_GAMING_INPUT_H 1*/ | ||
| 42 | /*#define HAVE_ROAPI_H 1*/ | ||
| 43 | /*#define HAVE_SHELLSCALINGAPI_H 1*/ | ||
| 44 | #define HAVE_MMDEVICEAPI_H 1 | ||
| 45 | #define HAVE_AUDIOCLIENT_H 1 | ||
| 46 | /*#define HAVE_TPCSHRD_H 1*/ | ||
| 47 | /*#define HAVE_SENSORSAPI_H 1*/ | ||
| 48 | #define HAVE_GAMEINPUT_H 1 | ||
| 49 | #if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600) | ||
| 50 | #elif defined(__has_include) && (defined(__i386__) || defined(__x86_64)) | ||
| 51 | # if !__has_include(<immintrin.h>) | ||
| 52 | # define SDL_DISABLE_AVX 1 | ||
| 53 | # endif | ||
| 54 | #else | ||
| 55 | # define SDL_DISABLE_AVX 1 | ||
| 56 | #endif | ||
| 57 | |||
| 58 | /* Useful headers */ | ||
| 59 | #define HAVE_FLOAT_H 1 | ||
| 60 | #define HAVE_LIMITS_H 1 | ||
| 61 | #define HAVE_MATH_H 1 | ||
| 62 | #define HAVE_SIGNAL_H 1 | ||
| 63 | #define HAVE_STDARG_H 1 | ||
| 64 | #define HAVE_STDDEF_H 1 | ||
| 65 | #define HAVE_STDINT_H 1 | ||
| 66 | #define HAVE_STDIO_H 1 | ||
| 67 | #define HAVE_STDLIB_H 1 | ||
| 68 | #define HAVE_STRING_H 1 | ||
| 69 | #define HAVE_WCHAR_H 1 | ||
| 70 | |||
| 71 | /* C library functions */ | ||
| 72 | #define HAVE_LIBC 1 | ||
| 73 | #define HAVE_MALLOC 1 | ||
| 74 | #define HAVE_ABS 1 | ||
| 75 | #define HAVE_MEMSET 1 | ||
| 76 | #define HAVE_MEMCPY 1 | ||
| 77 | #define HAVE_MEMMOVE 1 | ||
| 78 | #define HAVE_MEMCMP 1 | ||
| 79 | #define HAVE_STRLEN 1 | ||
| 80 | #define HAVE_STRPBRK 1 | ||
| 81 | #define HAVE__STRREV 1 | ||
| 82 | #define HAVE_STRCHR 1 | ||
| 83 | #define HAVE_STRRCHR 1 | ||
| 84 | #define HAVE_STRSTR 1 | ||
| 85 | /* #undef HAVE_STRTOK_R */ | ||
| 86 | /* These functions have security warnings, so we won't use them */ | ||
| 87 | /* #undef HAVE__LTOA */ | ||
| 88 | /* #undef HAVE__ULTOA */ | ||
| 89 | #define HAVE_STRTOL 1 | ||
| 90 | #define HAVE_STRTOUL 1 | ||
| 91 | #define HAVE_STRTOD 1 | ||
| 92 | #define HAVE_ATOI 1 | ||
| 93 | #define HAVE_ATOF 1 | ||
| 94 | #define HAVE_STRCMP 1 | ||
| 95 | #define HAVE_STRNCMP 1 | ||
| 96 | #define HAVE_ACOS 1 | ||
| 97 | #define HAVE_ASIN 1 | ||
| 98 | #define HAVE_ATAN 1 | ||
| 99 | #define HAVE_ATAN2 1 | ||
| 100 | #define HAVE_CEIL 1 | ||
| 101 | #define HAVE_COS 1 | ||
| 102 | #define HAVE_EXP 1 | ||
| 103 | #define HAVE_FABS 1 | ||
| 104 | #define HAVE_FLOOR 1 | ||
| 105 | #define HAVE_FMOD 1 | ||
| 106 | #define HAVE_ISINF 1 | ||
| 107 | #define HAVE_ISINF_FLOAT_MACRO 1 | ||
| 108 | #define HAVE_ISNAN 1 | ||
| 109 | #define HAVE_ISNAN_FLOAT_MACRO 1 | ||
| 110 | #define HAVE_LOG 1 | ||
| 111 | #define HAVE_LOG10 1 | ||
| 112 | #define HAVE_POW 1 | ||
| 113 | #define HAVE_SIN 1 | ||
| 114 | #define HAVE_SQRT 1 | ||
| 115 | #define HAVE_TAN 1 | ||
| 116 | #define HAVE_ACOSF 1 | ||
| 117 | #define HAVE_ASINF 1 | ||
| 118 | #define HAVE_ATANF 1 | ||
| 119 | #define HAVE_ATAN2F 1 | ||
| 120 | #define HAVE_CEILF 1 | ||
| 121 | #define HAVE__COPYSIGN 1 | ||
| 122 | #define HAVE_COSF 1 | ||
| 123 | #define HAVE_EXPF 1 | ||
| 124 | #define HAVE_FABSF 1 | ||
| 125 | #define HAVE_FLOORF 1 | ||
| 126 | #define HAVE_FMODF 1 | ||
| 127 | #define HAVE_LOGF 1 | ||
| 128 | #define HAVE_LOG10F 1 | ||
| 129 | #define HAVE_POWF 1 | ||
| 130 | #define HAVE_SINF 1 | ||
| 131 | #define HAVE_SQRTF 1 | ||
| 132 | #define HAVE_TANF 1 | ||
| 133 | #ifdef _MSC_VER | ||
| 134 | /* These functions were added with the VC++ 2013 C runtime library */ | ||
| 135 | #define HAVE_STRTOLL 1 | ||
| 136 | #define HAVE_STRTOULL 1 | ||
| 137 | #define HAVE_VSSCANF 1 | ||
| 138 | #define HAVE_LROUND 1 | ||
| 139 | #define HAVE_LROUNDF 1 | ||
| 140 | #define HAVE_ROUND 1 | ||
| 141 | #define HAVE_ROUNDF 1 | ||
| 142 | #define HAVE_SCALBN 1 | ||
| 143 | #define HAVE_SCALBNF 1 | ||
| 144 | #define HAVE_TRUNC 1 | ||
| 145 | #define HAVE_TRUNCF 1 | ||
| 146 | #define HAVE__FSEEKI64 1 | ||
| 147 | #endif /* _MSC_VER */ | ||
| 148 | |||
| 149 | /* Enable various audio drivers */ | ||
| 150 | #if defined(HAVE_MMDEVICEAPI_H) && defined(HAVE_AUDIOCLIENT_H) | ||
| 151 | #define SDL_AUDIO_DRIVER_WASAPI 1 | ||
| 152 | #endif | ||
| 153 | /*#define SDL_AUDIO_DRIVER_DSOUND 1*/ | ||
| 154 | #define SDL_AUDIO_DRIVER_DISK 1 | ||
| 155 | #define SDL_AUDIO_DRIVER_DUMMY 1 | ||
| 156 | |||
| 157 | /* Enable various input drivers */ | ||
| 158 | #define SDL_JOYSTICK_VIRTUAL 1 | ||
| 159 | /* This is XInputOnGameInput for GDK platforms: */ | ||
| 160 | /*#define SDL_JOYSTICK_XINPUT 1*/ | ||
| 161 | /* Native GameInput: */ | ||
| 162 | #define SDL_JOYSTICK_GAMEINPUT 1 | ||
| 163 | #define SDL_HAPTIC_DUMMY 1 | ||
| 164 | |||
| 165 | /* Enable various process implementations */ | ||
| 166 | #define SDL_PROCESS_DUMMY 1 | ||
| 167 | |||
| 168 | /* Enable the sensor driver */ | ||
| 169 | #ifdef HAVE_SENSORSAPI_H | ||
| 170 | #define SDL_SENSOR_WINDOWS 1 | ||
| 171 | #else | ||
| 172 | #define SDL_SENSOR_DUMMY 1 | ||
| 173 | #endif | ||
| 174 | |||
| 175 | /* Enable various shared object loading systems */ | ||
| 176 | #define SDL_LOADSO_WINDOWS 1 | ||
| 177 | |||
| 178 | /* Enable various threading systems */ | ||
| 179 | #define SDL_THREAD_GENERIC_COND_SUFFIX 1 | ||
| 180 | #define SDL_THREAD_GENERIC_RWLOCK_SUFFIX 1 | ||
| 181 | #define SDL_THREAD_WINDOWS 1 | ||
| 182 | |||
| 183 | /* Enable various time systems */ | ||
| 184 | #define SDL_TIME_WINDOWS 1 | ||
| 185 | |||
| 186 | /* Enable various timer systems */ | ||
| 187 | #define SDL_TIMER_WINDOWS 1 | ||
| 188 | |||
| 189 | /* Enable various video drivers */ | ||
| 190 | #define SDL_VIDEO_DRIVER_DUMMY 1 | ||
| 191 | #define SDL_VIDEO_DRIVER_WINDOWS 1 | ||
| 192 | #define SDL_VIDEO_RENDER_D3D12 1 | ||
| 193 | |||
| 194 | /* Enable OpenGL support */ | ||
| 195 | #define SDL_VIDEO_OPENGL 1 | ||
| 196 | #define SDL_VIDEO_OPENGL_WGL 1 | ||
| 197 | #define SDL_VIDEO_RENDER_OGL 1 | ||
| 198 | |||
| 199 | /* Enable GPU support */ | ||
| 200 | #define SDL_GPU_D3D12 1 | ||
| 201 | #define SDL_VIDEO_RENDER_GPU 1 | ||
| 202 | |||
| 203 | /* Enable system power support */ | ||
| 204 | /*#define SDL_POWER_WINDOWS 1*/ | ||
| 205 | #define SDL_POWER_HARDWIRED 1 | ||
| 206 | |||
| 207 | /* Enable filesystem support */ | ||
| 208 | /* #define SDL_FILESYSTEM_WINDOWS 1*/ | ||
| 209 | #define SDL_FSOPS_WINDOWS 1 | ||
| 210 | |||
| 211 | |||
| 212 | /* Disable IME as not supported yet (TODO: Xbox IME?) */ | ||
| 213 | #define SDL_DISABLE_WINDOWS_IME 1 | ||
| 214 | /* Use the (inferior) GDK text input method for GDK platforms */ | ||
| 215 | #define SDL_GDK_TEXTINPUT 1 | ||
| 216 | |||
| 217 | /* Enable the camera driver (src/camera/dummy/\*.c) */ | ||
| 218 | #define SDL_CAMERA_DRIVER_DUMMY 1 | ||
| 219 | |||
| 220 | /* Enable dialog subsystem */ | ||
| 221 | #define SDL_DIALOG_DUMMY 1 | ||
| 222 | |||
| 223 | #endif /* SDL_build_config_wingdk_h_ */ | ||
diff --git a/contrib/SDL-3.2.8/include/build_config/SDL_revision.h.cmake b/contrib/SDL-3.2.8/include/build_config/SDL_revision.h.cmake new file mode 100644 index 0000000..32b95bf --- /dev/null +++ b/contrib/SDL-3.2.8/include/build_config/SDL_revision.h.cmake | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* | ||
| 2 | Simple DirectMedia Layer | ||
| 3 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 4 | |||
| 5 | This software is provided 'as-is', without any express or implied | ||
| 6 | warranty. In no event will the authors be held liable for any damages | ||
| 7 | arising from the use of this software. | ||
| 8 | |||
| 9 | Permission is granted to anyone to use this software for any purpose, | ||
| 10 | including commercial applications, and to alter it and redistribute it | ||
| 11 | freely, subject to the following restrictions: | ||
| 12 | |||
| 13 | 1. The origin of this software must not be misrepresented; you must not | ||
| 14 | claim that you wrote the original software. If you use this software | ||
| 15 | in a product, an acknowledgment in the product documentation would be | ||
| 16 | appreciated but is not required. | ||
| 17 | 2. Altered source versions must be plainly marked as such, and must not be | ||
| 18 | misrepresented as being the original software. | ||
| 19 | 3. This notice may not be removed or altered from any source distribution. | ||
| 20 | */ | ||
| 21 | |||
| 22 | /** | ||
| 23 | * \file SDL_revision.h | ||
| 24 | * | ||
| 25 | * Header file containing the SDL revision. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #ifndef SDL_revision_h_ | ||
| 29 | #define SDL_revision_h_ | ||
| 30 | |||
| 31 | #cmakedefine SDL_VENDOR_INFO "@SDL_VENDOR_INFO@" | ||
| 32 | |||
| 33 | #ifdef SDL_VENDOR_INFO | ||
| 34 | #define SDL_REVISION "@SDL_REVISION@ (" SDL_VENDOR_INFO ")" | ||
| 35 | #else | ||
| 36 | #define SDL_REVISION "@SDL_REVISION@" | ||
| 37 | #endif | ||
| 38 | |||
| 39 | #endif /* SDL_revision_h_ */ | ||
