diff options
| author | Markus Volk <f_l_k@t-online.de> | 2025-03-17 13:56:01 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-03-17 22:24:37 -0700 |
| commit | cfc675964b7b4027ff142c592e0f0b0daae391eb (patch) | |
| tree | e6a19702cdac470bbc08c328fc342cdfb2448464 /meta-oe/recipes-graphics/libsdl3 | |
| parent | 0c8c38ed3b7c21fcfb77675f91339a16a0f8a600 (diff) | |
| download | meta-openembedded-cfc675964b7b4027ff142c592e0f0b0daae391eb.tar.gz | |
libsdl3: add fallback to console-build
This fixes a configure error if neither wayland nor x11 are available:
| CMake Error at cmake/macros.cmake:382 (message):
| SDL could not find X11 or Wayland development libraries on your system.
| This means SDL will not be able to create windows on a typical unix
| operating system. Most likely, this is not wanted.
|
| On Linux, install the packages listed at
| https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md#build-dependencies
|
|
| If you really don't need desktop windows, the documentation tells you how
| to skip this check.
| https://github.com/libsdl-org/SDL/blob/main/docs/README-cmake.md#cmake-fails-to-build-without-x11-or-wayland-supp
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Acked-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/libsdl3')
| -rw-r--r-- | meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb b/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb index 63a78907b0..86a0ae6b50 100644 --- a/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb +++ b/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb | |||
| @@ -55,9 +55,11 @@ PACKAGECONFIG ??= " \ | |||
| 55 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio pipewire x11 vulkan', d)} \ | 55 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio pipewire x11 vulkan', d)} \ |
| 56 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ | 56 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ |
| 57 | ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ | 57 | ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ |
| 58 | ${@bb.utils.contains_any("DISTRO_FEATURES", "x11 wayland","","console-build",d)} \ | ||
| 58 | " | 59 | " |
| 59 | PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib," | 60 | PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib," |
| 60 | PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF" | 61 | PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF" |
| 62 | PACKAGECONFIG[console-build] = "-DSDL_UNIX_CONSOLE_BUILD=ON" | ||
| 61 | PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" | 63 | PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" |
| 62 | PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack" | 64 | PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack" |
| 63 | PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm" | 65 | PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm" |
