libfprint/fprint-list-metainfo: Generate AppStream metainfo

UI tools can use this information to see what package provides support
for specific devices, so let's provide the data since we have it.
This commit is contained in:
Marco Trevisan (Treviño)
2025-02-18 20:45:09 +01:00
committed by Marco Trevisan
parent ee73d67765
commit 385bc5e384
2 changed files with 122 additions and 0 deletions

View File

@@ -327,6 +327,21 @@ udev_hwdb_generator = custom_target('udev-hwdb',
install: false,
)
metainfo = executable('fprint-list-metainfo',
'fprint-list-metainfo.c',
dependencies: libfprint_private_dep,
link_with: libfprint_drivers,
install: false)
metainfo_generator = custom_target('metainfo',
output: 'org.freedesktop.libfprint.metainfo.xml',
depend_files: drivers_sources,
capture: true,
command: [ metainfo ],
install: true,
install_dir: datadir / 'metainfo'
)
if install_udev_rules
udev_rules = executable('fprint-list-udev-rules',
'fprint-list-udev-rules.c',