add the rest of the hypr tools
This commit is contained in:
21
files/hypridle/cmakelists.patch
Normal file
21
files/hypridle/cmakelists.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3d60b42..d5bd628 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -31,6 +31,7 @@ configure_file(systemd/hypridle.service.in systemd/hypridle.service @ONLY)
|
||||
# dependencies
|
||||
message(STATUS "Checking deps...")
|
||||
|
||||
+find_package(sdbus-c++ REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(
|
||||
@@ -45,7 +46,7 @@ pkg_check_modules(
|
||||
|
||||
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||
add_executable(hypridle ${SRCFILES})
|
||||
-target_link_libraries(hypridle PRIVATE rt Threads::Threads PkgConfig::deps)
|
||||
+target_link_libraries(hypridle PRIVATE rt Threads::Threads PkgConfig::deps SDBusCpp::sdbus-c++)
|
||||
|
||||
# protocols
|
||||
find_program(WaylandScanner NAMES wayland-scanner)
|
||||
21
files/hyprlock/cmakelists.patch
Normal file
21
files/hyprlock/cmakelists.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d1cec67..2a44d58 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -68,6 +68,7 @@ add_compile_options(-fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=)
|
||||
# dependencies
|
||||
message(STATUS "Checking deps...")
|
||||
|
||||
+find_package(sdbus-c++ REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(OpenGL REQUIRED COMPONENTS EGL GLES3)
|
||||
@@ -96,7 +97,7 @@ pkg_check_modules(
|
||||
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||
add_executable(hyprlock ${SRCFILES})
|
||||
target_link_libraries(hyprlock PRIVATE pam rt Threads::Threads PkgConfig::deps
|
||||
- OpenGL::EGL OpenGL::GLES3)
|
||||
+ OpenGL::EGL OpenGL::GLES3 SDBusCpp::sdbus-c++)
|
||||
|
||||
# protocols
|
||||
pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir)
|
||||
Reference in New Issue
Block a user