2020-01-25 14:36:31 +00:00
|
|
|
# Copyright 2019-2020, Collabora, Ltd.
|
2019-09-24 13:43:43 +00:00
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
driver_libs = []
|
|
|
|
driver_deps = []
|
|
|
|
|
|
|
|
if libusb.found()
|
|
|
|
driver_deps += [libusb]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if libjpeg.found()
|
|
|
|
driver_deps += [libjpeg]
|
|
|
|
endif
|
|
|
|
|
2020-01-25 14:36:31 +00:00
|
|
|
if 'dummy' in drivers
|
|
|
|
driver_libs += [lib_drv_dummy]
|
|
|
|
endif
|
|
|
|
|
2019-09-24 13:43:43 +00:00
|
|
|
if 'hdk' in drivers
|
|
|
|
driver_libs += [lib_drv_hdk]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if 'hydra' in drivers
|
|
|
|
driver_libs += [lib_drv_hydra]
|
|
|
|
endif
|
|
|
|
|
2020-01-24 21:35:12 +00:00
|
|
|
if 'ns' in drivers
|
|
|
|
driver_libs += [lib_drv_ns]
|
|
|
|
endif
|
|
|
|
|
2019-09-24 13:43:43 +00:00
|
|
|
if 'ohmd' in drivers
|
|
|
|
driver_libs += [lib_drv_ohmd]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if 'psmv' in drivers
|
|
|
|
driver_libs += [lib_drv_psmv]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if 'psvr' in drivers
|
|
|
|
driver_libs += [lib_drv_psvr]
|
|
|
|
endif
|
|
|
|
|
2020-02-09 15:36:36 +00:00
|
|
|
if 'rs' in drivers
|
|
|
|
driver_libs += [lib_drv_rs]
|
|
|
|
driver_deps += [rs]
|
|
|
|
endif
|
|
|
|
|
2019-09-24 13:43:43 +00:00
|
|
|
if 'v4l2' in drivers
|
|
|
|
driver_libs += [lib_drv_v4l2]
|
|
|
|
driver_deps += [v4l2]
|
|
|
|
endif
|
|
|
|
|
2019-10-02 11:00:52 +00:00
|
|
|
if 'vive' in drivers
|
|
|
|
driver_libs += [lib_drv_vive]
|
|
|
|
endif
|
|
|
|
|
2019-03-12 01:02:06 +00:00
|
|
|
if 'survive' in drivers
|
|
|
|
driver_libs += [lib_drv_survive]
|
|
|
|
endif
|
|
|
|
|
2019-09-24 13:43:43 +00:00
|
|
|
subdir('common')
|
|
|
|
subdir('openxr')
|
|
|
|
subdir('cli')
|
|
|
|
|
2020-05-06 20:44:31 +00:00
|
|
|
if get_option('gui').enabled() or (get_option('gui').auto() and sdl2.found())
|
2019-09-24 13:43:43 +00:00
|
|
|
subdir('gui')
|
|
|
|
endif
|
2020-04-28 23:56:27 +00:00
|
|
|
|
2020-07-14 00:15:27 +00:00
|
|
|
if get_option('service')
|
|
|
|
subdir('service')
|
2020-07-16 13:24:46 +00:00
|
|
|
subdir('ctl')
|
2020-07-14 00:15:27 +00:00
|
|
|
endif
|
|
|
|
|