mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
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:
parent
581427bd65
commit
d30d9bf0ac
@ -2214,8 +2214,6 @@ subdir('src/udev')
|
|||||||
subdir('src/libudev')
|
subdir('src/libudev')
|
||||||
subdir('src/cryptsetup/cryptsetup-tokens')
|
subdir('src/cryptsetup/cryptsetup-tokens')
|
||||||
|
|
||||||
alias_target('devel', libsystemd_pc, libudev_pc)
|
|
||||||
|
|
||||||
libsystemd = shared_library(
|
libsystemd = shared_library(
|
||||||
'systemd',
|
'systemd',
|
||||||
version : libsystemd_version,
|
version : libsystemd_version,
|
||||||
@ -2410,6 +2408,8 @@ subdir('rules.d')
|
|||||||
subdir('test')
|
subdir('test')
|
||||||
subdir('src/ukify/test') # needs to be last for test_env variable
|
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
|
# only static linking apart from libdl, to make sure that the
|
||||||
|
@ -144,7 +144,6 @@ systemd_sources = files(
|
|||||||
|
|
||||||
in_files = [['system.conf', pkgsysconfdir],
|
in_files = [['system.conf', pkgsysconfdir],
|
||||||
['user.conf', pkgsysconfdir],
|
['user.conf', pkgsysconfdir],
|
||||||
['systemd.pc', pkgconfigdatadir],
|
|
||||||
['org.freedesktop.systemd1.policy', polkitpolicydir]]
|
['org.freedesktop.systemd1.policy', polkitpolicydir]]
|
||||||
|
|
||||||
foreach item : in_files
|
foreach item : in_files
|
||||||
@ -160,6 +159,15 @@ foreach item : in_files
|
|||||||
install_dir : dir)
|
install_dir : dir)
|
||||||
endforeach
|
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_data('org.freedesktop.systemd1.conf',
|
||||||
install_dir : dbuspolicydir)
|
install_dir : dbuspolicydir)
|
||||||
install_data('org.freedesktop.systemd1.service',
|
install_data('org.freedesktop.systemd1.service',
|
||||||
|
@ -154,12 +154,13 @@ if install_sysconfdir_samples
|
|||||||
install_dir : sysconfdir / 'udev')
|
install_dir : sysconfdir / 'udev')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
custom_target(
|
udev_pc = custom_target(
|
||||||
'udev.pc',
|
'udev.pc',
|
||||||
input : 'udev.pc.in',
|
input : 'udev.pc.in',
|
||||||
output : 'udev.pc',
|
output : 'udev.pc',
|
||||||
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
||||||
install : pkgconfigdatadir != 'no',
|
install : pkgconfigdatadir != 'no',
|
||||||
|
install_tag : 'devel',
|
||||||
install_dir : pkgconfigdatadir)
|
install_dir : pkgconfigdatadir)
|
||||||
|
|
||||||
if install_sysconfdir
|
if install_sysconfdir
|
||||||
|
Loading…
Reference in New Issue
Block a user