meson: Permit disabling (and forcing) installation of udev rules

In some cases (e.g. inside the flatpak), it does not make sense to
generate and install udev rules.
This commit is contained in:
Benjamin Berg
2021-06-25 09:51:44 +02:00
parent e2f199bb6a
commit f37e20b8a0
3 changed files with 13 additions and 4 deletions

View File

@@ -332,7 +332,7 @@ udev_hwdb_generator = custom_target('udev-hwdb',
install: false,
)
if udev_rules
if install_udev_rules
udev_rules = executable('fprint-list-udev-rules',
'fprint-list-udev-rules.c',
dependencies: libfprint_private_dep,