mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-28 04:46:55 -08:00
Sync cmake config for systemd between monado and wivrn
This commit is contained in:
1 parent
3d853e5534
commit
b9d72facb0
2 files changed
+7
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user