Make SDL3 optional

Gaming shell plugin only builds when SDL3 is present.
KDE CI does not provide SDL3, so the hard REQUIRED was
breaking configure on every pipeline run.
This commit is contained in:
Marco Allegretti 2026-04-28 08:44:36 +02:00
parent 7494733ca5
commit 5c5d962b34
3 changed files with 4 additions and 3 deletions

View file

@ -112,7 +112,7 @@ set_package_properties(PlasmaWaylandProtocols PROPERTIES
find_package(LibKWorkspace CONFIG REQUIRED)
find_package(Libudev REQUIRED)
find_package(SDL3 REQUIRED)
find_package(SDL3)
find_package(KWinDBusInterface)
set_package_properties(KWinDBusInterface PROPERTIES DESCRIPTION "KWin DBus interface"

View file

@ -14,4 +14,6 @@ add_subdirectory(wallpaperimageplugin)
add_subdirectory(dpmsplugin)
add_subdirectory(screenbrightnessplugin)
add_subdirectory(raiselockscreenplugin)
add_subdirectory(gamingshellplugin)
if(SDL3_FOUND)
add_subdirectory(gamingshellplugin)
endif()

View file

@ -1,7 +1,6 @@
# SPDX-FileCopyrightText: 2026 Marco Allegretti
# SPDX-License-Identifier: EUPL-1.2
find_package(SDL3 REQUIRED)
find_package(Qt6 REQUIRED COMPONENTS Sql DBus)
ecm_add_qml_module(gamingshellplugin URI org.kde.plasma.private.mobileshell.gamingshellplugin GENERATE_PLUGIN_SOURCE)