forked from gentoo/kde
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kde-plasma/plasma-desktop: Backport IUSE input_devices_wacom to 6.2
Bug: https://bugs.gentoo.org/942817 Signed-off-by: Andreas Sturmlechner <[email protected]>
- Loading branch information
Showing
2 changed files
with
103 additions
and
5 deletions.
There are no files selected for viewing
94 changes: 94 additions & 0 deletions
94
kde-plasma/plasma-desktop/files/plasma-desktop-6.2.3-tablet-kcm-optional.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
From 999deeefddc9482e9e360643578442b958a9c2ef Mon Sep 17 00:00:00 2001 | ||
From: Andreas Sturmlechner <[email protected]> | ||
Date: Mon, 4 Nov 2024 23:15:19 +0100 | ||
Subject: [PATCH] cmake: Add BUILD_KCM_TABLET option to conditionalise Wayland | ||
deps | ||
|
||
Follow-up to 240ca31717ebed55e43ffaf6ac906dea07e9f4c6 | ||
|
||
Signed-off-by: Andreas Sturmlechner <[email protected]> | ||
(cherry picked from commit 8f0e9b4d625024469b4fbd0468e767e45b464872) | ||
--- | ||
CMakeLists.txt | 31 +++++++++++++++++++------------ | ||
kcms/CMakeLists.txt | 5 ++++- | ||
2 files changed, 23 insertions(+), 13 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 6f764d1ef4..a76dd3ff2f 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -40,6 +40,7 @@ option(BUILD_KCM_MOUSE_KWIN_WAYLAND "Build the Mouse KCM's KWin+Wayland backend" | ||
option(BUILD_KCM_MOUSE_X11 "Build the Mouse KCM's X11 backend" ON) | ||
option(BUILD_KCM_TOUCHPAD_KWIN_WAYLAND "Build the Touchpad KCM's KWin+Wayland backend" ON) | ||
option(BUILD_KCM_TOUCHPAD_X11 "Build the Touchpad KCM's X11 backend" ON) | ||
+option(BUILD_KCM_TABLET "Build the Tablet KCM" ON) | ||
|
||
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS | ||
Quick | ||
@@ -51,7 +52,10 @@ find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS | ||
Core5Compat | ||
Sql # kcms/activities | ||
) | ||
-find_package(Qt6 ${QT_MIN_VERSION} CONFIG OPTIONAL_COMPONENTS WaylandClient) | ||
+ | ||
+if(BUILD_KCM_TABLET) | ||
+ find_package(Qt6WaylandClient ${QT_MIN_VERSION} CONFIG REQUIRED) | ||
+endif() | ||
|
||
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS | ||
Auth | ||
@@ -139,17 +143,20 @@ set_package_properties(KF6QQC2DesktopStyle PROPERTIES | ||
TYPE RUNTIME | ||
) | ||
|
||
-find_package(WaylandProtocols 1.25) | ||
-set_package_properties(WaylandProtocols PROPERTIES | ||
- TYPE REQUIRED | ||
- PURPOSE "Collection of Wayland protocols that add functionality not available in the Wayland core protocol" | ||
- URL "https://gitlab.freedesktop.org/wayland/wayland-protocols/" | ||
-) | ||
-find_package(Wayland 1.2) | ||
-set_package_properties(Wayland PROPERTIES | ||
- TYPE REQUIRED | ||
- PURPOSE "Required for building Tablet input KCM" | ||
-) | ||
+if(BUILD_KCM_TABLET) | ||
+ find_package(WaylandProtocols 1.25) | ||
+ set_package_properties(WaylandProtocols PROPERTIES | ||
+ TYPE REQUIRED | ||
+ PURPOSE "Collection of Wayland protocols that add functionality not available in the Wayland core protocol" | ||
+ URL "https://gitlab.freedesktop.org/wayland/wayland-protocols/" | ||
+ ) | ||
+ find_package(Wayland 1.2) | ||
+ set_package_properties(Wayland PROPERTIES | ||
+ TYPE REQUIRED | ||
+ PURPOSE "Required for building Tablet input KCM" | ||
+ ) | ||
+ pkg_check_modules(LIBWACOM libwacom REQUIRED IMPORTED_TARGET) | ||
+endif() | ||
|
||
find_package(SDL2 2.0.16) | ||
set_package_properties(SDL2 PROPERTIES | ||
diff --git a/kcms/CMakeLists.txt b/kcms/CMakeLists.txt | ||
index 5b204a7c19..cea880c139 100644 | ||
--- a/kcms/CMakeLists.txt | ||
+++ b/kcms/CMakeLists.txt | ||
@@ -26,7 +26,6 @@ add_subdirectory(kded) | ||
add_subdirectory(runners) | ||
add_subdirectory(spellchecking) | ||
add_subdirectory(qtquicksettings) | ||
-add_subdirectory(tablet) | ||
add_subdirectory(touchscreen) | ||
|
||
add_subdirectory(workspaceoptions) | ||
@@ -42,3 +41,7 @@ endif() | ||
if (BUILD_KCM_TOUCHPAD_KWIN_WAYLAND OR BUILD_KCM_TOUCHPAD_X11) | ||
add_subdirectory(touchpad) | ||
endif() | ||
+ | ||
+if(BUILD_KCM_TABLET) | ||
+ add_subdirectory(tablet) | ||
+endif() | ||
-- | ||
2.47.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters