Add dbus server

This commit is contained in:
Guillaume Meunier
2024-09-27 19:25:57 +02:00
parent b93a937ae1
commit d0850e819c
17 changed files with 338 additions and 94 deletions
+2 -12
View File
@@ -26,8 +26,7 @@ include("cmake/AutoOption.cmake")
option(WIVRN_USE_SYSTEM_FREETYPE "Use system FreeType" ON)
auto_option(WIVRN_USE_SYSTEM_BOOST "Use system Boost headers" AUTO)
auto_option(WIVRN_USE_SYSTEM_OPENXR "Use system OpenXR headers" AUTO)
auto_option(WIVRN_USE_SYSTEMD "Use libsystemd, either libsystemd or glib is required to show pretty hostname" AUTO)
auto_option(WIVRN_USE_GLIB "Use glib, required to show pretty hostname inside a flatpak container" OFF)
auto_option(WIVRN_USE_SYSTEMD "Use libsystemd" AUTO)
option(WIVRN_USE_ANDROID_VALIDATION_LAYER "Download the android version of the Vulkan validation layer" OFF)
option(WIVRN_BUILD_CLIENT "Build WiVRn client" OFF)
option(WIVRN_BUILD_SERVER "Build WiVRn server" ON)
@@ -144,16 +143,7 @@ if (WIVRN_BUILD_SERVER)
find_package(nlohmann_json REQUIRED)
find_package(CLI11 REQUIRED)
if (WIVRN_USE_GLIB STREQUAL "AUTO")
pkg_check_modules(glib2 IMPORTED_TARGET glib-2.0 gio-2.0)
if(glib2_FOUND)
set(WIVRN_USE_GLIB ON)
else()
set(WIVRN_USE_GLIB OFF)
endif()
elseif (WIVRN_USE_GLIB)
pkg_check_modules(glib2 REQUIRED IMPORTED_TARGET glib-2.0 gio-2.0)
endif()
pkg_check_modules(glib2 REQUIRED IMPORTED_TARGET glib-2.0 gio-2.0 gio-unix-2.0)
endif()
if (WIVRN_BUILD_CLIENT AND NOT ANDROID)