Systemd/src/libudev/meson.build
Zbigniew Jędrzejewski-Szmek 3d3075e309 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.
2018-12-21 13:43:20 +01:00

30 lines
800 B
Meson

# SPDX-License-Identifier: LGPL-2.1+
libudev_sources = files('''
libudev.c
libudev-device.c
libudev-device-internal.h
libudev-enumerate.c
libudev-hwdb.c
libudev-list.c
libudev-list-internal.h
libudev-monitor.c
libudev-queue.c
libudev-util.c
libudev-util.h
'''.split())
############################################################
libudev_sym = files('libudev.sym')
libudev_sym_path = meson.current_source_dir() + '/libudev.sym'
install_headers('libudev.h')
libudev_h_path = '@0@/libudev.h'.format(meson.current_source_dir())
configure_file(
input : 'libudev.pc.in',
output : 'libudev.pc',
configuration : substs,
install_dir : pkgconfiglibdir == 'no' ? '' : pkgconfiglibdir)