summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl2
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* libsdl2: Fix X11 configure optionsRichard Purdie2022-01-071-1/+10
| | | | | | | | | | | | | | We're seeing various failures where the X11 headers are found on the native system but not all libraries are present and hence autoconfiguration of the X11 subcomponents fails. We don't list any of these X11 subcomponents as a dependency so disable them by default. Configuration and dependencies can be added if people need them. (From OE-Core rev: f30ebc0b82b10f56f250a3a9c4f1f2fe9fb281b3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Move to CMake buildAndreas Müller2022-01-072-90/+18
| | | | | | | (From OE-Core rev: c00f79c2f1b8a939e9a19e641c49aa759dd3a342) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wayland: upgrade 1.19.0 -> 1.20.0Denys Dmytriyenko2022-01-052-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | Wayland 1.20.0 is released! This release contains the following major changes: - FreeBSD support has been entirely upstreamed and has been added to our continuous integration system. - The autotools build system has been dropped. Meson has replaced it. - A few protocol additions: wl_surface.offset allows clients to update a surface's buffer offset independently from the buffer, wl_output.name and description allow clients to identify outputs without depending on xdg-output-unstable-v1. - In protocol definitions, events have a new "type" attribute and can now be marked as destructors. - A number of bug fixes, including a race condition when destroying proxies in multi-threaded clients. Also backport libsdl2 patch to fix building against wayland-1.20.0 (From OE-Core rev: d81c8d137895e1fb70bb56c61d53502670d7bc43) Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: update 2.0.16 -> 2.0.18Alexander Kanavin2021-12-171-2/+1
| | | | | | | | | sdl-dlopen option is no longer supported. (From OE-Core rev: 202c138a9b6905440deb2f86a3b650ae79da1bcd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: update 2.0.14 -> 2.0.16Alexander Kanavin2021-08-231-2/+2
| | | | | | | | License-Update: formatting (From OE-Core rev: a120618320292e3e8b8df416617c12d3151e27da) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to new override syntaxRichard Purdie2021-08-021-6/+6
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: remove redundant ${libdir}/cmake from FILES_${PN}-devRoss Burton2021-07-191-2/+0
| | | | | | | | | | | | Since oe-core 543e39ad "bitbake.conf: handle cmake -dev files packaging with default rules" (June 2018) there's no need for recipes to add ${libdir}/cmake or ${datadir}/cmake to FILES_${PN}-dev themselves. (From OE-Core rev: e6f62b8e639a79626d95568c070a410c24bce25e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: disable shared memory for native buildsAwais Belal2021-03-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | libsdl2 currently does not handle the failures that occur due to shared memory in case of remote hosts where it should ideally switch to socket based writing when a failure is seen with shared memory. Consider a scenario where a qemu build is done with graphics support on a build machine and then accessed remotely using ssh. If the remote host's X presents MIT-SHM as an extension, launching qemu fails with runqemu - ERROR - Failed to run qemu: X Error: BadValue Request Major code 130 (MIT-SHM) Request Minor code 3 () This is most often seen when the remote machine doing ssh is a Ubuntu 20.04. The libsdl2 native are mainly used for qemu at this time so it is a major usecase. A report of such a failure was also presented at https://lists.yoctoproject.org/g/poky/topic/78854857 (From OE-Core rev: d12306a6331238a25db52816ad74a775c026d7da) Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade to 2.0.14Yann Dirson2021-02-053-87/+1
| | | | | | | | | | | This version does not support tslib any more, as can be seen by the failed AUH run. Originally-by: Romain Roffé <romain.roffe@blade-group.com> (From OE-Core rev: 5b54e97594ab021a73d3225ed42dac0dfaf3fc15) Signed-off-by: Yann Dirson <yann@blade-group.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Add directfb to PACKAGECONFIG rdependsMark Jonas2020-11-291-1/+1
| | | | | | | | | | | | | | PACKAGECONFIG[directfb] already adds directfb to the build dependencies. But the automatically generated runtime dependencies do not add the directfb package to the runtime dependencies. Most likely this happens because libsdl2 does not link against directfb but uses dlopen() or similar. Thus, the runtime dependency to directfb needs to be declared explicitly. (From OE-Core rev: 62d3cbe7c8261c1c875ff6da11572409262aaf02) Signed-off-by: Mark Jonas <toertel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Disable video-rpiRandy MacLeod2020-11-131-0/+1
| | | | | | | | | | | | | | | | | When building on Raspbery Pi OS/64-bit, libsdl2 fails with the error: .../tmp/work/aarch64-linux/libsdl2-native/2.9.12-r0/SDL2-2.0.12/src/video/raspberry/SDL.rpivideo.h:47:5: error: unknown type name 'EGL_DISPMANX_WINDOW_T' EGL_DISPMANX_WINDOW_T dispman_window; Disable video-rpi to avoid the problem since video suppport is not needed for rpi and this configuration option is harmless when building on x86-64 hosts. (From OE-Core rev: 51009ed1b88aa391aae819fd800b907badc2be8c) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Fix directfb SDL_RenderFillRectMark Jonas2020-11-032-0/+34
| | | | | | | | | | Refactoring of SDL2 internal API has broken SDL_RenderFillRect for DirectFB. The problem has already been fixed upstream. (From OE-Core rev: a7c8dfc1f9beebeb9da7f61b323d85fba82ec1cb) Signed-off-by: Mark Jonas <toertel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Fix directfb syntax errorMark Jonas2020-11-032-0/+50
| | | | | | | | | | Build of libsdl2 with directfb is broken due to a spurious '}' and a missing 'E' since version 2.0.12. The upstream is already fixed. (From OE-Core rev: 8963daba093c3c5e2c60e1e4e057862971b84cb0) Signed-off-by: Mark Jonas <toertel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: enable opengl option for native/nativesdk, subject to 'opengl' in ↵Alexander Kanavin2020-05-271-2/+2
| | | | | | | | | | | DISTRO_FEATURES This allows virgl support in qemu with the SDL frontend (From OE-Core rev: 0e0113c350e599f4da00eda384570e0db04f3b5d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.0.10 -> 2.0.12Andreas Müller2020-03-134-134/+9
| | | | | | | | | | | | * checked all hunks: backported patches can go * for machines with neon in TUNE_FEATURES enable new configure option --enable-arm-neon. If enabled, license must be extended to MIT * license checksum changed by copyright year (From OE-Core rev: aaa1c3ee0fe782fb08a58f100bc04686824de815) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: fix failure appeared in bitbake libsdl2-nativeYanfei Xu2019-12-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When you bitbake libsdl2-native and your host had installed fcitx or ibus, it may cause you bitbake failed in do_compile. Disable fcitx and ibus check with EXTRA_OECONF in bb file. -------------snip--------------------- CC build/SDL_sysfilesystem.lo CC build/SDL_syshaptic.lo CC build/SDL_systimer.lo /poky/build/tmp/work/x86_64-linux/libsdl2-native/2.0.10-r0/SDL2-2.0.10/src/core/linux/SDL_fcitx.c:52:5: error: unknown type name ‘SDL_DBusContext’ SDL_DBusContext *dbus; ^~~~~~~~~~~~~~~ /poky/build/tmp/work/x86_64-linux/libsdl2-native/2.0.10-r0/SDL2-2.0.10/src/core/linux/SDL_fcitx.c:121:8: error: unknown type name ‘DBusHandlerResult’ static DBusHandlerResult ^~~~~~~~~~~~~~~~~ /poky/build/tmp/work/x86_64-linux/libsdl2-native/2.0.10-r0/SDL2-2.0.10/src/core/linux/SDL_fcitx.c:122:20: error: unknown type name ‘DBusConnection’; ------------snip---------------------- (From OE-Core rev: eb286172e413e9d6449dc13ccec1b78c04481eb5) Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: fix race when building in parallelAnuj Mittal2019-11-142-0/+54
| | | | | | | | | | | | | | | | | | | | | | | Fixes a race where it tries to build version res file in build directory before it has even been created. Prevents intermittent errors on autobuilder when building for mingw: | /bin/bash ../SDL2-2.0.10/build-scripts/updaterev.sh | /bin/bash ../SDL2-2.0.10/build-scripts/mkinstalldirs build | mkdir -p -- build | x86_64-pokysdk-mingw32-windres --include-dir=/home/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/x86_64-nativesdk-mingw32-pokysdk-mingw32/nativesdk-libsdl2/2.0.10-r0/recipe-sysroot/opt/poky/3.0/sysroots/x86_64-pokysdk-mingw32/us | /include ../SDL2-2.0.10/src/main/windows/version.rc build/version.o | x86_64-pokysdk-mingw32-windres: build/version.o: No such file or directory | Makefile:692: recipe for target 'build/version.o' failed | make: *** [build/version.o] Error 1 | make: *** Waiting for unfinished jobs.... | touch build/.created | WARNING: exit code 1 from a shell command. (From OE-Core rev: 1cb3c64b70e0b16aabd2fe9cd6012564165ac476) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Fix build failure when using mesa 19.2.1Alistair Francis2019-10-312-0/+42
| | | | | | | | (From OE-Core rev: e5dfed5771f3e988feb1b8744d191ffd742ad2fc) Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: fix CVE-2019-13616Yi Zhao2019-10-192-0/+35
| | | | | | | | | | | | | Reference: https://nvd.nist.gov/vuln/detail/CVE-2019-13616 Patch from: https://hg.libsdl.org/SDL/rev/e7ba650a643a (From OE-Core rev: 70b9cdf86b9c5ed14937500619387a890a57ef20) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: upgrade 2.0.9 -> 2.0.10Anuj Mittal2019-07-312-15/+28
| | | | | | | | | | | License-Update: Change in Copyright Year. Refresh the patch to apply on configure.ac instead of .in. (From OE-Core rev: f00b9aad7c3e2e1ec41597539c4fe2307043b6cf) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>