mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-27 10:10:17 +00:00
meson: Tidy NorthStar driver selection code (NFC)
This commit is contained in:
parent
26539e79b6
commit
d645b58186
11
meson.build
11
meson.build
|
@ -130,9 +130,6 @@ drivers = get_option('drivers')
|
|||
if 'ohmd' in drivers
|
||||
openhmd_required = true
|
||||
endif
|
||||
if 'ns' in drivers
|
||||
ns_required = true
|
||||
endif
|
||||
if 'psvr' in drivers
|
||||
hidapi_required = true
|
||||
endif
|
||||
|
@ -141,19 +138,13 @@ if 'v4l2' in drivers
|
|||
endif
|
||||
|
||||
if 'auto' in drivers
|
||||
drivers += ['dummy', 'hdk', 'hydra', 'psmv']
|
||||
drivers += ['dummy', 'hdk', 'hydra', 'ns', 'psmv']
|
||||
endif
|
||||
|
||||
openhmd = dependency('openhmd', required: openhmd_required)
|
||||
hidapi = dependency('hidapi-libusb', required: hidapi_required)
|
||||
v4l2 = dependency('libv4l2', required: v4l2_required)
|
||||
|
||||
if 'auto' in drivers or 'ns' in drivers
|
||||
if 'ns' not in drivers
|
||||
drivers += ['ns']
|
||||
endif
|
||||
endif
|
||||
|
||||
if openhmd.found() and ('auto' in drivers or 'ohmd' in drivers)
|
||||
if 'ohmd' not in drivers
|
||||
drivers += ['ohmd']
|
||||
|
|
Loading…
Reference in a new issue