summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-05-31 22:44:43 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-06-01 00:38:26 +0200
commit4b4393466a07a1cefa483b64f0e8cb5c28dd059a (patch)
tree3316102eb37883c35903a1a923dfee0dfbe7c628 /meson.build
parentmeson: add alias targets to group nss and pam modules (diff)
downloadsystemd-4b4393466a07a1cefa483b64f0e8cb5c28dd059a.tar.xz
systemd-4b4393466a07a1cefa483b64f0e8cb5c28dd059a.zip
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.
Diffstat (limited to '')
-rw-r--r--meson.build16
1 files changed, 12 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index ea37dda854..b0b8697d50 100644
--- a/meson.build
+++ b/meson.build
@@ -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(