meson: add systemd.pc and udev.pc to 'devel' target/tag

Same as the other pkg-config files, it is useful to install these in a specific
target that doesn't require compiling anything
This commit is contained in:
Luca Boccassi 2023-06-12 00:41:49 +01:00 committed by Yu Watanabe
parent 581427bd65
commit d30d9bf0ac
3 changed files with 13 additions and 4 deletions

View File

@ -2214,8 +2214,6 @@ subdir('src/udev')
subdir('src/libudev')
subdir('src/cryptsetup/cryptsetup-tokens')
alias_target('devel', libsystemd_pc, libudev_pc)
libsystemd = shared_library(
'systemd',
version : libsystemd_version,
@ -2410,6 +2408,8 @@ subdir('rules.d')
subdir('test')
subdir('src/ukify/test') # needs to be last for test_env variable
alias_target('devel', libsystemd_pc, libudev_pc, systemd_pc, udev_pc)
############################################################
# only static linking apart from libdl, to make sure that the

View File

@ -144,7 +144,6 @@ systemd_sources = files(
in_files = [['system.conf', pkgsysconfdir],
['user.conf', pkgsysconfdir],
['systemd.pc', pkgconfigdatadir],
['org.freedesktop.systemd1.policy', polkitpolicydir]]
foreach item : in_files
@ -160,6 +159,15 @@ foreach item : in_files
install_dir : dir)
endforeach
systemd_pc = custom_target(
'systemd.pc',
input : 'systemd.pc.in',
output : 'systemd.pc',
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
install : pkgconfigdatadir != 'no',
install_tag : 'devel',
install_dir : pkgconfigdatadir)
install_data('org.freedesktop.systemd1.conf',
install_dir : dbuspolicydir)
install_data('org.freedesktop.systemd1.service',

View File

@ -154,12 +154,13 @@ if install_sysconfdir_samples
install_dir : sysconfdir / 'udev')
endif
custom_target(
udev_pc = custom_target(
'udev.pc',
input : 'udev.pc.in',
output : 'udev.pc',
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
install : pkgconfigdatadir != 'no',
install_tag : 'devel',
install_dir : pkgconfigdatadir)
if install_sysconfdir