]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: move declarations of cgls, cgtop, initctl, and systemd-mount
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Jun 2023 18:21:42 +0000 (03:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Aug 2023 12:37:31 +0000 (21:37 +0900)
meson.build
src/cgls/meson.build [new file with mode: 0644]
src/cgtop/meson.build [new file with mode: 0644]
src/initctl/meson.build [new file with mode: 0644]
src/mount/meson.build [new file with mode: 0644]

index 014eaeef1bcce0a7a34a13129a997df06b1e590d..ba048b598c9ab76fa316407cc2f01ea28224b517 100644 (file)
@@ -2379,7 +2379,9 @@ subdir('src/binfmt')
 subdir('src/boot')
 subdir('src/boot/efi')
 subdir('src/busctl')
+subdir('src/cgls')
 subdir('src/cgroups-agent')
+subdir('src/cgtop')
 subdir('src/coredump')
 subdir('src/creds')
 subdir('src/cryptenroll')
@@ -2400,6 +2402,7 @@ subdir('src/home')
 subdir('src/hostname')
 subdir('src/id128')
 subdir('src/import')
+subdir('src/initctl')
 subdir('src/integritysetup')
 subdir('src/journal-remote')
 subdir('src/kernel-install')
@@ -2407,6 +2410,7 @@ subdir('src/locale')
 subdir('src/login')
 subdir('src/machine')
 subdir('src/machine-id-setup')
+subdir('src/mount')
 subdir('src/network')
 subdir('src/notify')
 subdir('src/nspawn')
@@ -2614,47 +2618,6 @@ if want_tests != 'false'
                      systemd_id128.full_path()])
 endif
 
-public_programs += executable(
-        'systemd-cgls',
-        'src/cgls/cgls.c',
-        include_directories : includes,
-        link_with : [libshared],
-        dependencies : [userspace],
-        install_rpath : pkglibdir,
-        install : true)
-
-public_programs += executable(
-        'systemd-cgtop',
-        'src/cgtop/cgtop.c',
-        include_directories : includes,
-        link_with : [libshared],
-        dependencies : [userspace],
-        install_rpath : pkglibdir,
-        install : true)
-
-executable(
-        'systemd-initctl',
-        'src/initctl/initctl.c',
-        include_directories : includes,
-        link_with : [libshared],
-        dependencies : userspace,
-        install_rpath : pkglibdir,
-        install : (conf.get('HAVE_SYSV_COMPAT') == 1),
-        install_dir : libexecdir)
-
-public_programs += executable(
-        'systemd-mount',
-        'src/mount/mount-tool.c',
-        include_directories : includes,
-        link_with : [libshared],
-        dependencies: [libmount,
-                       userspace],
-        install_rpath : pkglibdir,
-        install : true)
-
-meson.add_install_script(meson_make_symlink,
-                         'systemd-mount', bindir / 'systemd-umount')
-
 public_programs += executable(
         'systemd-run',
         'src/run/run.c',
diff --git a/src/cgls/meson.build b/src/cgls/meson.build
new file mode 100644 (file)
index 0000000..f7eea5b
--- /dev/null
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+        executable_template + {
+                'name' : 'systemd-cgls',
+                'public' : true,
+                'sources' : files('cgls.c'),
+        },
+]
diff --git a/src/cgtop/meson.build b/src/cgtop/meson.build
new file mode 100644 (file)
index 0000000..afe6a33
--- /dev/null
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+        executable_template + {
+                'name' : 'systemd-cgtop',
+                'public' : true,
+                'sources' : files('cgtop.c'),
+        },
+]
diff --git a/src/initctl/meson.build b/src/initctl/meson.build
new file mode 100644 (file)
index 0000000..c9fddc9
--- /dev/null
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+        libexec_template + {
+                'name' : 'systemd-initctl',
+                'conditions' : ['HAVE_SYSV_COMPAT'],
+                'sources' : files('initctl.c'),
+        },
+]
diff --git a/src/mount/meson.build b/src/mount/meson.build
new file mode 100644 (file)
index 0000000..7b1af9e
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+        executable_template + {
+                'name' : 'systemd-mount',
+                'public' : true,
+                'sources' : files('mount-tool.c'),
+                'dependencies' : libmount,
+        },
+]
+
+meson.add_install_script(meson_make_symlink,
+                         'systemd-mount', bindir / 'systemd-umount')