Commit d645b581 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

meson: Tidy NorthStar driver selection code (NFC)

parent 26539e79
......@@ -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']
......
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