Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-07-22 23:16:06 +00:00
9 changed files with 1778 additions and 340 deletions
+16 -4
View File
@@ -189,6 +189,22 @@ if (WIVRN_BUILD_SERVER)
target_link_libraries(wivrn-server PUBLIC wivrn-server-dbus)
target_link_libraries(wivrn-server PUBLIC PkgConfig::libnotify)
if(WIVRN_USE_SYSTEMD)
add_custom_command(OUTPUT systemd_manager.c systemd_manager.h
COMMAND ${GDBUS_CODEGEN} ${CMAKE_CURRENT_SOURCE_DIR}/../dbus/org.freedesktop.systemd1.Manager.xml --interface-prefix org.freedesktop.systemd1 --generate-c-code systemd_manager --c-namespace systemd
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../dbus/org.freedesktop.systemd1.Manager.xml )
add_custom_command(OUTPUT systemd_unit.c systemd_unit.h
COMMAND ${GDBUS_CODEGEN} ${CMAKE_CURRENT_SOURCE_DIR}/../dbus/org.freedesktop.systemd1.Unit.xml --interface-prefix org.freedesktop.systemd1 --generate-c-code systemd_unit --c-namespace unit
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../dbus/org.freedesktop.systemd1.Manager.xml )
target_sources(wivrn-server-dbus PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/systemd_manager.c ${CMAKE_CURRENT_BINARY_DIR}/systemd_manager.h
${CMAKE_CURRENT_BINARY_DIR}/systemd_unit.c ${CMAKE_CURRENT_BINARY_DIR}/systemd_unit.h)
target_sources(
wivrn-server
PRIVATE start_systemd_unit.cpp
)
endif()
target_link_libraries(
wivrn-server
PRIVATE
@@ -213,10 +229,6 @@ if (WIVRN_BUILD_SERVER)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wivrn.service
DESTINATION lib/systemd/user/)
configure_file(dist/wivrn-application.service.in wivrn-application.service)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wivrn-application.service
DESTINATION lib/systemd/user/)
install(FILES dist/firewalld-wivrn.xml
RENAME wivrn.xml
DESTINATION lib/firewalld/services)