summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-04 13:13:30 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-18 23:06:32 +0100
commit3976f372ae91e1cbe5ff9873aadfc2c43400452e (patch)
treed9130f7257146124b6e94db0b5849c18922808b1 /meson.build
parentmeson: move and gather find_program() (diff)
downloadsystemd-3976f372ae91e1cbe5ff9873aadfc2c43400452e.tar.xz
systemd-3976f372ae91e1cbe5ff9873aadfc2c43400452e.zip
meson: move libudev related definitions to src/libudev/meson.build
Also, this makes libudev.so built in build directory.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build39
1 files changed, 35 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index c018cd60f8..bea4d56155 100644
--- a/meson.build
+++ b/meson.build
@@ -1641,13 +1641,14 @@ includes = include_directories('src/basic',
subdir('po')
subdir('catalog')
-subdir('src/libudev')
-subdir('src/systemd')
subdir('src/basic')
subdir('src/libsystemd')
subdir('src/libsystemd-network')
subdir('src/journal')
subdir('src/login')
+subdir('src/shared')
+subdir('src/udev')
+subdir('src/libudev')
libjournal_core = static_library(
'journal-core',
@@ -1702,16 +1703,44 @@ install_libsystemd_static = static_library(
libgcrypt],
c_args : libsystemd_c_args + (static_libsystemd_pic ? [] : ['-fno-PIC']))
+libudev = shared_library(
+ 'udev',
+ disable_mempool_c,
+ version : libudev_version,
+ include_directories : includes,
+ link_args : ['-shared',
+ '-Wl,--version-script=' + libudev_sym_path],
+ link_with : [libsystemd_static, libshared_static],
+ link_whole : libudev_basic,
+ dependencies : [threads],
+ link_depends : libudev_sym,
+ install : true,
+ install_dir : rootlibdir)
+
+install_libudev_static = static_library(
+ 'udev',
+ basic_sources,
+ shared_sources,
+ libsystemd_sources,
+ libudev_sources,
+ disable_mempool_c,
+ include_directories : includes,
+ build_by_default : static_libudev != 'false',
+ install : static_libudev != 'false',
+ install_dir : rootlibdir,
+ link_depends : libudev_sym,
+ dependencies : libshared_deps + [libmount],
+ c_args : static_libudev_pic ? [] : ['-fno-PIC'],
+ pic : static_libudev_pic)
+
############################################################
# binaries that have --help and are intended for use by humans,
# usually, but not always, installed in /bin.
public_programs = []
-subdir('src/shared')
subdir('src/core')
subdir('src/shutdown')
-subdir('src/udev')
subdir('src/network')
subdir('src/analyze')
@@ -1741,6 +1770,8 @@ subdir('src/vconsole')
subdir('src/boot/efi')
subdir('src/xdg-autostart-generator')
+subdir('src/systemd')
+
subdir('src/test')
subdir('src/fuzz')
subdir('rules.d')