meson: use template to declare udev plugins
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user