mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
d/psvr: Add to meta prober and OpenXR target
Still hidden behind a env variable.
This commit is contained in:
parent
42cddb2580
commit
83159a02c1
|
@ -12,12 +12,16 @@
|
|||
#include <stdlib.h>
|
||||
#include "xrt/xrt_prober.h"
|
||||
|
||||
#ifdef XRT_BUILD_HDK
|
||||
#include "hdk/hdk_interface.h"
|
||||
#endif
|
||||
|
||||
#ifdef XRT_BUILD_OHMD
|
||||
#include "ohmd/oh_interface.h"
|
||||
#endif
|
||||
|
||||
#ifdef XRT_BUILD_HDK
|
||||
#include "hdk/hdk_interface.h"
|
||||
#ifdef XRT_BUILD_PSVR
|
||||
#include "psvr/psvr_interface.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -34,6 +38,11 @@ static const prober_creator DRIVERS[] = {
|
|||
hdk_create_auto_prober,
|
||||
#endif
|
||||
|
||||
#ifdef XRT_BUILD_PSVR
|
||||
// Returns NULL if none found, so OK to go first.
|
||||
psvr_create_auto_prober,
|
||||
#endif
|
||||
|
||||
#ifdef XRT_BUILD_OHMD
|
||||
oh_create_auto_prober,
|
||||
#endif
|
||||
|
|
|
@ -75,14 +75,18 @@ target_link_libraries(${RUNTIME_TARGET}
|
|||
OpenGL::GLX
|
||||
)
|
||||
|
||||
if(BUILD_DRIVER_HDK)
|
||||
target_sources(${RUNTIME_TARGET} PRIVATE $<TARGET_OBJECTS:drv_hdk>)
|
||||
target_link_libraries(${RUNTIME_TARGET} PUBLIC ${HIDAPI_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(BUILD_DRIVER_OHMD)
|
||||
target_sources(${RUNTIME_TARGET} PRIVATE $<TARGET_OBJECTS:drv_ohmd>)
|
||||
target_link_libraries(${RUNTIME_TARGET} PRIVATE OpenHMD::OpenHMD)
|
||||
endif()
|
||||
|
||||
if(BUILD_DRIVER_HDK)
|
||||
target_sources(${RUNTIME_TARGET} PRIVATE $<TARGET_OBJECTS:drv_hdk>)
|
||||
if(BUILD_DRIVER_PSVR)
|
||||
target_sources(${RUNTIME_TARGET} PRIVATE $<TARGET_OBJECTS:drv_psvr>)
|
||||
target_link_libraries(${RUNTIME_TARGET} PUBLIC ${HIDAPI_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue