]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: systemd-repart.standalone
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Oct 2022 06:31:30 +0000 (08:31 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 31 Oct 2022 20:12:55 +0000 (21:12 +0100)
Repart is growing into an important tool on its own, and users might
want to install newer versions on systems that have older systemd. Let's
make this easier by providing a standalone binary.

Related to https://github.com/systemd/mkosi/issues/1228.

meson.build

index f6db7559099fa2fe40c4c27b4e0dc3a247349ecf..6b7fbc70518f35f06c19375785171a21729f090b 100644 (file)
@@ -3706,6 +3706,25 @@ if conf.get('ENABLE_REPART') == 1
                 install : true,
                 install_dir : rootbindir)
         public_programs += exe
+
+        if have_standalone_binaries
+                exe = executable(
+                        'systemd-repart.standalone',
+                        systemd_repart_sources,
+                        include_directories : includes,
+                        c_args : '-DSTANDALONE',
+                        link_with : [libshared_static,
+                                     libbasic,
+                                     libbasic_gcrypt,
+                                     libsystemd_static],
+                        dependencies : [threads,
+                                        libblkid,
+                                        libfdisk,
+                                        libopenssl],
+                        install_rpath : rootpkglibdir,
+                        install : true,
+                        install_dir : rootbindir)
+        endif
 endif
 
 executable(