meson: Autodetect whether autosuspend rules are provided by udev

Upstream systemd/udev is pulling our autosuspend hwdb, so if udev is new
enough, then there is no need to install the file. As such, add
auto-detection logic for the scenario.

This also changes the name of the option and the type to "feature".
This commit is contained in:
Benjamin Berg
2021-01-21 19:55:26 +01:00
committed by Benjamin Berg
parent 52d0409241
commit e7eaecedc6
3 changed files with 19 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
if get_option('udev_rules')
if udev_hwdb_dir != ''
# This file has to be updated using
# ninja -C <builddir> libfprint/sync-udev-hwdb
# Note that the unsupported device list needs to be manually synced from