meson: use template to declare udev plugins

This commit is contained in:
Yu Watanabe
2023-08-03 20:37:16 +09:00
parent 12b4cffdae
commit adedcd39a8
2 changed files with 52 additions and 35 deletions
+3 -2
View File
@@ -258,6 +258,7 @@ endif
if want_tests != 'false' and conf.get('HAVE_DMI') == 1
udev_dmi_memory_id_test = find_program('udev-dmi-memory-id-test.sh')
exe = executables_by_name.get('dmi_memory_id')
if git.found() and fs.is_dir(project_source_root / '.git')
out = run_command(
@@ -276,10 +277,10 @@ if want_tests != 'false' and conf.get('HAVE_DMI') == 1
test('dmidecode_' + fs.stem(p),
udev_dmi_memory_id_test,
suite : 'dist',
args : [udev_prog_paths['dmi_memory_id'].full_path(),
args : [exe.full_path(),
source,
source + '.txt'],
depends : udev_prog_paths['dmi_memory_id'])
depends : exe)
endforeach
endif