hyprland/patches/002-disable-udis86.patch

45 lines
1.4 KiB
Diff

Description: Use system version of udis86
Hyprland sources are shipped with a copy of udis86, against
which the binaries are built. We will instead build against
the Debian version of the library.
Author: Alan M Varghese <alan@digistorm.in>
Last-Update: 2024-02-02
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,9 +26,6 @@
#
#
-# udis
-add_subdirectory("subprojects/udis86")
-
# wlroots
message(STATUS "Setting up wlroots")
@@ -88,7 +85,6 @@
"src/"
"subprojects/wlroots/include/"
"subprojects/wlroots/build/include/"
- "subprojects/udis86/"
"protocols/")
set(CMAKE_CXX_STANDARD 23)
add_compile_definitions(WLR_USE_UNSTABLE)
@@ -101,7 +97,7 @@
find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(OpenGL REQUIRED)
-pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-server wayland-client wayland-cursor wayland-protocols cairo libdrm xkbcommon libinput pango pangocairo pixman-1) # we do not check for wlroots, as we provide it ourselves
+pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-server wayland-client wayland-cursor wayland-protocols cairo libdrm xkbcommon libinput pango pangocairo pixman-1 udis86) # we do not check for wlroots, as we provide it ourselves
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
@@ -225,7 +221,7 @@
OpenGL::EGL
OpenGL::GL
Threads::Threads
- libudis86
+ udis86
)
protocol("protocols/idle.xml" "idle" true)