mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 01:18:31 +00:00
tests: Only build st/oxr tests if XRT_FEATURE_OPENXR is set
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2401>
This commit is contained in:
parent
c1bf3c116c
commit
574457b72c
|
@ -1,4 +1,5 @@
|
||||||
# Copyright 2018-2024, Collabora, Ltd.
|
# Copyright 2018-2024, Collabora, Ltd.
|
||||||
|
# Copyright 2024-2025, NVIDIA CORPORATION.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSL-1.0
|
# SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
|
@ -8,7 +9,6 @@ set(tests
|
||||||
tests_generic_callbacks
|
tests_generic_callbacks
|
||||||
tests_history_buf
|
tests_history_buf
|
||||||
tests_id_ringbuffer
|
tests_id_ringbuffer
|
||||||
tests_input_transform
|
|
||||||
tests_json
|
tests_json
|
||||||
tests_lowpass_float
|
tests_lowpass_float
|
||||||
tests_lowpass_integer
|
tests_lowpass_integer
|
||||||
|
@ -32,6 +32,9 @@ endif()
|
||||||
if(XRT_HAVE_VULKAN)
|
if(XRT_HAVE_VULKAN)
|
||||||
list(APPEND tests tests_comp_client_vulkan tests_uv_to_tangent)
|
list(APPEND tests tests_comp_client_vulkan tests_uv_to_tangent)
|
||||||
endif()
|
endif()
|
||||||
|
if(XRT_FEATURE_OPENXR)
|
||||||
|
list(APPEND tests tests_input_transform)
|
||||||
|
endif()
|
||||||
if(XRT_HAVE_OPENGL
|
if(XRT_HAVE_OPENGL
|
||||||
AND XRT_HAVE_OPENGL_GLX
|
AND XRT_HAVE_OPENGL_GLX
|
||||||
AND XRT_HAVE_SDL2
|
AND XRT_HAVE_SDL2
|
||||||
|
@ -55,7 +58,6 @@ endforeach()
|
||||||
|
|
||||||
target_link_libraries(tests_cxx_wrappers PRIVATE xrt-interfaces)
|
target_link_libraries(tests_cxx_wrappers PRIVATE xrt-interfaces)
|
||||||
target_link_libraries(tests_history_buf PRIVATE aux_math)
|
target_link_libraries(tests_history_buf PRIVATE aux_math)
|
||||||
target_link_libraries(tests_input_transform PRIVATE st_oxr xrt-interfaces xrt-external-openxr)
|
|
||||||
target_link_libraries(tests_lowpass_float PRIVATE aux_math)
|
target_link_libraries(tests_lowpass_float PRIVATE aux_math)
|
||||||
target_link_libraries(tests_lowpass_integer PRIVATE aux_math)
|
target_link_libraries(tests_lowpass_integer PRIVATE aux_math)
|
||||||
target_link_libraries(tests_quatexpmap PRIVATE aux_math)
|
target_link_libraries(tests_quatexpmap PRIVATE aux_math)
|
||||||
|
@ -97,6 +99,11 @@ if(XRT_HAVE_VULKAN)
|
||||||
target_link_libraries(tests_uv_to_tangent PRIVATE comp_render)
|
target_link_libraries(tests_uv_to_tangent PRIVATE comp_render)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(XRT_FEATURE_OPENXR)
|
||||||
|
target_link_libraries(
|
||||||
|
tests_input_transform PRIVATE st_oxr xrt-interfaces xrt-external-openxr
|
||||||
|
)
|
||||||
|
endif()
|
||||||
if(_have_opengl_test)
|
if(_have_opengl_test)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
tests_comp_client_opengl PRIVATE comp_client comp_mock aux_ogl SDL2::SDL2
|
tests_comp_client_opengl PRIVATE comp_client comp_mock aux_ogl SDL2::SDL2
|
||||||
|
|
Loading…
Reference in a new issue