summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl2
AgeCommit message (Collapse)Author
4 dayslibsdl2: upgrade 2.30.0 -> 2.30.1Wang Mingyu
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 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20libsdl2: upgrade 2.28.5 -> 2.30.0Yi Zhao
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 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20libsdl2: upgrade 2.28.4 -> 2.28.5Wang Mingyu
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 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-10-19libsdl2: upgrade 2.28.3 -> 2.28.4Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
2023-09-26libsdl2: upgrade 2.28.0 -> 2.28.3Alexander Kanavin
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>
2023-06-28libsdl2: upgrade 2.26.5 -> 2.28.0Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-06-02Revert "libsdl2: disable SDL's own ccache"Chen Qi
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. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-31libsdl2: disable SDL's own ccacheChen Qi
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. 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>
2023-04-13libsdl2: upgrade 2.26.3 -> 2.26.5Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-03-01libsdl2: add missing libdecor RDEPENDMarkus Volk
libdecor is dlopen'ed ... add it as RDEPEND to make it work on runtime Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-02-15libsdl2: upgrade 2.26.2 -> 2.26.3Wang Mingyu
License-Update: Copyright year updated to 2023. 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>
2023-01-12libsdl2: upgrade 2.26.1 -> 2.26.2Wang Mingyu
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>
2023-01-06libsdl2: upgrade 2.26.0 -> 2.26.1Alexander Kanavin
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>
2022-11-27libsdl2: update 2.24.2 -> 2.26.0Markus Volk
- 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 Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-11-14libsdl2: upgrade 2.24.1 -> 2.24.2Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-10-26libsdl2: upgrade 2.24.0 -> 2.24.1wangmy
0001-Disable-libunwind-in-native-OE-builds-by-not-looking.patch refreshed for new version. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-09-08libsdl2: update 2.0.22 -> 2.24.0Markus Volk
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. 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>
2022-09-02libsdl2: follow upstream version is even ruleAlexander Kanavin
As announced here: https://github.com/libsdl-org/SDL/releases/tag/release-2.24.0 Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-05-27libsdl2: add back xvm and xinerama optionsChen Qi
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. 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>
2022-05-21libsdl2: add PACKAGECONFIG for libusb1 and remove obsolete optionsMarkus Volk
Support for XVM and Xinerama has been removed Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-05libsdl2: upgrade 2.0.20 -> 2.0.22Alexander Kanavin
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>
2022-04-14libsdl2: fix licenseKonrad Weihmann
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. Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-04-05libsdl2: Disable libunwind dependency in native buildsCarlos Rafael Giani
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. 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>
2022-03-23libsdl2: Depend on virtual/eglKhem Raj
virtual/libgl may not be implemented by some non-mesa graphics in embedded space, this ensures that libsdl2 can build on such stacks Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-05Revert "libsdl2: Add libunwind-native to the libsdl2-native DEPENDS"Richard Purdie
This reverts commit 1b114fa2d221c9810852526f8b45a3d2c856a502. Unfortunately this breaks on cento7 as libunwind-native doesn't appear to build there.
2022-03-04libsdl2: Add libunwind-native to the libsdl2-native DEPENDSCarlos Rafael Giani
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). Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-18libsdl2: upgrade 2.0.18 -> 2.0.20wangmy
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 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-12libsdl2: fix build if egl.pc sets macros in cflagsMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-08libsdl2: Fix build when libunwind is not usedKhem Raj
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. 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>
2022-01-07libsdl2: Fix X11 configure optionsRichard Purdie
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-07libsdl2: Move to CMake buildAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-05wayland: upgrade 1.19.0 -> 1.20.0Denys Dmytriyenko
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 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-17libsdl2: update 2.0.16 -> 2.0.18Alexander Kanavin
sdl-dlopen option is no longer supported. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-23libsdl2: update 2.0.14 -> 2.0.16Alexander Kanavin
License-Update: formatting Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-30Convert to new override syntaxRichard Purdie
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 "_". Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-19meta: remove redundant ${libdir}/cmake from FILES_${PN}-devRoss Burton
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. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2021-03-20libsdl2: disable shared memory for native buildsAwais Belal
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 Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-02-05libsdl2: upgrade to 2.0.14Yann Dirson
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> Signed-off-by: Yann Dirson <yann@blade-group.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-29libsdl2: Add directfb to PACKAGECONFIG rdependsMark Jonas
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. Signed-off-by: Mark Jonas <toertel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-13libsdl2: Disable video-rpiRandy MacLeod
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. Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-03libsdl2: Fix directfb SDL_RenderFillRectMark Jonas
Refactoring of SDL2 internal API has broken SDL_RenderFillRect for DirectFB. The problem has already been fixed upstream. Signed-off-by: Mark Jonas <toertel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-03libsdl2: Fix directfb syntax errorMark Jonas
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. Signed-off-by: Mark Jonas <toertel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-27libsdl2: enable opengl option for native/nativesdk, subject to 'opengl' in ↵Alexander Kanavin
DISTRO_FEATURES This allows virgl support in qemu with the SDL frontend Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-12libsdl2: upgrade 2.0.10 -> 2.0.12Andreas Müller
* 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 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-30libsdl2: fix failure appeared in bitbake libsdl2-nativeYanfei Xu
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---------------------- Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-14libsdl2: fix race when building in parallelAnuj Mittal
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. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-31libsdl2: Fix build failure when using mesa 19.2.1Alistair Francis
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-10-19libsdl2: fix CVE-2019-13616Yi Zhao
Reference: https://nvd.nist.gov/vuln/detail/CVE-2019-13616 Patch from: https://hg.libsdl.org/SDL/rev/e7ba650a643a Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29libsdl2: upgrade 2.0.9 -> 2.0.10Anuj Mittal
License-Update: Change in Copyright Year. Refresh the patch to apply on configure.ac instead of .in. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18libsdl2: use binconfig-disabledRoss Burton
Just like libsdl, we can rip out the sdl2-config script from the sysroot as pkg-config is preferrable. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>