t/openxr: Use XRT_MODULE_IPC to decide if we do IPC build or not

This lets a external Monado user build the IPC layer and IPC enabled
libopenxr_thing.so without also building the service.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2401>
This commit is contained in:
Jakob Bornecrantz 2024-03-18 21:35:24 +00:00 committed by Marge Bot
parent 05e0160a32
commit cc2fa1ea53
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ add_library(${RUNTIME_TARGET} MODULE target.c libopenxr.def)
# Note: Order may matter in these lists!
target_link_libraries(${RUNTIME_TARGET} PUBLIC aux_vk aux_os aux_util aux_math)
if(XRT_FEATURE_SERVICE)
if(XRT_MODULE_IPC)
target_link_libraries(${RUNTIME_TARGET} PUBLIC st_oxr ipc_client comp_client)
else()
target_link_libraries(

View file

@ -11,7 +11,7 @@
#include "util/u_trace_marker.h"
#ifdef XRT_FEATURE_SERVICE
#ifdef XRT_MODULE_IPC
// Insert the on load constructor to setup trace marker.
U_TRACE_TARGET_SETUP(U_TRACE_WHICH_OPENXR)