d/psvr: Add to meta prober and OpenXR target

Still hidden behind a env variable.
This commit is contained in:
Jakob Bornecrantz 2019-04-20 02:24:09 +01:00 committed by Ryan Pavlik
parent 42cddb2580
commit 83159a02c1
2 changed files with 17 additions and 4 deletions

View file

@ -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

View file

@ -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()