summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-06-25 20:35:47 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-08-01 14:37:31 +0200
commit5371c269335f9d7013d9f25ebe12d036e2bf5d0f (patch)
treea743196f5a04cdf3839879a0de46c030fa5661a2 /src
parentmeson: move declarations of hwdb, sysusers, and tmpfiles (diff)
downloadsystemd-5371c269335f9d7013d9f25ebe12d036e2bf5d0f.tar.xz
systemd-5371c269335f9d7013d9f25ebe12d036e2bf5d0f.zip
meson: move declarations of socket-proxy, udevadm, quotacheck, and shutdown
Diffstat (limited to 'src')
-rw-r--r--src/quotacheck/meson.build9
-rw-r--r--src/shutdown/meson.build21
-rw-r--r--src/socket-proxy/meson.build10
-rw-r--r--src/udev/meson.build21
4 files changed, 61 insertions, 0 deletions
diff --git a/src/quotacheck/meson.build b/src/quotacheck/meson.build
new file mode 100644
index 0000000000..0a3c3e366e
--- /dev/null
+++ b/src/quotacheck/meson.build
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+ libexec_template + {
+ 'name' : 'systemd-quotacheck',
+ 'conditions' : ['ENABLE_QUOTACHECK'],
+ 'sources' : files('quotacheck.c'),
+ },
+]
diff --git a/src/shutdown/meson.build b/src/shutdown/meson.build
index 6538882692..ca7ea3840d 100644
--- a/src/shutdown/meson.build
+++ b/src/shutdown/meson.build
@@ -9,6 +9,27 @@ systemd_shutdown_sources = files(
'umount.c',
)
+executables += [
+ libexec_template + {
+ 'name' : 'systemd-shutdown',
+ 'sources' : systemd_shutdown_sources,
+ 'dependencies' : libmount,
+ },
+ libexec_template + {
+ 'name' : 'systemd-shutdown.standalone',
+ 'sources' : systemd_shutdown_sources,
+ 'c_args' : '-DSTANDALONE',
+ 'link_with' : [
+ libbasic,
+ libshared_static,
+ libsystemd_static,
+ ],
+ 'dependencies' : libmount,
+ 'build_by_default' : have_standalone_binaries,
+ 'install' : have_standalone_binaries,
+ },
+]
+
tests += [
{
'sources' : files(
diff --git a/src/socket-proxy/meson.build b/src/socket-proxy/meson.build
new file mode 100644
index 0000000000..52d63a8440
--- /dev/null
+++ b/src/socket-proxy/meson.build
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+ libexec_template + {
+ 'name' : 'systemd-socket-proxyd',
+ 'public' : true,
+ 'sources' : files('socket-proxyd.c'),
+ 'dependencies' : threads,
+ },
+]
diff --git a/src/udev/meson.build b/src/udev/meson.build
index baedcaa2fe..932a718651 100644
--- a/src/udev/meson.build
+++ b/src/udev/meson.build
@@ -116,6 +116,23 @@ libudevd_core = static_library(
userspace],
build_by_default : false)
+executables += [
+ executable_template + {
+ 'name' : 'udevadm',
+ 'public' : true,
+ 'sources' : udevadm_sources,
+ 'link_with' : [libudevd_core],
+ 'dependencies' : [
+ libacl,
+ libblkid,
+ libidn,
+ libkmod,
+ threads,
+ ],
+ 'install_rpath' : udev_rpath,
+ },
+]
+
udev_progs = [['ata_id/ata_id.c'],
['cdrom_id/cdrom_id.c'],
['fido_id/fido_id.c',
@@ -150,6 +167,10 @@ foreach prog : udev_progs
public_programs += exe
endforeach
+meson.add_install_script(meson_make_symlink,
+ bindir / 'udevadm',
+ libexecdir / 'systemd-udevd')
+
if install_sysconfdir_samples
install_data('udev.conf',
install_dir : sysconfdir / 'udev')