diff --git a/meson.build b/meson.build index 0b075c4..8c37064 100644 --- a/meson.build +++ b/meson.build @@ -47,13 +47,20 @@ mathlib_dep = cc.find_library('m', required: false) # Drivers drivers = get_option('drivers').split(',') -all_drivers = [ 'upekts', 'upektc', 'upeksonly', 'vcom5s', 'uru4000', 'aes1610', 'aes1660', 'aes2501', 'aes2550', 'aes2660', 'aes3500', 'aes4000', 'vfs101', 'vfs301', 'vfs5011', 'upektc_img', 'etes603', 'vfs0050', 'elan' ] +virtual_drivers = [ ] +default_drivers = [ 'upekts', 'upektc', 'upeksonly', 'vcom5s', 'uru4000', 'aes1610', 'aes1660', 'aes2501', 'aes2550', 'aes2660', 'aes3500', 'aes4000', 'vfs101', 'vfs301', 'vfs5011', 'upektc_img', 'etes603', 'vfs0050', 'elan' ] primitive_drivers = [ 'upekts' ] +all_drivers = default_drivers + virtual_drivers + if drivers == [ 'all' ] drivers = all_drivers endif +if drivers == [ 'default' ] + drivers = default_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 diff --git a/meson_options.txt b/meson_options.txt index f40ebc3..f21e1e7 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,7 +1,7 @@ option('drivers', - description: 'Drivers to integrate', + description: 'Drivers to integrate, "default" selects the default set, "all" selects all drivers', type: 'string', - value: 'all') + value: 'default') option('udev_rules', description: 'Whether to create a udev rules file', type: 'boolean',