mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 21:45:59 +01:00
CMake: systemd fixes
This commit is contained in:
parent
29e7dc6428
commit
32b18179dd
1 changed files with 10 additions and 9 deletions
|
@ -17,7 +17,6 @@ set(PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||||
set(INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
|
set(INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
set(BINDIR ${CMAKE_INSTALL_BINDIR})
|
set(BINDIR ${CMAKE_INSTALL_BINDIR})
|
||||||
configure_file(hyprland.pc.in hyprland.pc @ONLY)
|
configure_file(hyprland.pc.in hyprland.pc @ONLY)
|
||||||
configure_file(systemd/hyprland-session.service.in systemd/hyprland-session.service @ONLY)
|
|
||||||
|
|
||||||
set(CMAKE_MESSAGE_LOG_LEVEL "STATUS")
|
set(CMAKE_MESSAGE_LOG_LEVEL "STATUS")
|
||||||
|
|
||||||
|
@ -223,6 +222,16 @@ if(NO_SYSTEMD)
|
||||||
else()
|
else()
|
||||||
message(STATUS "SYSTEMD support is requested (NO_SYSTEMD not defined)...")
|
message(STATUS "SYSTEMD support is requested (NO_SYSTEMD not defined)...")
|
||||||
add_compile_definitions(USES_SYSTEMD)
|
add_compile_definitions(USES_SYSTEMD)
|
||||||
|
configure_file(systemd/hyprland-session.service.in
|
||||||
|
systemd/hyprland-session.service @ONLY)
|
||||||
|
|
||||||
|
# session file -systemd
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/systemd/hyprland-systemd.desktop
|
||||||
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/wayland-sessions)
|
||||||
|
|
||||||
|
# install systemd service
|
||||||
|
install(FILES ${CMAKE_BINARY_DIR}/systemd/hyprland-session.service
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
||||||
|
@ -359,11 +368,6 @@ install(
|
||||||
install(FILES ${CMAKE_SOURCE_DIR}/example/hyprland.desktop
|
install(FILES ${CMAKE_SOURCE_DIR}/example/hyprland.desktop
|
||||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/wayland-sessions)
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/wayland-sessions)
|
||||||
|
|
||||||
|
|
||||||
# session file -systemd
|
|
||||||
install(FILES ${CMAKE_SOURCE_DIR}/systemd/hyprland-systemd.desktop
|
|
||||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/wayland-sessions)
|
|
||||||
|
|
||||||
# allow Hyprland to find assets
|
# allow Hyprland to find assets
|
||||||
add_compile_definitions(DATAROOTDIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}")
|
add_compile_definitions(DATAROOTDIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}")
|
||||||
|
|
||||||
|
@ -404,6 +408,3 @@ install(
|
||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hyprland
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hyprland
|
||||||
FILES_MATCHING
|
FILES_MATCHING
|
||||||
PATTERN "*.h*")
|
PATTERN "*.h*")
|
||||||
|
|
||||||
#install systemd service
|
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/systemd/hyprland-session.service DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user)
|
|
||||||
|
|
Loading…
Reference in a new issue