Sync cmake config for systemd between monado and wivrn

This commit is contained in:
Patrick Nicolas committed 2024-01-03 10:42:04 +01:00
1 parent 3d853e5534
commit b9d72facb0
2 files changed
+7

No files matched your search

+2
View File
@@ -34,6 +34,8 @@ set(XRT_FEATURE_WINDOW_PEEK OFF)
set(XRT_FEATURE_WINDOW_PEEK OFF)
set(XRT_HAVE_SDL2 OFF)
set(XRT_HAVE_SYSTEMD ${WIVRN_USE_SYSTEMD})
set(XRT_INSTALL_SYSTEMD_UNIT_FILES OFF)
set(BUILD_DOC OFF)
set(BUILD_TESTING OFF)
+5
View File
@@ -23,6 +23,7 @@
#include "pidfd.h"
#include "version.h"
#include "wivrn_config.h"
#include "avahi_publisher.h"
#include "hostname.h"
@@ -48,6 +49,7 @@ void avahi_set_bool_callback(AvahiWatch * w, int fd, AvahiWatchEvent event, void
*flag = true;
}
#ifdef WIVRN_USE_SYSTEMD
std::string socket_path()
{
char sock_file[PATH_MAX];
@@ -108,6 +110,7 @@ int create_listen_socket()
return fd;
}
#endif
pid_t start_application()
{
@@ -166,7 +169,9 @@ void waitpid_verbose(pid_t pid, const std::string & name)
int inner_main(int argc, char * argv[])
{
std::cerr << "WiVRn " << xrt::drivers::wivrn::git_version << " starting" << std::endl;
#ifdef WIVRN_USE_SYSTEMD
create_listen_socket();
#endif
u_trace_marker_init();