summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl2
Commit message (Collapse)AuthorAgeFilesLines
* libsdl2: update SRC_URI to use httpsJason Schonberg5 days1-1/+1
| | | | | | | | | | | This fixes : WARNING: libsdl2-native-2.32.8-r0 do_fetch: Failed to fetch URL http://www.libsdl.org/release/SDL2-2.32.8.tar.gz, attempting MIRRORS if available (From OE-Core rev: 632bcc9acba076a81b7e58918362767bddcd6460) Signed-off-by: Jason Schonberg <schonm@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: set S to be in UNPACKDIR in recipes that explicitly set SAlexander Kanavin2025-06-201-1/+1
| | | | | | | | (From OE-Core rev: 7321cc17ae5483f17fe9cdffea7b62acd9d9c3a2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.32.6 -> 2.32.8Wang Mingyu2025-06-161-1/+1
| | | | | | | (From OE-Core rev: 69e484a295676be0dfb1037006e9748cdc937b50) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.32.4 -> 2.32.6Wang Mingyu2025-05-131-1/+1
| | | | | | | (From OE-Core rev: 001ac84a9934caa55df1e693d6bb1dda7c1fb06a) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.32.2 -> 2.32.4Richard Purdie2025-04-032-37/+1
| | | | | | | | Drop backported patch. (From OE-Core rev: 59f7cf56abe91dfdcbdaa094d1ffc194f4f63e1c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: only include 2.x releases in version checkAlexander Kanavin2025-03-191-0/+1
| | | | | | | | | | libsdl3 has its own recipe in meta-oe, which will probably migrate to core in due time. (From OE-Core rev: 6f6d57842f3c0dddd9c563305a693cacee9e72f8) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: fix build with pipewire 1.4.0Markus Volk2025-03-132-0/+36
| | | | | | | | | | | | This commit adds a backport patch to address a build issue with pipewire 1.4.0 | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/libsdl2/2.32.2/SDL2-2.32.2/src/audio/pipewire/SDL_pipewire.c:593:37: error: passing argument 1 of 'pw_node_enum_params' from incompatible pointer type [-Wincompatible-pointer-types] (From OE-Core rev: bacb0c9231176b605d22ad6eb168d041a2c64bd9) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: fix PACKAGECONFIG for libusbMarkus Volk2025-03-071-1/+1
| | | | | | | | | | | | | | libusb is required to support some older low level input devices. Meanwhile this is guarded by an option: SDL_HIDAPI_LIBUSB Use it for the PACKAGECONFIG to allow build with libusb support again (From OE-Core rev: e93bc2876fb3ee488a5bc6ed03eefd1bfdcdf69a) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.12 -> 2.32.2Wang Mingyu2025-03-061-1/+1
| | | | | | | | (From OE-Core rev: cbc45a87f1361034b1c086044a4eca7fdbfc6227) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.11 -> 2.30.12Yi Zhao2025-02-181-1/+1
| | | | | | | | | | | | | | | | | | | This is a stable bugfix release, with the following changes: Improved XInput controller detection on Windows Added support for the 8BitDo Ultimate 2C Wireless in Bluetooth mode Fixed Steam Deck controller not being visible to games running on Proton 9 and older Fixed a crash when hot-plugging keyboards and mice on Linux Fixed a crash when disconnecting a Bluetooth audio device on macOS Fixed building with Xcode using older Apple SDKs Fixed a crash when disconnecting an external display on iOS Fixed detection of function keys on Emscripten (From OE-Core rev: 01a8dba6281ad1f026ab6d42a5d509207789b04f) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.10 -> 2.30.11Wang Mingyu2025-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | License-Update: copyright updated to 2025 Changelog: =========== - Fixed a crash if the controller product name is NULL - Fixed the PS3 controller mapping on Windows - Allow rendering during the modal resize loop on macOS - Corrected CoreAudio surround sound channel layouts - Enabled high refresh rates on iOS - Fixed SDL_OpenURL() on iOS 18.2 and newer - Implemented SDL_OpenURL() on tvOS - Fixed Chinese locales on PSP (From OE-Core rev: f59f1ef898993a09cdb243d80b1bab624472ea10) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.9 -> 2.30.10Wang Mingyu2024-12-121-1/+1
| | | | | | | (From OE-Core rev: 3b8b0a0e36c8462deea4c1fd5eb5aac763baa6f9) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.8 -> 2.30.9Wang Mingyu2024-11-181-1/+1
| | | | | | | | (From OE-Core rev: 6632886b140ccf9874e06c05eb5589e0df6a01cb) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.7 -> 2.30.8Wang Mingyu2024-10-111-1/+1
| | | | | | | | | | | | | | | | | Changelog: ========= - Fixed a crash in XInput code at startup - Fixed flooding the OS with I/O when a PS4/PS5 controller is disconnected - Added SDL_VIDEO_DOUBLE_BUFFER support to the Wayland backend - SDL_WINDOWEVENT_EXPOSED is sent appropriately when using Wayland - Fixed hang at startup in audio code when the application has large stack usage on Linux - Fixed initializing KMSDRM on older Linux systems - The pre-built SDL2.dll no longer depends on ucrtbase.dll (From OE-Core rev: 0a099438e1956352f370d7a01d7782d501ee3ad1) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Fix non-deterministic configure option for libsamplerateRichard Purdie2024-09-171-0/+1
| | | | | | | | | The libsamplerate option was floating and being enabled on some systems and not others. Fix this to be deterministic. (From OE-Core rev: 61455a839e568a3ae7e059ea95c02a1c88d39e1a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.6 -> 2.30.7Yi Zhao2024-09-101-1/+1
| | | | | | | | | | | | | | | | ChangeLog: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.7 * Added support for the Retro-bit Controller in PS3 mode * Fixed the cursor becoming visible when using relative mode under XWayland * Fixed DRM initialization failure on some Linux systems * Fixed a crash when the current mouse capture window is destroyed (From OE-Core rev: 9ad32cec8e045d580563631ac59f49dff4cae274) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.5 -> 2.30.6Yi Zhao2024-08-201-1/+1
| | | | | | | | | | | | ChangeLog: * Improved detection of Nintendo Switch Pro controller report mode * Fixed a rare crash when a controller is disconnected * Fixed creating a framebuffer with KMSDRM on some systems (From OE-Core rev: 23600f9566a2e5272baa258443c9611aa9bd3169) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.4 -> 2.30.5Wang Mingyu2024-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | Changelog: ============= - Respect SDL_HINT_RENDER_DRIVER when creating an accelerated window surface - Clean up any accelerated renderer in SDL_DestroyWindowSurface() - Disable low level USB controller support on Android by default - Fixed USB permissions dialog on Android 14 - Fixed controller mapping matching when one entry has a CRC specified and another doesn't - Enable joystick support on FreeBSD when building using CMake - Reduced input latency when using an fcitx IME on Linux - Fixed graphical corruption on Raspberry Pi - Fixed crash when using an unstable sort function in SDL_qsort (From OE-Core rev: a0d89bb5e8b2bdf4e5f876d9dfc9f334613ed8d0) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.3 -> 2.30.4Yi Zhao2024-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | ChangeLog: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.4 This is a stable bugfix release, with the following changes: * Android rotation will respect user rotation lock preferences * Fixed spurious Left-Ctrl key input when the Right Alt key (AltGr) is pressed on Windows * Added support for the Saitek Cyborg V.3 Rumble Pad in PS3 mode * Added support for the Razer Kitsune in PS5 mode * Added Linux bindings for the Qanba Drone 2 Arcade Joystick * Leave Nintendo Online controllers in simple report mode so they work with DirectInput games * Enable using libusb for GameCube controllers when available (From OE-Core rev: bfc938ae8ebfebb0595aa0b810688a140a7ab452) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.2 -> 2.30.3Yi Zhao2024-05-281-1/+1
| | | | | | | | | | | | | | | | | | | Changelog: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.3 This is a stable bugfix release, with the following changes: - Fixed Win+V handling (pasting from clipboard history) on Windows - Fixed Caps Lock and Backspace key mapping for the Colemak keyboard layout on Windows - Fixed mouse warp on XWayland - Reduced startup time when scanning for game controllers on Linux - Fixed building with C89 compilers - Fixed building with the GDK SDK on Windows (From OE-Core rev: 9411077494934a2baac8872fc17268d49b6f9a45) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.1 -> 2.30.2Wang Mingyu2024-04-251-1/+1
| | | | | | | | | | | | | | | | | | | Changelog: =========== -Fixed performance regression initializing controllers on Linux -Added support for the 6-button SEGA Mega Drive Control Pad for Nintendo Online -Added support for the MadCatz Saitek Side Panel Control Deck -Added support for the Hori Fighting Stick EX2 -Added support for the Yawman Arrow flightstick -Added a gamepad mapping for the Defender Joystick Cobra R4 -Fixed the gamepad mapping for the Sanwa Supply JY-P76USV controller -Poll for the initial controller state when using DirectInput -Allow using SDL_RWFromFile() with named pipes (From OE-Core rev: ec532272e2ba2b2c182305e66068da5c0c4412e7) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.30.0 -> 2.30.1Wang Mingyu2024-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | Changelog: =========== -Fixed a regression causing SDL_WaitEvent() to return spurious failures -Fixed X11 cursors on the latest release of GNOME -Wayland windows automatically have OpenGL enabled again -Fixed memory corruption when converting signed 16-bit audio to float -Fixed audio artifacts when converting signed 8-bit audio to float -Fixed the clip rectangle not being updated when the viewport changes in the SDL renderer -Convert mouse wheel coordinates to the rendering view in the SDL renderer -Fixed a crash handling controllers on macOS -Fixed a crash setting a window fullscreen with Emscripten -Fixed the keyboard automatically popping up when resuming an application on Android (From OE-Core rev: a17c05585a0da0166087ae0cd3cd4331a1fb2615) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.28.5 -> 2.30.0Yi Zhao2024-02-201-2/+2
| | | | | | | | | | | | | | | | | | | License-Update: Copyright year updated to 2024. ChangeLog (https://github.com/libsdl-org/SDL/releases/tag/release-2.30.0): * Added support for 2 bits-per-pixel indexed surface formats * Added the function SDL_GameControllerGetSteamHandle() to get the Steam API handle for a controller, if available * Added the event SDL_CONTROLLERSTEAMHANDLEUPDATED which is sent when the Steam API handle for a controller changes. This could also change the name, VID, and PID of the controller. * Added the environment variable SDL_LOGGING to control default log output (From OE-Core rev: 7aef0ee68b612203fe5e0788c57642c4cabea1b4) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.28.4 -> 2.28.5Wang Mingyu2023-11-201-1/+1
| | | | | | | | | | | | | | Changelog: ============ Added support for the HP HyperX Clutch Gladiate controller Fixed a crash if a controller is disconnected while SDL is opening it Fixed a crash on Linux if XInput2 isn't available at runtime (From OE-Core rev: 9a58979717885baec3edc80374d5b55574b13133) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.28.3 -> 2.28.4Wang Mingyu2023-10-191-1/+1
| | | | | | | | (From OE-Core rev: f47de111cd66c3f9a5a6d5589e1fd034027a0a75) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.28.0 -> 2.28.3Alexander Kanavin2023-09-261-1/+1
| | | | | | | | (From OE-Core rev: b2722a341786f1cae75ad4e1266ab444850a5aa7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.26.5 -> 2.28.0Wang Mingyu2023-06-281-1/+1
| | | | | | | (From OE-Core rev: acba05b62049b4c82cc2871771117c6b2f1241c4) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Revert "libsdl2: disable SDL's own ccache"Chen Qi2023-06-021-1/+0
| | | | | | | | | | | | | | The reverted patch's purpose is to avoid libsdl2-native from detecting ccache from host. Now that we have made cmake.bbclass to not search the host paths, the original patch is no longer needed. This reverts commit 01472f512f45bdd319611871a21172216c74e29a. (From OE-Core rev: b614147df47138d95da17800e39af923e15671ad) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: disable SDL's own ccacheChen Qi2023-05-311-0/+1
| | | | | | | | | | | | OE has its own ccache mechanism, disable libsdl2's own ccache searching/enabling mechanism. Otherwise, if ccache is installed on system, it will be used by default. (From OE-Core rev: 7c1cd24de5ec06501354ca6378887f4b1048274e) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.26.3 -> 2.26.5Wang Mingyu2023-04-131-1/+1
| | | | | | | | (From OE-Core rev: 106cdae227775f8e3b32462ed68b99231595f075) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: add missing libdecor RDEPENDMarkus Volk2023-03-011-1/+1
| | | | | | | | | | libdecor is dlopen'ed ... add it as RDEPEND to make it work on runtime (From OE-Core rev: 321f0819515cd53362b1b84aa2d1eece75e013e5) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.26.2 -> 2.26.3Wang Mingyu2023-02-151-2/+2
| | | | | | | | | | License-Update: Copyright year updated to 2023. (From OE-Core rev: 81a08ae4d89f15ab48ed84c1f8bdced7229e02ad) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.26.1 -> 2.26.2Wang Mingyu2023-01-121-1/+1
| | | | | | | | (From OE-Core rev: 22e08be8010f7fca0bbaf39459589b284a2e75c6) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.26.0 -> 2.26.1Alexander Kanavin2023-01-061-1/+1
| | | | | | | | (From OE-Core rev: 91c35d5311aaed92bc48766da9bdedc9fa5a4044) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: update 2.24.2 -> 2.26.0Markus Volk2022-11-272-41/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add PACKAGECONFIG for libdecor - add PACKAGECONFIG for pipewire - remove native patch, CMakeLists.txt has been reworked, still needed ? In addition to lots of bug fixes, here are the major changes in this release: General: Updated OpenGL headers to the latest API from The Khronos Group Inc. Added SDL_GetWindowSizeInPixels() to get the window size in pixels, which may differ from the window coordinate size for windows with high-DPI support Added simulated vsync synchronization for the software renderer Added the mouse position to SDL_MouseWheelEvent Added SDL_ResetHints() to reset all hints to their default values Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 to control whether the HIDAPI driver for XBox 360 controllers should be used Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LEDs should be lit to indicate which player is associated with an Xbox 360 controller Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS to control whether the HIDAPI driver for XBox 360 wireless controllers should be used Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE to control whether the HIDAPI driver for XBox One controllers should be used Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED to control the brightness of the XBox One guide button LED Added support for PS3 controllers to the HIDAPI driver, enabled by default on macOS, controlled by the SDL_HINT_JOYSTICK_HIDAPI_PS3 hint Added support for Nintendo Wii controllers to the HIDAPI driver, not enabled by default, controlled by the SDL_HINT_JOYSTICK_HIDAPI_WII hint Added the hint SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED to control whether the player LED should be lit on the Nintendo Wii controllers Added the hint SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS to control whether Nintendo Switch Joy-Con controllers will be in vertical mode when using the HIDAPI driver Added access to the individual left and right gyro sensors of the combined Joy-Cons controller Added a microsecond timestamp to SDL_SensorEvent and SDL_ControllerSensorEvent, when the hardware provides that information Added SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp() to retrieve the last sensor data with the associated microsecond timestamp Added the hint SDL_HINT_HIDAPI_IGNORE_DEVICES to have the SDL HID API ignore specific devices SDL_GetRevision() now includes more information about the SDL build, including the git commit hash if available Windows: Added the hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether the system mouse acceleration curve is used for relative mouse motion macOS: Implemented vsync synchronization on macOS 12 Linux: Added SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() to interact with the X11 primary selection clipboard Added the hint SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP to control whether mouse pointer warp emulation is enabled under Wayland Android: Enabled IME soft keyboard input Added version checking to make sure the SDL Java and C code are compatible (From OE-Core rev: c55dc3a8f13050123bc63479c5a3159601c240a0) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.24.1 -> 2.24.2Wang Mingyu2022-11-141-1/+1
| | | | | | | | (From OE-Core rev: 0091bbe02399f49b7da1ebf9b45541b26fb2ce12) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.24.0 -> 2.24.1wangmy2022-10-262-4/+4
| | | | | | | | | | | 0001-Disable-libunwind-in-native-OE-builds-by-not-looking.patch refreshed for new version. (From OE-Core rev: aa45a2fad9ecd5d553c605dc6b3d4cd70d7d7776) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: update 2.0.22 -> 2.24.0Markus Volk2022-09-082-41/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to lots of bug fixes, here are the major changes in this release: General: New version numbering scheme, similar to GLib and Flatpak. An even number in the minor version (second component) indicates a production-ready stable release such as 2.24.0, which would have been 2.0.24 under the old system. The patchlevel (micro version, third component) indicates a bugfix-only update: for example, 2.24.1 would be a bugfix-only release to fix bugs in 2.24.0, without adding new features. An odd number in the minor version indicates a prerelease such as 2.23.0. Stable distributions should not use these prereleases. The patchlevel indicates successive prereleases, for example 2.23.1 and 2.23.2 would be prereleases during development of the SDL 2.24.0 stable release. Added SDL_GetPointDisplayIndex() and SDL_GetRectDisplayIndex() to get the display associated with a point and rectangle in screen space Added SDL_bsearch(), SDL_crc16(), and SDL_utf8strnlen() to the stdlib routines Added SDL_CPUPauseInstruction() as a macro in SDL_atomic.h Added SDL_size_mul_overflow() and SDL_size_add_overflow() for better size overflow protection Added SDL_ResetHint() to reset a hint to the default value Added SDL_ResetKeyboard() to reset SDL's internal keyboard state, generating key up events for all currently pressed keys Added the hint SDL_HINT_MOUSE_RELATIVE_WARP_MOTION to control whether mouse warping generates motion events in relative mode. This hint defaults off. Added the hint SDL_HINT_TRACKPAD_IS_TOUCH_ONLY to control whether trackpads are treated as touch devices or mice. By default touchpads are treated as mouse input. The hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS now defaults on Added support for mini-gamepad mode for Nintendo Joy-Con controllers using the HIDAPI driver Added the hint SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS to control whether Joy-Con controllers are automatically merged into a unified gamepad when using the HIDAPI driver. This hint defaults on. The hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED can be set to a floating point value to set the brightness of the Home LED on Nintendo Switch controllers Added the hint SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED to set the Home LED brightness for the Nintendo Joy-Con controllers. By default the Home LED is not modified. Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED to control whether the player LED should be lit on the Nintendo Joy-Con controllers Added support for Nintendo Online classic controllers using the HIDAPI driver Added the hint SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC to control whether the HIDAPI driver for Nintendo Online classic controllers should be used Added support for the NVIDIA Shield Controller to the HIDAPI driver, supporting rumble and battery status Added support for NVIDIA SHIELD controller to the HIDAPI driver, and a hint SDL_HINT_JOYSTICK_HIDAPI_SHIELD to control whether this is used Added functions to get the platform dependent name for a joystick or game controller: SDL_JoystickPathForIndex() SDL_JoystickPath() SDL_GameControllerPathForIndex() SDL_GameControllerPath() Added SDL_GameControllerGetFirmwareVersion() and SDL_JoystickGetFirmwareVersion(), currently implemented for DualSense(tm) Wireless Controllers using HIDAPI Added SDL_JoystickAttachVirtualEx() for extended virtual controller support Added joystick event SDL_JOYBATTERYUPDATED for when battery status changes Added SDL_GUIDToString() and SDL_GUIDFromString() to convert between SDL GUID and string Added SDL_HasLSX() and SDL_HasLASX() to detect LoongArch SIMD support Added SDL_GetOriginalMemoryFunctions() Added SDL_GetDefaultAudioInfo() to get the name and format of the default audio device, currently implemented for PipeWire, PulseAudio, WASAPI, and DirectSound Added HIDAPI driver for the NVIDIA SHIELD controller (2017 model) to enable support for battery status and rumble Added support for opening audio devices with 3 or 5 channels (2.1, 4.1). All channel counts from Mono to 7.1 are now supported. Rewrote audio channel converters used by SDL_AudioCVT, based on the channel matrix coefficients used as the default for FAudio voices SDL log messages are no longer limited to 4K and can be any length Fixed a long-standing calling convention issue with dynapi affecting OpenWatcom or OS/2 builds Windows: Added initial support for building for Windows and Xbox with Microsoft's Game Development Kit (GDK), see docs/README-gdk.md for details Added a D3D12 renderer implementation and SDL_RenderGetD3D12Device() to retrieve the D3D12 device associated with it Added the hint SDL_HINT_WINDOWS_DPI_AWARENESS to set whether the application is DPI-aware. This hint must be set before initializing the video subsystem Added the hint SDL_HINT_WINDOWS_DPI_SCALING to control whether the SDL coordinates are in DPI-scaled points or pixels Added the hint SDL_HINT_DIRECTINPUT_ENABLED to control whether the DirectInput driver should be used Added support for SDL_GetAudioDeviceSpec to the DirectSound backend Linux: Support for XVidMode has been removed, mode changes are only supported using the XRandR extension Added the hint SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION to control whether to expose a set of emulated modes in addition to the native resolution modes available on Wayland Added the hint SDL_HINT_KMSDRM_DEVICE_INDEX to specify which KMSDRM device to use if the default is not desired Added the hint SDL_HINT_LINUX_DIGITAL_HATS to control whether to treat hats as digital rather than checking to see if they may be analog Added the hint SDL_HINT_LINUX_HAT_DEADZONES to control whether to use deadzones on analog hats macOS: Bumped minimum OS deployment version to macOS 10.9 Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR Added the hint SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH to control whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing. This hint defaults to blocking, which is the safer option on modern macOS. (From OE-Core rev: f54faf3df0c1252b965c96ec6dbf71574a01e9a3) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: follow upstream version is even ruleAlexander Kanavin2022-09-021-1/+1
| | | | | | | | | | | As announced here: https://github.com/libsdl-org/SDL/releases/tag/release-2.24.0 (From OE-Core rev: 4960a018cdf5d49fd9a800a82a8acd6e204a12b7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: add back xvm and xinerama optionsChen Qi2022-05-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | When building libsdl2-native, and I met a do_configure error as below. | CMake Error: The following variables are used in this project, but they are set to NOTFOUND. | Please set them or make sure they are set and tested correctly in the CMake files: | XINERAMA_LIB This error appears on hosts with libxinerama-dev installed. Looking at the CMakeLists.txt file, I got: set(SDL_X11_OPTIONS Xcursor Xdbe Xinerama XInput Xfixes Xrandr Xscrnsaver XShape Xvm We an see neither Xinerama nor Xvm is removed. So we should add back these options removed by a previous commit. (From OE-Core rev: 2c5d78153614fcdf30dbe3e41d88f18e9ae06684) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: add PACKAGECONFIG for libusb1 and remove obsolete optionsMarkus Volk2022-05-211-2/+3
| | | | | | | | | Support for XVM and Xinerama has been removed (From OE-Core rev: 09092685fdc8ffe6384bea441394ce02d6ff7e66) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.0.20 -> 2.0.22Alexander Kanavin2022-05-055-73/+42
| | | | | | | | (From OE-Core rev: 047f05c7a641db4138cbf3b3ea965873fe75035c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: fix licenseKonrad Weihmann2022-04-141-2/+7
| | | | | | | | | | | | | by default libsdl2 is build with code from src/video/yuv2rgb, which is licensed under BSD-2-Clause. Additional by default hidapi is build, which is licensed under GPL3 | BSD-2-Clause | HIDAPI license, pick the least restrictive and best matching BSD-2-Clause. (From OE-Core rev: a97f7975edaf0ed833950f87c3d880a8897c67df) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Disable libunwind dependency in native buildsCarlos Rafael Giani2022-04-052-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libunwind-native currently cannot be added to the class-native DEPENDS due to the following problem: https://autobuilder.yoctoproject.org/typhoon/#/builders/91/builds/5624/steps/12/logs/stdio And without libunwind-native, libsdl2-native config fails errors like: | -- Checking for one of the modules 'libunwind' | CMake Error at [...]/build/tmp/work/x86_64-linux/libsdl2-native/2.0.20-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message): | None of the required 'libunwind' found | Call Stack (most recent call first): | CMakeLists.txt:1367 (pkg_search_module) Ideally, the libunwind issue would be fixed, and then this could be added to the libsdl2 recipe: DEPENDS:append:class-native = " libunwind-native" However, the libunwind problem is not trivial to fix, and requires a specific setup to reproduce. As an alternative workaround, turn off libunwind support in the native SDL2 build by disabling the unwind.h check in the CMake script (this subsequently turns off all the other libunwind checks). The main user of libsdl2-native is qemu-native, which does not need libunwind support in SDL2. (From OE-Core rev: ecd044b09f8715353cbf20b39ce2b1fe9e620631) Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Depend on virtual/eglKhem Raj2022-03-241-1/+1
| | | | | | | | | | virtual/libgl may not be implemented by some non-mesa graphics in embedded space, this ensures that libsdl2 can build on such stacks (From OE-Core rev: 26f511bb21c01a371722caa739f4f6d079211cc2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Revert "libsdl2: Add libunwind-native to the libsdl2-native DEPENDS"Richard Purdie2022-03-051-2/+0
| | | | | | | | This reverts commit 1b114fa2d221c9810852526f8b45a3d2c856a502. Unfortunately this breaks on cento7 as libunwind-native doesn't appear to build there. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Add libunwind-native to the libsdl2-native DEPENDSCarlos Rafael Giani2022-03-041-0/+2
| | | | | | | | | | | | | | | | | | | This fixes this CMake configuration error: | -- Checking for one of the modules 'libunwind' | CMake Error at [...]/build/tmp/work/x86_64-linux/libsdl2-native/2.0.20-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message): | None of the required 'libunwind' found | Call Stack (most recent call first): | CMakeLists.txt:1367 (pkg_search_module) This error happens even if libunwind is installed complete with its C headers and development .so files (in Ubuntu, this means libunwind-dev is installed). (From OE-Core rev: 1b114fa2d221c9810852526f8b45a3d2c856a502) Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.0.18 -> 2.0.20wangmy2022-01-182-49/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 0001-Fix-build-against-wayland-1.20.patch removed since it is included in 2.0.20 License-Update: year updated to 2022. Changelog: ========= General: SDL_RenderGeometryRaw() takes a pointer to SDL_Color, not int. You can cast color data in SDL_PIXELFORMAT_RGBA32 format (SDL_PIXELFORMAT_ABGR8888 on little endian systems) for this parameter. Improved accuracy of horizontal and vertical line drawing when using OpenGL or OpenGLES Added the hint SDL_HINT_RENDER_LINE_METHOD to control the method of line drawing used, to select speed, correctness, and compatibility. Fixed hotplug controller detection, broken in 2.0.18 (From OE-Core rev: 21de64185beb799aee04dc12ae84e3a60cc671a3) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: fix build if egl.pc sets macros in cflagsMax Krummenacher2022-01-122-0/+47
| | | | | | | (From OE-Core rev: 59b583fa3f10fd82d11ccc5811c61a4ff8f14de6) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Fix build when libunwind is not usedKhem Raj2022-01-082-0/+19
| | | | | | | | | | | | | | | clang provides libunwind.h and cmake adds a check to find libunwind when this header is detected, which was not the case with automake. The check however is expecting specific unwinder implementation which provides libunwind-generic solib, this is not a standard library that all implementations will provide, therefore make this check optional. (From OE-Core rev: fb450807774d100b9b568364b014ac46f5642b7e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>