diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-16 17:33:48 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-19 03:25:26 +0200 |
commit | ba29ee4cc048575ab0627ef215c0f06acd65d330 (patch) | |
tree | 130cc6355105506516604be98d4bf223524ad71a /src/libudev | |
parent | meson: use jinja2 for src/resolve/ (diff) | |
download | systemd-ba29ee4cc048575ab0627ef215c0f06acd65d330.tar.xz systemd-ba29ee4cc048575ab0627ef215c0f06acd65d330.zip |
meson: use jinja2 for src/libudev/
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev.pc.in | 10 | ||||
-rw-r--r-- | src/libudev/meson.build | 9 |
2 files changed, 11 insertions, 8 deletions
diff --git a/src/libudev/libudev.pc.in b/src/libudev/libudev.pc.in index b657b7d068..89028aaa6b 100644 --- a/src/libudev/libudev.pc.in +++ b/src/libudev/libudev.pc.in @@ -7,13 +7,13 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@rootlibdir@ -includedir=@includedir@ +prefix={{PREFIX}} +exec_prefix={{PREFIX}} +libdir={{ROOTLIBDIR}} +includedir={{INCLUDE_DIR}} Name: libudev Description: Library to access udev device information -Version: @PROJECT_VERSION@ +Version: {{PROJECT_VERSION}} Libs: -L${libdir} -ludev Cflags: -I${includedir} 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) ############################################################ |