build: Refuse to build without any drivers

This commit is contained in:
Bastien Nocera 2018-10-11 14:28:04 +02:00
parent 3a7b03f022
commit c88a51cce8

View file

@ -52,6 +52,10 @@ if drivers == [ 'all' ]
drivers = all_drivers drivers = all_drivers
endif endif
if drivers.length() == 0 or drivers[0] == ''
error('Cannot build libfprint without drivers, please specify a valid value for the drivers option')
endif
nss_dep = dependency('', required: false) nss_dep = dependency('', required: false)
imaging_dep = dependency('', required: false) imaging_dep = dependency('', required: false)
foreach driver: drivers foreach driver: drivers