|
a0f8afb5
|
2021-11-11T09:16:44
|
|
Separated the HIDAPI subsystem from HIDAPI joysticks
You can now disable HIDAPI joysticks while retaining the HIDAPI SDL API
|
|
8f63e9ff
|
2021-11-09T11:13:52
|
|
cmake: use generated SDL_config.h to build SDLmain static lib
Thanks to @toazz for the patch!
Fixes #4829.
|
|
3a82e432
|
2021-11-09T11:06:33
|
|
cmake: Moved back to requiring merely CMake 3.0.0.
This means it now works with any CMake released since 2014 instead of 2018.
This was mostly just readding some special cases, and requiring 3.11.0 only
for Windows Stores apps, which isn't unreasonable. The biggest concern is
a Linux distribution not having a recent CMake; most other places will be
manually downloading and installing their own CMake.
Fixes #4930.
|
|
4b42c05b
|
2021-11-08T13:52:48
|
|
video: Add SDL_SetWindowMouseRect.
This API and implementation comes from the Unreal Engine branch of SDL, which
originally called this "SDL_ConfineCursor".
Some minor cleanup and changes for consistency with the rest of SDL_video, but
there are two major changes:
1. The coordinate system has been changed so that `rect` is _window_ relative
and not _screen_ relative, making it easier to implement without having
global access to the display.
2. The UE version unset all rects when passing `NULL` as a parameter for
`window`, this has been removed as it was an unused feature anyhow.
Currently this is only implemented for X, but can be supported on Wayland and
Windows at minimum too.
|
|
2636d839
|
2021-11-08T22:25:32
|
|
cmake: add hidapi to 'SDL_SUBSYSTEMS'
|
|
36067fa1
|
2021-11-08T21:35:24
|
|
cmake: include hid.cpp in android sources
|
|
001aa4da
|
2021-11-08T21:12:02
|
|
cmake: more hidapi fixes.
|
|
4bbbe5f8
|
2021-11-08T09:28:36
|
|
Fixed CMake build by adding hidapi files
This needs more work to remove the hidapi shared library build, but at least Linux builds are unblocked
|
|
7f308abb
|
2021-11-04T01:02:48
|
|
cmake: Only prevent MSVC codegen using the CRT if SDL_LIBC=OFF
|
|
16845eef
|
2021-10-30T12:06:58
|
|
cmake: Add SDL include path when building tests
The tests can't find any of the SDL includes otherwise
|
|
7e8469d1
|
2021-10-31T09:31:25
|
|
cmake: Fix MinGW build break in WGI joystick driver
Just look for windows.gaming.input.h rather than assuming its presence
or absence based on other CMake variables.
Fixes MinGW builds in CI
|
|
25c71748
|
2020-02-13T21:55:08
|
|
Add a barebones RISC OS video driver
|
|
81fe2ccb
|
2021-10-31T02:54:20
|
|
cmake: Add missing SDL_JOYSTICK_WGI in config step
SDL_config.h *can* define SDL_JOYSTICK_WGI. On builds with the Windows
10 SDK available, this allow implementing trigger rumbling on Xbox One
controllers. The files included in the Visual Studio Solution in
VisualC\SDL.sln *do* have this define set.
fix #4859
|
|
378c5d7f
|
2021-10-23T16:26:25
|
|
make aclocal install relative
|
|
3db898c5
|
2020-02-13T22:32:35
|
|
riscos: Implement SDL_GetPrefPath()
|
|
ab7910fa
|
2021-10-05T12:34:29
|
|
cmake: Move the old, global add_definitions (etc) to an interface library.
Fixes #4150.
|
|
25fdba39
|
2021-10-05T11:19:14
|
|
cmake: fix indentation.
|
|
f3066625
|
2021-10-05T11:13:41
|
|
cmake: Correctly set IOS variable.
Fixes #4635.
|
|
60d59aeb
|
2021-10-05T10:54:06
|
|
cmake: Calculate padding for dislaying options automatically.
|
|
7850d0cf
|
2021-10-05T10:43:35
|
|
cmake: Prefix all options with "SDL_"
This makes it clear which options came from SDL's CMake project when
building SDL as a subdirectory of a parent CMake project.
Fixes #4139.
|
|
ab09f3da
|
2021-09-30T10:00:58
|
|
cmake: Remove warning about CFLAGS environment variable.
CMake 3.11.0 respects this environment var.
Fixes #4681.
|
|
cd6f96de
|
2021-09-30T09:57:51
|
|
cmake: bump minimum CMake allowed to 3.11.0.
This cmake is 3 years old, but it removes confusion about the CFLAGS
environment variable (as of CMake 3.10.0, reference PR #4681) and also
consolidates resolves the need to have a separate requirement for Windows
Store apps (which requires CMake 3.11.0).
|
|
f79ac6a8
|
2021-09-27T23:31:23
|
|
cmake: Don't use the CFLAGS environment variable.
CMake has standard means of setting compiler flags, such as the
-DCMAKE_C_FLAGS command line for general-purpose flags, and
-DCMAKE_BUILD_TYPE for letting it choose reasonable release/debug/etc
defaults. Trying to emulate the configure script is incorrect and confusing
here.
Fixes #1819.
|
|
5dccffd7
|
2021-08-23T21:16:58
|
|
Allow usage of the new Condition Variable code with Critical Sections
Vista and later provide the SleepConditionVariableCS() function for this.
Since SDL_syscond_srw.c doesn't require SRW locks anymore, rename it to
SDL_syscond_cv.c which better reflects the implementation of condition
variables rather than the implementation of mutexes.
Fixes #4051.
|
|
8d1e0ca3
|
2021-09-16T12:48:39
|
|
Vita: add support for disabling 'screensaver' (screen dimming and suspend)
|
|
67aacfe5
|
2021-09-09T17:59:47
|
|
cmake: Retrieve the git revision on platforms without bash
|
|
6301cfda
|
2021-09-09T17:36:03
|
|
cmake: Use the correct directory structure for MinGW builds
|
|
134dd468
|
2021-08-16T19:08:12
|
|
Add pvr gles/gles2 context support
|
|
76d50d28
|
2021-08-22T14:40:54
|
|
Force color diagnostics when applicable
Although GCC and Clang automatically generate color diagnostics on
terminal output, they do not do so when the compiler output is piped
through another process, like in the case for ninja-build and ccache.
Similarly, it would also be nice to be able to see the color diagnostics
on the CI build log in the web interface provided by the CI providers.
|
|
374b0b9a
|
2021-08-23T23:58:54
|
|
cmake: Don't support Vulkan if LOADSO is disabled.
Fixes #4373.
|
|
f5794f9e
|
2021-08-10T15:17:59
|
|
Added SDL_SetTextureUserData() and SDL_GetTextureUserData() to associate a user-specified pointer with an SDL texture
|
|
3f6ebfff
|
2021-08-10T15:02:36
|
|
Updated to version 2.0.17 for development
|
|
68103993
|
2021-08-10T14:50:43
|
|
Enable AAUDIO driver for Android
I thought this was already enabled for 2.0.16, but apparently not.
Fixes https://github.com/libsdl-org/SDL/issues/3710
|
|
77c8d111
|
2021-08-10T20:55:50
|
|
configuration updates for dlopen:
- cmake, configure (CheckDLOPEN): --enable-sdl-dlopen is now history..
detach the dl api discovery from SDL_LOADSO_DLOPEN functionality.
define HAVE_DLOPEN. also define DYNAPI_NEEDS_DLOPEN (CheckDLOPEN is
called only for relevant platforms.)
- update SDL_config.in and SDL_config.cmake accordingly.
- SDL_dynapi.h: set SDL_DYNAMIC_API to 0 if DYNAPI_NEEDS_DLOPEN is
defined, but HAVE_DLOPEN is not.
- pthread/SDL_systhread.c: conditionalize dl api use to HAVE_DLOPEN
- SDL_x11opengl.c, SDL_DirectFB_opengl.c, SDL_naclopengles.c: rely
on HAVE_DLOPEN, not SDL_LOADSO_DLOPEN.
- SDL_config_android.h, SDL_config_iphoneos.h, SDL_config_macosx.h,
SDL_config_pandora.h, and SDL_config_wiz.h: define HAVE_DLOPEN.
Closes: https://github.com/libsdl-org/SDL/pull/4351
|
|
ea9bece5
|
2021-08-10T18:51:33
|
|
Fix breaking GNUInstallDirs cmake module $CMAKE_INSTALL_LIBDIR directory. Fix #4621
According to https://cmake.org/cmake/help/v3.0/module/GNUInstallDirs.html
`${CMAKE_INSTALL_LIBDIR} ` is only variable which should be used as base
directory. Without that patch on 64 bit archs libraries, cmake modules and
pkgconfig file are installed for example in /usr/lib6464 base directory.
This patch fixes #4621.
Signed-off-by: Tomasz Kłoczko <koczek@github.com>
|
|
a91ab883
|
2021-08-06T12:28:03
|
|
Fixed building on Windows with cmake, ninja, and clang
|
|
cdac61ff
|
2021-08-06T12:00:53
|
|
Fixed typo
|
|
eec41d25
|
2021-08-06T11:30:22
|
|
Add info on how to avoid the "Prevented in-tree build" message with CMake
|
|
b83a019d
|
2021-08-04T19:22:10
|
|
cmake: Force linker to treat input as a C++ program on Haiku.
Reference issue #4590.
|
|
5b18ae29
|
2021-08-03T14:01:02
|
|
improvements to libdecor support in cmake
this makes it consistent with wayland support, and makes cmake side
in line with autotools' libdecor support.
|
|
a15ec365
|
2021-08-03T11:33:50
|
|
attempt to fix cmake builds with libdecor
|
|
c3084539
|
2021-08-03T02:49:08
|
|
cmake: Use CMAKE_INSTALL_FULL_* for libdir,bindir,etc.
This makes sure sdl2.pc gets the full paths, matching what the
configure script will generate.
Fixes #4569.
|
|
d373af04
|
2021-08-01T01:39:20
|
|
CMakeLists.txt: update DYLIB_CURRENT_VERSION too 2.0.16 for release
|
|
cb1fd30e
|
2021-07-31T13:28:54
|
|
Updated to version 2.0.16 for release
|
|
1a9253f7
|
2021-07-31T12:37:28
|
|
Removed unused IOS_DYLIB definition
|
|
9e6fcbe7
|
2020-06-11T22:10:28
|
|
wayland: client-side decoration
|
|
20eea021
|
2021-06-12T01:25:40
|
|
Windows: set HAVE_IMMINTRIN_H for AVX intrinsics
|
|
6956f4aa
|
2021-07-24T11:06:40
|
|
cmake: use CMAKE_INSTALL_LIBDIR instead of hardcoding "lib", etc.
These came from HaikuPorts, specifically this patchset:
https://github.com/haikuports/haikuports/blob/462947dd4f285a885d8011cade7cd0f7151cfe74/media-libs/libsdl2/patches/libsdl2-2.0.14.patchset
This is just the part that is _not_ Haiku-specific. I wanted this in a
separate commit though, since I'm not really a CMake expert; if this causes
problems and we need to bisect to it, we won't be confused about it being a
Haiku issue when we get here.
Fixes #4092.
(and probably others.)
|
|
403afdb5
|
2021-07-24T11:02:27
|
|
cmake: Haiku fixes.
These came from HaikuPorts, specifically this patchset:
https://github.com/haikuports/haikuports/blob/462947dd4f285a885d8011cade7cd0f7151cfe74/media-libs/libsdl2/patches/libsdl2-2.0.14.patchset
This is just the Haiku-specific bits; the more general parts about install
dirs will be split into a different commit here.
Reference issue #4092.
|
|
5ac81c75
|
2021-07-10T10:05:40
|
|
fixed typo in previous commit
|
|
a809d626
|
2021-07-10T10:01:40
|
|
cmake: set SDL_JOYSTICK_RAWINPUT for windows builds
Fixes: https://github.com/libsdl-org/SDL/issues/4412
|
|
e52733af
|
2021-07-09T13:39:05
|
|
Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR
This allows for building with cmake's add_subdirectory() function.
|
|
e2234ee9
|
2021-05-16T06:33:29
|
|
CMake: Fix SOVERSION/SONAME of non-release versions
When building SDL2 from git with CMake, you got libSDL2-2.0.so.1
instead of .0 (as it's the case when building with autotools).
This was caused by using LT_REVISION instead of LT_MAJOR for SOVERSION.
fixes #4310
|
|
be41cf2d
|
2021-07-08T21:20:02
|
|
CMake: don't blacklist TARGET_OS_SIMULATOR for Metal configuration
https://github.com/libsdl-org/SDL/commit/7fa5e95b6284f2cc7855022c9f0c2b086dcee43f enabled it.
|
|
3433f3c4
|
2021-07-08T01:18:01
|
|
CMake: Small improvement for MinGW
This is currently a small patch we have in our Conan package for SDL https://github.com/bincrafters/community/blob/4dc894cc2c4df43aabf39c212aa0a31047d183e1/recipes/sdl2/all/conanfile.py#L184
Introduced in https://github.com/bincrafters/conan-sdl2/commit/9fb93a60446914da2a0fafc692cbd175c2d5db50
|
|
6460151c
|
2021-06-21T15:03:31
|
|
Vita: add missing stub
|
|
2465444f
|
2021-06-14T21:27:09
|
|
Add missing dependencies
|
|
bbdd08e0
|
2021-06-10T13:20:39
|
|
Build without PIB support by default and add flag to enable it
|
|
6a2af48a
|
2021-05-06T15:43:16
|
|
CMake: Generic check for desktop GL and EGL on Linux systems
|
|
ded02387
|
2021-05-16T17:16:54
|
|
Make CMake script more accurate to autoconf script
DBus, IBus and inotify is now able to be used outside Linux like in configure.
KMSDRM input is now working on FreeBSD with CMake compilation.
|
|
ca969eb2
|
2021-04-24T10:29:52
|
|
Remove gles2 vita render
|
|
d4e96e11
|
2021-04-16T09:44:07
|
|
Android: enable audio driver OpenSLES when building with CMake
|
|
02b1ebc9
|
2021-04-15T21:13:17
|
|
Android: add openslES and AAudio compilation to CMakeLists
|
|
69203851
|
2021-04-14T21:40:50
|
|
rename PKG_CONFIG_LIBS_PRIV to PKGCONFIG_LIBS_PRIV
i.e.: do not steal PKG_CONFIG namespace.
|
|
401f4854
|
2021-04-11T19:29:01
|
|
cmake: Weak link with CoreHaptics
Add link to CoreHaptics so we can compile against latest iOS SDKs.
|
|
dbedaece
|
2021-04-11T15:10:28
|
|
Adding checks to see if any ASAN flags are set, if so then we set(HAVE_ASAN ON) so the infomartion output will properly list ASAN as on.
|
|
70bd205b
|
2021-04-11T15:08:14
|
|
Adding messages to output CMAKE_C_FLAGS_DEBUG and CMAKE_CXX_FLAGS_DEBUG, this way when using Debug builds you can see which debug flags are set
|
|
32066604
|
2021-04-11T15:05:58
|
|
Moving ASAN macros and calls to macros above the information output section so we can display ASAN information properly.
|
|
732cc8ed
|
2021-04-08T21:28:45
|
|
cmake: Fix UWP DLL build by removing /NODEFAUTLIB
On UWP, we need default C runtime for C++ sources.
|
|
50db4a59
|
2021-04-02T12:05:45
|
|
* Support for intrinsics in MSW + Clang scenario.
Utility polyfill is provided, removed the no-longer-needed
conditionals.
|
|
7b8c7509
|
2021-04-03T22:21:35
|
|
CMake: Enable WASAPI on WinRT
WASAPI backend on WinRT was implemented with 2.0.8
https://github.com/libsdl-org/SDL/commit/351d6d478443fe8a1ede1e993712f07cb369d483
but CMake source here was written for 2.0.7 in vcpkg
https://github.com/microsoft/vcpkg/commit/e6c65b93b125cf0be13254cf2f5a9d27cb009707
|
|
a81fe272
|
2021-04-04T00:16:30
|
|
configure/cmake: Hook up Emscripten threads (disabled by default).
Fixes #3795.
|
|
e213f37a
|
2021-03-15T12:53:16
|
|
[KMSDRM] Enable full OpenGL detection (MESA/libglvnd) on both the make and cmake buildsystems.
|
|
e58a955e
|
2021-03-08T18:39:00
|
|
Deprecate dolcesdk
|
|
4708c6bb
|
2021-02-14T11:52:43
|
|
Remove pkg-config prefix hack
|
|
b52e9459
|
2021-01-29T01:26:13
|
|
Add support for open URL
|
|
a43f4889
|
2021-01-20T23:33:05
|
|
Don't search for pthread
|
|
54134fdd
|
2021-01-10T00:09:46
|
|
Use Clib mem funcs
|
|
e928b92f
|
2020-12-18T16:42:57
|
|
CMake support
|
|
34ecd71e
|
2021-03-04T18:44:04
|
|
CMake: don't add -Wl,--no-undefined to LDFLAGS for clang+windows cases
from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
|
|
3880174a
|
2021-03-04T18:40:56
|
|
CMake: set OPT_DEF_LIBC to ON for clang case, too.
from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
|
|
05cc9e37
|
2021-03-04T18:40:50
|
|
CMake: move GCC check after CLANG, so that CLANG is properly recognized
from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
|
|
0a683221
|
2021-03-01T15:11:50
|
|
add missing PIPEWIRE defines to SDL_config.h.in
also specify 'audio' in Pipepire configuration enable messages.
|
|
2f0b99a7
|
2021-02-13T11:56:05
|
|
audio: Add Pipewire playback/capture sink
|
|
fe6f62e6
|
2021-02-10T15:17:02
|
|
Add ALIAS targets to all installed SDL2 targets
This provides a linking interface that matches the one available when `find_package()` is used, by aliasing all of SDL's public targets into the SDL2:: namespace. Thus, dependees link to the same-named targets regardless of how SDL was acquired.
This approach permits the use of wrappers around CMake's FetchContent API such as https://github.com/cpm-cmake/CPM.cmake
|
|
2170c7bf
|
2021-02-08T23:55:50
|
|
make AddressSanitizer optional and disabled by default
|
|
5045d299
|
2021-02-08T20:50:00
|
|
enable AddressSanitizer only for GCC 5 onwards (bug #5533)
|
|
066960c2
|
2021-02-08T02:15:50
|
|
add '-shared-libasan' to debug flags (bug #5533)
|
|
bb9e049d
|
2021-02-07T00:37:00
|
|
minor updates to libc function checks
|
|
2426949a
|
2021-02-01T21:56:56
|
|
Removed support for clock_gettime_nsec_np()
SDL_GetTicks() was broken and it's not adding any real value here.
|
|
42798cec
|
2021-02-01T20:25:24
|
|
cmake: enable AddressSanitizer in Debug builds if supported
|
|
b7f711cd
|
2021-01-31T19:11:49
|
|
Don't enable address sanitize flags without checking compiler first
|
|
f8b4a6e2
|
2021-01-31T19:09:25
|
|
cmake: enable AddressSanitizer in Debug builds
|
|
091a4649
|
2021-01-29T23:11:13
|
|
added --enable-xinput switch for windows builds
|
|
de1c19b3
|
2021-01-25T20:43:21
|
|
Fixed bug 5481 - iOS-specific main sources not used for CMake build.
Aaron Barany
The CMake build for SDL doesn't set SDLMAIN_SOURCES on iOS to the sources in src/main/ios. As a result, SDL fails to initialize since it falls back to the dummy main. Adding the line file(GLOB SDLMAIN_SOURCES ${SDL2_SOURCE_DIR}/src/main/uikit/*.c) fixes the issue.
|
|
aa4a6b0b
|
2021-01-25T04:11:40
|
|
better check for clock_gettime_nsec_np() -- cf. bug #5467.
|
|
d327bbfb
|
2021-01-24T17:37:24
|
|
CMakeLists.txt: fix check_symbol_exists() for clock_gettime_nsec_np
|
|
96cfb812
|
2021-01-23T09:50:43
|
|
Fixed bug 5467 - SDL sys timer Mac OS update proposal
David Carlier
Change of api from 2016 which reduce code complexity a bit.
|
|
f3835702
|
2021-01-17T05:00:50
|
|
fix build with --disable-directx
|
|
d54b125a
|
2021-01-14T14:53:34
|
|
Fixed bug 5287 - Support building for UWP with CMake
Jan Niklas Hasse
Actually the SDL2-static target works, if I set SDL_SENSOR to OFF. Awesome!
See this patch: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0003-sdl2-fix-uwp-build.patch
|