···269option_with_deps(XRT_FEATURE_STEAMVR_PLUGIN "Build SteamVR plugin" DEPENDS "NOT ANDROID")
270option_with_deps(XRT_FEATURE_TRACING "Enable debug tracing on supported platforms" DEFAULT OFF DEPENDS "XRT_HAVE_PERCETTO OR XRT_HAVE_TRACY")
271option_with_deps(XRT_FEATURE_WINDOW_PEEK "Enable a window that displays the content of the HMD on screen" DEPENDS XRT_HAVE_SDL2)
0272option(XRT_FEATURE_SSE2 "Build using SSE2 instructions, if building for 32-bit x86" ON)
273274if (XRT_FEATURE_SERVICE)
275 # Disable the client debug gui by default for out-of-proc -
276 # too many clients have problems with depending on SDL/GStreamer/etc and we rarely use it in this configuration
277- option(XRT_FEATURE_CLIENT_DEBUG_GUI "Allow clients to have their own instances of the debug gui" OFF)
278else()
279 # Enable the client debug gui by default for in-proc -
280 # In in-proc, the client debug gui is the same as the server debug gui, and we use it a lot in this configuration
281- option(XRT_FEATURE_CLIENT_DEBUG_GUI "Allow clients to have their own instances of the debug gui" ON)
282endif()
283284# systemd detailed config
···526message(STATUS "#")
527message(STATUS "# FEATURE_CLIENT_DEBUG_GUI: ${XRT_FEATURE_CLIENT_DEBUG_GUI}")
528message(STATUS "# FEATURE_COLOR_LOG: ${XRT_FEATURE_COLOR_LOG}")
0529message(STATUS "# FEATURE_MERCURY_HANDTRACKING: ${XRT_MODULE_MERCURY_HANDTRACKING}")
530message(STATUS "# FEATURE_OPENXR: ${XRT_FEATURE_OPENXR}")
531message(STATUS "# FEATURE_OPENXR_LAYER_CUBE: ${XRT_FEATURE_OPENXR_LAYER_CUBE}")
···269option_with_deps(XRT_FEATURE_STEAMVR_PLUGIN "Build SteamVR plugin" DEPENDS "NOT ANDROID")
270option_with_deps(XRT_FEATURE_TRACING "Enable debug tracing on supported platforms" DEFAULT OFF DEPENDS "XRT_HAVE_PERCETTO OR XRT_HAVE_TRACY")
271option_with_deps(XRT_FEATURE_WINDOW_PEEK "Enable a window that displays the content of the HMD on screen" DEPENDS XRT_HAVE_SDL2)
272+option_with_deps(XRT_FEATURE_DEBUG_GUI "Enable debug window to be used" DEPENDS XRT_HAVE_SDL2)
273option(XRT_FEATURE_SSE2 "Build using SSE2 instructions, if building for 32-bit x86" ON)
274275if (XRT_FEATURE_SERVICE)
276 # Disable the client debug gui by default for out-of-proc -
277 # too many clients have problems with depending on SDL/GStreamer/etc and we rarely use it in this configuration
278+ option_with_deps(XRT_FEATURE_CLIENT_DEBUG_GUI "Allow clients to have their own instances of the debug gui" DEFAULT OFF DEPENDS XRT_FEATURE_DEBUG_GUI)
279else()
280 # Enable the client debug gui by default for in-proc -
281 # In in-proc, the client debug gui is the same as the server debug gui, and we use it a lot in this configuration
282+ option_with_deps(XRT_FEATURE_CLIENT_DEBUG_GUI "Allow clients to have their own instances of the debug gui" DEFAULT ON DEPENDS XRT_FEATURE_DEBUG_GUI)
283endif()
284285# systemd detailed config
···527message(STATUS "#")
528message(STATUS "# FEATURE_CLIENT_DEBUG_GUI: ${XRT_FEATURE_CLIENT_DEBUG_GUI}")
529message(STATUS "# FEATURE_COLOR_LOG: ${XRT_FEATURE_COLOR_LOG}")
530+message(STATUS "# FEATURE_DEBUG_GUI: ${XRT_FEATURE_DEBUG_GUI}")
531message(STATUS "# FEATURE_MERCURY_HANDTRACKING: ${XRT_MODULE_MERCURY_HANDTRACKING}")
532message(STATUS "# FEATURE_OPENXR: ${XRT_FEATURE_OPENXR}")
533message(STATUS "# FEATURE_OPENXR_LAYER_CUBE: ${XRT_FEATURE_OPENXR_LAYER_CUBE}")
···295 //! Handle for the current process, e.g. pidfile on linux
296 struct u_process *process;
297298- /* ---- HACK ---- */
299- void *hack;
300- /* ---- HACK ---- */
301302 //! System devices.
303 struct xrt_system_devices *xsysd;
···295 //! Handle for the current process, e.g. pidfile on linux
296 struct u_process *process;
297298+ struct u_debug_gui *debug_gui;
00299300 //! System devices.
301 struct xrt_system_devices *xsysd;
···1360 //! Common structure for things referred to by OpenXR handles.
1361 struct oxr_handle_base handle;
13621363- /* ---- HACK ---- */
1364- void *hack;
1365- /* ---- HACK ---- */
13661367 struct xrt_instance *xinst;
1368
···1360 //! Common structure for things referred to by OpenXR handles.
1361 struct oxr_handle_base handle;
13621363+ struct u_debug_gui *debug_ui;
0013641365 struct xrt_instance *xinst;
1366