diff options
Diffstat (limited to 'contrib/SDL-3.2.8/build-scripts/pkg-support/msvc')
7 files changed, 265 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/Directory.Build.props b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/Directory.Build.props new file mode 100644 index 0000000..24033f4 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/Directory.Build.props | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| 3 | <ItemDefinitionGroup> | ||
| 4 | <ClCompile> | ||
| 5 | <PreprocessorDefinitions>SDL_VENDOR_INFO="libsdl.org";%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 6 | </ClCompile> | ||
| 7 | </ItemDefinitionGroup> | ||
| 8 | </Project> | ||
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/INSTALL.md.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/INSTALL.md.in new file mode 100644 index 0000000..671f524 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/INSTALL.md.in | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | |||
| 2 | # Using this package | ||
| 3 | |||
| 4 | This package contains @<@PROJECT_NAME@>@ built for Visual Studio. | ||
| 5 | |||
| 6 | To use this package, edit your project properties: | ||
| 7 | - Add the include directory to "VC++ Directories" -> "Include Directories" | ||
| 8 | - Add the lib/_arch_ directory to "VC++ Directories" -> "Library Directories" | ||
| 9 | - Add @<@PROJECT_NAME@>@.lib to Linker -> Input -> "Additional Dependencies" | ||
| 10 | - Copy lib/_arch_/@<@PROJECT_NAME@>@.dll to your project directory. | ||
| 11 | |||
| 12 | # Documentation | ||
| 13 | |||
| 14 | An API reference, tutorials, and additional documentation is available at: | ||
| 15 | |||
| 16 | https://wiki.libsdl.org/@<@PROJECT_NAME@>@ | ||
| 17 | |||
| 18 | # Example code | ||
| 19 | |||
| 20 | There are simple example programs available at: | ||
| 21 | |||
| 22 | https://examples.libsdl.org/SDL3 | ||
| 23 | |||
| 24 | # Discussions | ||
| 25 | |||
| 26 | ## Discord | ||
| 27 | |||
| 28 | You can join the official Discord server at: | ||
| 29 | |||
| 30 | https://discord.com/invite/BwpFGBWsv8 | ||
| 31 | |||
| 32 | ## Forums/mailing lists | ||
| 33 | |||
| 34 | You can join SDL development discussions at: | ||
| 35 | |||
| 36 | https://discourse.libsdl.org/ | ||
| 37 | |||
| 38 | Once you sign up, you can use the forum through the website or as a mailing list from your email client. | ||
| 39 | |||
| 40 | ## Announcement list | ||
| 41 | |||
| 42 | You can sign up for the low traffic announcement list at: | ||
| 43 | |||
| 44 | https://www.libsdl.org/mailing-list.php | ||
| 45 | |||
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/arm64/INSTALL.md.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/arm64/INSTALL.md.in new file mode 100644 index 0000000..c185171 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/arm64/INSTALL.md.in | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | |||
| 2 | # Using this package | ||
| 3 | |||
| 4 | This package contains @<@PROJECT_NAME@>@ built for arm64 Windows. | ||
| 5 | |||
| 6 | To use this package, simply replace an existing 64-bit ARM @<@PROJECT_NAME@>@.dll with the one included here. | ||
| 7 | |||
| 8 | # Development packages | ||
| 9 | |||
| 10 | If you're looking for packages with headers and libraries, you can download one of these: | ||
| 11 | - @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-VC.zip, for development using Visual Studio | ||
| 12 | - @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-mingw.zip, for development using mingw-w64 | ||
| 13 | |||
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/cmake/SDL3Config.cmake.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/cmake/SDL3Config.cmake.in new file mode 100644 index 0000000..6387376 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/cmake/SDL3Config.cmake.in | |||
| @@ -0,0 +1,135 @@ | |||
| 1 | # @<@PROJECT_NAME@>@ CMake configuration file: | ||
| 2 | # This file is meant to be placed in a cmake subfolder of @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-VC.zip | ||
| 3 | |||
| 4 | cmake_minimum_required(VERSION 3.0...3.28) | ||
| 5 | |||
| 6 | include(FeatureSummary) | ||
| 7 | set_package_properties(SDL3 PROPERTIES | ||
| 8 | URL "https://www.libsdl.org/" | ||
| 9 | DESCRIPTION "low level access to audio, keyboard, mouse, joystick, and graphics hardware" | ||
| 10 | ) | ||
| 11 | |||
| 12 | # Copied from `configure_package_config_file` | ||
| 13 | macro(set_and_check _var _file) | ||
| 14 | set(${_var} "${_file}") | ||
| 15 | if(NOT EXISTS "${_file}") | ||
| 16 | message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") | ||
| 17 | endif() | ||
| 18 | endmacro() | ||
| 19 | |||
| 20 | # Copied from `configure_package_config_file` | ||
| 21 | macro(check_required_components _NAME) | ||
| 22 | foreach(comp ${${_NAME}_FIND_COMPONENTS}) | ||
| 23 | if(NOT ${_NAME}_${comp}_FOUND) | ||
| 24 | if(${_NAME}_FIND_REQUIRED_${comp}) | ||
| 25 | set(${_NAME}_FOUND FALSE) | ||
| 26 | endif() | ||
| 27 | endif() | ||
| 28 | endforeach() | ||
| 29 | endmacro() | ||
| 30 | |||
| 31 | set(SDL3_FOUND TRUE) | ||
| 32 | |||
| 33 | if(SDL_CPU_X86) | ||
| 34 | set(_sdl_arch_subdir "x86") | ||
| 35 | elseif(SDL_CPU_X64 OR SDL_CPU_ARM64EC) | ||
| 36 | set(_sdl_arch_subdir "x64") | ||
| 37 | elseif(SDL_CPU_ARM64) | ||
| 38 | set(_sdl_arch_subdir "arm64") | ||
| 39 | else() | ||
| 40 | set(SDL3_FOUND FALSE) | ||
| 41 | return() | ||
| 42 | endif() | ||
| 43 | |||
| 44 | get_filename_component(_sdl3_prefix "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE) | ||
| 45 | set_and_check(_sdl3_prefix "${_sdl3_prefix}") | ||
| 46 | set(_sdl3_include_dirs "${_sdl3_prefix}/include") | ||
| 47 | |||
| 48 | set(_sdl3_implib "${_sdl3_prefix}/lib/${_sdl_arch_subdir}/SDL3.lib") | ||
| 49 | set(_sdl3_dll "${_sdl3_prefix}/lib/${_sdl_arch_subdir}/SDL3.dll") | ||
| 50 | set(_sdl3test_lib "${_sdl3_prefix}/lib/${_sdl_arch_subdir}/SDL3_test.lib") | ||
| 51 | |||
| 52 | unset(_sdl_arch_subdir) | ||
| 53 | unset(_sdl3_prefix) | ||
| 54 | |||
| 55 | # All targets are created, even when some might not be requested though COMPONENTS. | ||
| 56 | # This is done for compatibility with CMake generated SDL3-target.cmake files. | ||
| 57 | |||
| 58 | if(NOT TARGET SDL3::Headers) | ||
| 59 | add_library(SDL3::Headers INTERFACE IMPORTED) | ||
| 60 | set_target_properties(SDL3::Headers | ||
| 61 | PROPERTIES | ||
| 62 | INTERFACE_INCLUDE_DIRECTORIES "${_sdl3_include_dirs}" | ||
| 63 | ) | ||
| 64 | endif() | ||
| 65 | set(SDL3_Headers_FOUND TRUE) | ||
| 66 | unset(_sdl3_include_dirs) | ||
| 67 | |||
| 68 | if(EXISTS "${_sdl3_implib}" AND EXISTS "${_sdl3_dll}") | ||
| 69 | if(NOT TARGET SDL3::SDL3-shared) | ||
| 70 | add_library(SDL3::SDL3-shared SHARED IMPORTED) | ||
| 71 | set_target_properties(SDL3::SDL3-shared | ||
| 72 | PROPERTIES | ||
| 73 | INTERFACE_LINK_LIBRARIES "SDL3::Headers" | ||
| 74 | IMPORTED_IMPLIB "${_sdl3_implib}" | ||
| 75 | IMPORTED_LOCATION "${_sdl3_dll}" | ||
| 76 | COMPATIBLE_INTERFACE_BOOL "SDL3_SHARED" | ||
| 77 | INTERFACE_SDL3_SHARED "ON" | ||
| 78 | COMPATIBLE_INTERFACE_STRING "SDL_VERSION" | ||
| 79 | INTERFACE_SDL_VERSION "SDL3" | ||
| 80 | ) | ||
| 81 | endif() | ||
| 82 | set(SDL3_SDL3-shared_FOUND TRUE) | ||
| 83 | else() | ||
| 84 | set(SDL3_SDL3-shared_FOUND FALSE) | ||
| 85 | endif() | ||
| 86 | unset(_sdl3_implib) | ||
| 87 | unset(_sdl3_dll) | ||
| 88 | |||
| 89 | set(SDL3_SDL3-static_FOUND FALSE) | ||
| 90 | |||
| 91 | if(EXISTS "${_sdl3test_lib}") | ||
| 92 | if(NOT TARGET SDL3::SDL3_test) | ||
| 93 | add_library(SDL3::SDL3_test STATIC IMPORTED) | ||
| 94 | set_target_properties(SDL3::SDL3_test | ||
| 95 | PROPERTIES | ||
| 96 | INTERFACE_LINK_LIBRARIES "SDL3::Headers" | ||
| 97 | IMPORTED_LOCATION "${_sdl3test_lib}" | ||
| 98 | COMPATIBLE_INTERFACE_STRING "SDL_VERSION" | ||
| 99 | INTERFACE_SDL_VERSION "SDL3" | ||
| 100 | ) | ||
| 101 | endif() | ||
| 102 | set(SDL3_SDL3_test_FOUND TRUE) | ||
| 103 | else() | ||
| 104 | set(SDL3_SDL3_test_FOUND FALSE) | ||
| 105 | endif() | ||
| 106 | unset(_sdl3test_lib) | ||
| 107 | |||
| 108 | if(SDL3_SDL3-shared_FOUND OR SDL3_SDL3-static_FOUND) | ||
| 109 | set(SDL3_SDL3_FOUND TRUE) | ||
| 110 | endif() | ||
| 111 | |||
| 112 | function(_sdl_create_target_alias_compat NEW_TARGET TARGET) | ||
| 113 | if(CMAKE_VERSION VERSION_LESS "3.18") | ||
| 114 | # Aliasing local targets is not supported on CMake < 3.18, so make it global. | ||
| 115 | add_library(${NEW_TARGET} INTERFACE IMPORTED) | ||
| 116 | set_target_properties(${NEW_TARGET} PROPERTIES INTERFACE_LINK_LIBRARIES "${TARGET}") | ||
| 117 | else() | ||
| 118 | add_library(${NEW_TARGET} ALIAS ${TARGET}) | ||
| 119 | endif() | ||
| 120 | endfunction() | ||
| 121 | |||
| 122 | # Make sure SDL3::SDL3 always exists | ||
| 123 | if(NOT TARGET SDL3::SDL3) | ||
| 124 | if(TARGET SDL3::SDL3-shared) | ||
| 125 | _sdl_create_target_alias_compat(SDL3::SDL3 SDL3::SDL3-shared) | ||
| 126 | endif() | ||
| 127 | endif() | ||
| 128 | |||
| 129 | check_required_components(SDL3) | ||
| 130 | |||
| 131 | set(SDL3_LIBRARIES SDL3::SDL3) | ||
| 132 | set(SDL3_STATIC_LIBRARIES SDL3::SDL3-static) | ||
| 133 | set(SDL3_STATIC_PRIVATE_LIBS) | ||
| 134 | |||
| 135 | set(SDL3TEST_LIBRARY SDL3::SDL3_test) | ||
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/cmake/SDL3ConfigVersion.cmake.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/cmake/SDL3ConfigVersion.cmake.in new file mode 100644 index 0000000..82b6af0 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/cmake/SDL3ConfigVersion.cmake.in | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # @<@PROJECT_NAME@>@ CMake version configuration file: | ||
| 2 | # This file is meant to be placed in a cmake subfolder of @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-VC.zip | ||
| 3 | |||
| 4 | set(PACKAGE_VERSION "@<@PROJECT_VERSION@>@") | ||
| 5 | |||
| 6 | if(PACKAGE_FIND_VERSION_RANGE) | ||
| 7 | # Package version must be in the requested version range | ||
| 8 | if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN) | ||
| 9 | OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX) | ||
| 10 | OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX))) | ||
| 11 | set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
| 12 | else() | ||
| 13 | set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
| 14 | endif() | ||
| 15 | else() | ||
| 16 | if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) | ||
| 17 | set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
| 18 | else() | ||
| 19 | set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
| 20 | if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) | ||
| 21 | set(PACKAGE_VERSION_EXACT TRUE) | ||
| 22 | endif() | ||
| 23 | endif() | ||
| 24 | endif() | ||
| 25 | |||
| 26 | # if the using project doesn't have CMAKE_SIZEOF_VOID_P set, fail. | ||
| 27 | if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "") | ||
| 28 | set(PACKAGE_VERSION_UNSUITABLE TRUE) | ||
| 29 | endif() | ||
| 30 | |||
| 31 | include("${CMAKE_CURRENT_LIST_DIR}/sdlcpu.cmake") | ||
| 32 | SDL_DetectTargetCPUArchitectures(_detected_archs) | ||
| 33 | |||
| 34 | # check that the installed version has a compatible architecture as the one which is currently searching: | ||
| 35 | if(NOT(SDL_CPU_X86 OR SDL_CPU_X64 OR SDL_CPU_ARM64 OR SDL_CPU_ARM64EC)) | ||
| 36 | set(PACKAGE_VERSION "${PACKAGE_VERSION} (X86,X64,ARM64)") | ||
| 37 | set(PACKAGE_VERSION_UNSUITABLE TRUE) | ||
| 38 | endif() | ||
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/x64/INSTALL.md.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/x64/INSTALL.md.in new file mode 100644 index 0000000..74cd678 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/x64/INSTALL.md.in | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | |||
| 2 | # Using this package | ||
| 3 | |||
| 4 | This package contains @<@PROJECT_NAME@>@ built for x64 Windows. | ||
| 5 | |||
| 6 | To use this package, simply replace an existing 64-bit @<@PROJECT_NAME@>@.dll with the one included here. | ||
| 7 | |||
| 8 | # Development packages | ||
| 9 | |||
| 10 | If you're looking for packages with headers and libraries, you can download one of these: | ||
| 11 | - @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-VC.zip, for development using Visual Studio | ||
| 12 | - @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-mingw.zip, for development using mingw-w64 | ||
| 13 | |||
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/x86/INSTALL.md.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/x86/INSTALL.md.in new file mode 100644 index 0000000..041c116 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/msvc/x86/INSTALL.md.in | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | |||
| 2 | # Using this package | ||
| 3 | |||
| 4 | This package contains @<@PROJECT_NAME@>@ built for x86 Windows. | ||
| 5 | |||
| 6 | To use this package, simply replace an existing 32-bit @<@PROJECT_NAME@>@.dll with the one included here. | ||
| 7 | |||
| 8 | # Development packages | ||
| 9 | |||
| 10 | If you're looking for packages with headers and libraries, you can download one of these: | ||
| 11 | - @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-VC.zip, for development using Visual Studio | ||
| 12 | - @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-mingw.zip, for development using mingw-w64 | ||
| 13 | |||
