Merge pull request #28620 from yuwata/meson-use-template-part5
meson: use template to declare executables (part 5)
This commit is contained in:
@@ -116,6 +116,23 @@ libudevd_core = static_library(
|
||||
userspace],
|
||||
build_by_default : false)
|
||||
|
||||
executables += [
|
||||
executable_template + {
|
||||
'name' : 'udevadm',
|
||||
'public' : true,
|
||||
'sources' : udevadm_sources,
|
||||
'link_with' : [libudevd_core],
|
||||
'dependencies' : [
|
||||
libacl,
|
||||
libblkid,
|
||||
libidn,
|
||||
libkmod,
|
||||
threads,
|
||||
],
|
||||
'install_rpath' : udev_rpath,
|
||||
},
|
||||
]
|
||||
|
||||
udev_progs = [['ata_id/ata_id.c'],
|
||||
['cdrom_id/cdrom_id.c'],
|
||||
['fido_id/fido_id.c',
|
||||
@@ -150,6 +167,10 @@ foreach prog : udev_progs
|
||||
public_programs += exe
|
||||
endforeach
|
||||
|
||||
meson.add_install_script(meson_make_symlink,
|
||||
bindir / 'udevadm',
|
||||
libexecdir / 'systemd-udevd')
|
||||
|
||||
if install_sysconfdir_samples
|
||||
install_data('udev.conf',
|
||||
install_dir : sysconfdir / 'udev')
|
||||
|
||||
Reference in New Issue
Block a user