summaryrefslogtreecommitdiffstats
path: root/src/partition/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
commit55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch)
tree33f869f55a1b149e9b7c2b7e201867ca5dd52992 /src/partition/meson.build
parentInitial commit. (diff)
downloadsystemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz
systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/partition/meson.build')
-rw-r--r--src/partition/meson.build62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/partition/meson.build b/src/partition/meson.build
new file mode 100644
index 0000000..78cde2f
--- /dev/null
+++ b/src/partition/meson.build
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+ libexec_template + {
+ 'name' : 'systemd-growfs',
+ 'sources' : files('growfs.c'),
+ },
+ libexec_template + {
+ 'name' : 'systemd-makefs',
+ 'sources' : files('makefs.c'),
+ },
+ executable_template + {
+ 'name' : 'systemd-repart',
+ 'public' : true,
+ 'conditions' : ['ENABLE_REPART'],
+ 'sources' : files('repart.c'),
+ 'link_with' : [
+ libshared,
+ libshared_fdisk,
+ ],
+ 'dependencies' : [
+ libblkid,
+ libfdisk,
+ libopenssl,
+ threads,
+ ],
+ },
+ executable_template + {
+ 'name' : 'systemd-repart.standalone',
+ 'public' : have_standalone_binaries,
+ 'conditions' : ['ENABLE_REPART'],
+ 'sources' : files('repart.c'),
+ 'c_args' : '-DSTANDALONE',
+ 'link_with' : [
+ libbasic,
+ libbasic_gcrypt,
+ libshared_fdisk,
+ libshared_static,
+ libsystemd_static,
+ ],
+ 'dependencies' : [
+ libblkid,
+ libfdisk,
+ libopenssl,
+ threads,
+ ],
+ 'build_by_default' : have_standalone_binaries,
+ 'install' : have_standalone_binaries,
+ },
+]
+
+if conf.get('ENABLE_REPART') == 1
+ install_data('definitions/confext.repart.d/10-root.conf', install_dir : repartdefinitionsdir / 'confext.repart.d')
+ install_data('definitions/confext.repart.d/20-root-verity.conf', install_dir : repartdefinitionsdir / 'confext.repart.d')
+ install_data('definitions/confext.repart.d/30-root-verity-sig.conf', install_dir : repartdefinitionsdir / 'confext.repart.d')
+ install_data('definitions/portable.repart.d/10-root.conf', install_dir : repartdefinitionsdir / 'portable.repart.d')
+ install_data('definitions/portable.repart.d/20-root-verity.conf', install_dir : repartdefinitionsdir / 'portable.repart.d')
+ install_data('definitions/portable.repart.d/30-root-verity-sig.conf', install_dir : repartdefinitionsdir / 'portable.repart.d')
+ install_data('definitions/sysext.repart.d/10-root.conf', install_dir : repartdefinitionsdir / 'sysext.repart.d')
+ install_data('definitions/sysext.repart.d/20-root-verity.conf', install_dir : repartdefinitionsdir / 'sysext.repart.d')
+ install_data('definitions/sysext.repart.d/30-root-verity-sig.conf', install_dir : repartdefinitionsdir / 'sysext.repart.d')
+endif