Add compilation flag for USB features

This allows to disable HID/OTG features on Linux to build without
libusb.
This commit is contained in:
Romain Vimont
2022-02-12 12:38:40 +01:00
parent cc27771dd1
commit ca9e1a0514
3 changed files with 8 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ if v4l2_support
src += [ 'src/v4l2_sink.c' ]
endif
usb_support = host_machine.system() == 'linux'
usb_support = get_option('usb') and host_machine.system() == 'linux'
if usb_support
src += [
'src/usb/aoa_hid.c',