The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: make the pid filename, the socket filename, and the client library suffix customizable

authored by

Guillaume Meunier and committed by
Jakob Bornecrantz
76dff0b4 86e31f54

+9 -5
+2
CMakeLists.txt
··· 311 311 312 312 option(XRT_BUILD_SAMPLES "Enable compiling sample code implementations that will not be linked into any final targets" ON) 313 313 set(XRT_IPC_MSG_SOCK_FILENAME monado_comp_ipc CACHE STRING "Service socket filename") 314 + set(XRT_IPC_SERVICE_PID_FILENAME monado.pid CACHE STRING "Service pidfile filename") 315 + set(XRT_OXR_RUNTIME_SUFFIX monado CACHE STRING "OpenXR client library suffix") 314 316 315 317 # cmake-format: on 316 318
+3
doc/changes/xrt/mr.1567.md
··· 1 + Add `XRT_IPC_SERVICE_PID_FILE_NAME` cmake variable to configure the name of pid file. 2 + 3 + Add `XRT_OXR_RUNTIME_SUFFIX` cmake variable to configure the suffix of the output openXR library.
+2 -3
src/xrt/auxiliary/util/u_process.c
··· 9 9 */ 10 10 11 11 #include "xrt/xrt_config.h" 12 + #include "xrt/xrt_config_build.h" 12 13 13 14 #ifdef XRT_OS_LINUX 14 - 15 - #define PID_FILE_NAME "monado.pid" 16 15 17 16 #ifdef XRT_HAVE_LIBBSD 18 17 #include <bsd/libutil.h> ··· 28 27 XRT_MAYBE_UNUSED static inline int 29 28 get_pidfile_path(char *buf) 30 29 { 31 - int size = u_file_get_path_in_runtime_dir(PID_FILE_NAME, buf, PATH_MAX); 30 + int size = u_file_get_path_in_runtime_dir(XRT_IPC_SERVICE_PID_FILENAME, buf, PATH_MAX); 32 31 if (size == -1) { 33 32 U_LOG_W("Failed to determine runtime dir, not creating pidfile"); 34 33 return -1;
+1
src/xrt/include/xrt/xrt_config_build.h.cmake_in
··· 29 29 #cmakedefine XRT_FEATURE_CLIENT_DEBUG_GUI 30 30 #cmakedefine XRT_FEATURE_WINDOW_PEEK 31 31 #cmakedefine XRT_IPC_MSG_SOCK_FILENAME "@XRT_IPC_MSG_SOCK_FILENAME@" 32 + #cmakedefine XRT_IPC_SERVICE_PID_FILENAME "@XRT_IPC_SERVICE_PID_FILENAME@"
+1 -2
src/xrt/targets/openxr/CMakeLists.txt
··· 4 4 ###### 5 5 # Create a loadable OpenXR driver. 6 6 7 - set(RUNTIME_BARE_SUFFIX monado) 8 - set(RUNTIME_SUFFIX _${RUNTIME_BARE_SUFFIX}) 7 + set(RUNTIME_SUFFIX _${XRT_OXR_RUNTIME_SUFFIX}) 9 8 10 9 set(RUNTIME_TARGET 11 10 ${RUNTIME_PREFIX}openxr${RUNTIME_SUFFIX}