meson: Define XRT_HAVE_HIDAPI if using it

This commit is contained in:
Ryan Pavlik 2022-03-29 09:31:34 -05:00
parent b4f2bc88c8
commit 96314d4f76

View file

@ -64,6 +64,10 @@ if sdl2.found()
have_conf.set('XRT_HAVE_SDL2', true)
endif
if hidapi.found() and 'psvr' in drivers
have_conf.set('XRT_HAVE_HIDAPI', true)
endif
if has_v4l2_header and 'v4l2' in drivers
have_conf.set('XRT_HAVE_V4L2', true)
endif