summaryrefslogtreecommitdiffstats
path: root/src/libudev/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-16 17:33:48 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-19 03:25:26 +0200
commitba29ee4cc048575ab0627ef215c0f06acd65d330 (patch)
tree130cc6355105506516604be98d4bf223524ad71a /src/libudev/meson.build
parentmeson: use jinja2 for src/resolve/ (diff)
downloadsystemd-ba29ee4cc048575ab0627ef215c0f06acd65d330.tar.xz
systemd-ba29ee4cc048575ab0627ef215c0f06acd65d330.zip
meson: use jinja2 for src/libudev/
Diffstat (limited to 'src/libudev/meson.build')
-rw-r--r--src/libudev/meson.build9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
index b3ffb8b10a..61e7cc20a6 100644
--- a/src/libudev/meson.build
+++ b/src/libudev/meson.build
@@ -39,11 +39,14 @@ libudev_static = static_library(
static_libudev = get_option('static-libudev')
static_libudev_pic = static_libudev == 'true' or static_libudev == 'pic'
-configure_file(
+custom_target(
+ 'libudev.pc',
input : 'libudev.pc.in',
output : 'libudev.pc',
- configuration : substs,
- install_dir : pkgconfiglibdir == 'no' ? '' : pkgconfiglibdir)
+ command : [meson_render_jinja2, config_h, '@INPUT@'],
+ capture : true,
+ install : pkgconfiglibdir != 'no',
+ install_dir : pkgconfiglibdir)
############################################################