1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-13 17:18:18 +03:00

meson: use jinja2 in src/udev

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-05-16 16:07:19 +02:00 committed by Yu Watanabe
parent 1d587e04b9
commit 94e41ec098
2 changed files with 8 additions and 5 deletions

View File

@ -158,11 +158,14 @@ if install_sysconfdir_samples
install_dir : join_paths(sysconfdir, 'udev'))
endif
configure_file(
custom_target(
'udev.pc',
input : 'udev.pc.in',
output : 'udev.pc',
configuration : substs,
install_dir : pkgconfigdatadir == 'no' ? '' : pkgconfigdatadir)
command : [meson_render_jinja2, config_h, '@INPUT@'],
capture : true,
install : pkgconfigdatadir != 'no',
install_dir : pkgconfigdatadir)
if install_sysconfdir
meson.add_install_script('sh', '-c',

View File

@ -9,7 +9,7 @@
Name: udev
Description: udev
Version: @PROJECT_VERSION@
Version: {{PROJECT_VERSION}}
udev_dir=@udevlibexecdir@
udev_dir={{UDEVLIBEXECDIR}}
udevdir=${udev_dir}