From c88a51cce87e1c48d8ecfdd5be429b87dd0b88e6 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 11 Oct 2018 14:28:04 +0200 Subject: [PATCH] build: Refuse to build without any drivers --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 6109b321..87d7adfa 100644 --- a/meson.build +++ b/meson.build @@ -52,6 +52,10 @@ if drivers == [ 'all' ] drivers = all_drivers 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) imaging_dep = dependency('', required: false) foreach driver: drivers