]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: move declaration of PID1 28153/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Jun 2023 06:13:25 +0000 (15:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 13:17:34 +0000 (22:17 +0900)
meson.build
src/core/meson.build

index bd62198ef07069b20a823aed1af5eac4239ab706..4b68ccfeddf39dcd122f16d6d23ee88d74abc099 100644 (file)
@@ -2533,24 +2533,6 @@ endforeach
 
 ############################################################
 
-exe = executable(
-        'systemd',
-        systemd_sources,
-        include_directories : includes,
-        link_with : [libcore,
-                     libshared],
-        dependencies : [libseccomp,
-                        userspace],
-        install_rpath : pkglibdir,
-        install : true,
-        install_dir : libexecdir)
-dbus_programs += exe
-public_programs += exe
-
-meson.add_install_script(meson_make_symlink,
-                         libexecdir / 'systemd',
-                         sbindir / 'init')
-
 exe = executable(
         'systemd-analyze',
         systemd_analyze_sources,
index c3a45dc3b12f5941c1179a26439e052135ec4652..9f04a9e019efe03f19c3074feeccef4757429f5a 100644 (file)
@@ -141,6 +141,20 @@ systemd_sources = files(
         'crash-handler.c',
 )
 
+executables += [
+        libexec_template + {
+                'name' : 'systemd',
+                'dbus' : true,
+                'public' : true,
+                'sources' : systemd_sources,
+                'link_with' : [
+                        libcore,
+                        libshared,
+                ],
+                'dependencies' : libseccomp,
+        },
+]
+
 in_files = [['system.conf',                     pkgsysconfdir],
             ['user.conf',                       pkgsysconfdir],
             ['org.freedesktop.systemd1.policy', polkitpolicydir]]
@@ -183,6 +197,10 @@ if install_sysconfdir
         meson.add_install_script('sh', '-c', mkdir_p.format(sysconfdir / 'xdg/systemd'))
 endif
 
+meson.add_install_script(meson_make_symlink,
+                         libexecdir / 'systemd',
+                         sbindir / 'init')
+
 ############################################################
 
 test_core_base = {