meson: use jinja2 for src/libudev/

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-05-19 10:25:26 +09:00
committed by Yu Watanabe
parent 411d1f4c3a
commit ba29ee4cc0
3 changed files with 13 additions and 8 deletions
+5 -5
View File
@@ -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}
+6 -3
View File
@@ -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)
############################################################