Commit 83159a02 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Ryan Pavlik

d/psvr: Add to meta prober and OpenXR target

Still hidden behind a env variable.
parent 42cddb25
Pipeline #35337 passed with stages
in 1 minute and 15 seconds
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment