summaryrefslogtreecommitdiffstats
path: root/src/libudev
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-20 21:31:32 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-21 13:43:20 +0100
commit3d3075e3098cc2c316e90b4b3d47f9cb6958cf6a (patch)
tree33a35ee362ff032fe64c5881aa1d71054a1724fc /src/libudev
parentmeson: allow setting the version string during configuration (diff)
downloadsystemd-3d3075e3098cc2c316e90b4b3d47f9cb6958cf6a.tar.xz
systemd-3d3075e3098cc2c316e90b4b3d47f9cb6958cf6a.zip
meson: simplify handling of pkgconfigdatadir=no, pkgconfiglibdir=no
The idea was that those vars could be configured to 'no' to not install the .pc files, or they could be set to '', and then they would be built but not installed. This was inherited from the autoconf build system. This couldn't work because '' is replaced by the default value. Also, having this level of control doesn't seem necessary, since creating those files is very quick. Skipping with 'no' was implemented only for systemd.pc and not the other .pc files. Let's simplify things and skip installation if the target dir is configured as 'no' for all .pc files.
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/meson.build7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
index 8d86c34189..88189748d3 100644
--- a/src/libudev/meson.build
+++ b/src/libudev/meson.build
@@ -22,9 +22,8 @@ libudev_sym_path = meson.current_source_dir() + '/libudev.sym'
install_headers('libudev.h')
libudev_h_path = '@0@/libudev.h'.format(meson.current_source_dir())
-libudev_pc = configure_file(
+configure_file(
input : 'libudev.pc.in',
output : 'libudev.pc',
- configuration : substs)
-install_data(libudev_pc,
- install_dir : pkgconfiglibdir)
+ configuration : substs,
+ install_dir : pkgconfiglibdir == 'no' ? '' : pkgconfiglibdir)