mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 01:18:31 +00:00
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:
parent
05e0160a32
commit
cc2fa1ea53
|
@ -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(
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue