1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

meson: add static libs to libudev/libsystemd target aliases

If static libraries are enabled, then group them in the build target together
with the shared libraries, to match the install tags.
This commit is contained in:
Luca Boccassi 2024-05-31 21:44:43 +01:00 committed by Luca Boccassi
parent d12018ca18
commit 4b4393466a

View File

@ -2084,8 +2084,6 @@ libsystemd = shared_library(
install_tag: 'libsystemd',
install_dir : libdir)
alias_target('libsystemd', libsystemd)
install_libsystemd_static = static_library(
'systemd',
libsystemd_sources,
@ -2111,6 +2109,12 @@ install_libsystemd_static = static_library(
userspace],
c_args : libsystemd_c_args + (static_libsystemd_pic ? [] : ['-fno-PIC']))
if static_libsystemd != 'false'
alias_target('libsystemd', libsystemd, install_libsystemd_static)
else
alias_target('libsystemd', libsystemd)
endif
libudev = shared_library(
'udev',
version : libudev_version,
@ -2126,8 +2130,6 @@ libudev = shared_library(
install_tag: 'libudev',
install_dir : libdir)
alias_target('libudev', libudev)
install_libudev_static = static_library(
'udev',
basic_sources,
@ -2147,6 +2149,12 @@ install_libudev_static = static_library(
c_args : static_libudev_pic ? [] : ['-fno-PIC'],
pic : static_libudev_pic)
if static_libudev != 'false'
alias_target('libudev', libudev, install_libudev_static)
else
alias_target('libudev', libudev)
endif
#####################################################################
runtest_env = custom_target(