From 349712802cb9f5e38d638ac661d67660afd5bcb8 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 24 Oct 2026 10:39:50 +0100 Subject: [PATCH] meson: add feature flag for mime mime builds and installs binaries, docs, units, etc. Add a feature flag to make it easier to avoid shipping it. --- meson_options.txt | 2 ++ mime/meson.build | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/meson_options.txt b/meson_options.txt index 7fe9cbd834d..24bad66f0cf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -213,6 +213,8 @@ option('machined', type : 'boolean', description : 'install the systemd-machined stack') option('measure', type : 'feature', description : 'install the systemd-measure tool') +option('mime', type : 'feature', + description : 'install MIME type definitions') option('mountfsd', type : 'boolean', description : 'install the systemd-mountfsd stack') option('networkd', type : 'boolean', diff --git a/mime/meson.build b/mime/meson.build index 17bc043f4ec..7111aa45afd 100644 --- a/mime/meson.build +++ b/mime/meson.build @@ -1,3 +1,7 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +if not get_option('mime').allowed() + subdir_done() +endif + install_data('io.systemd.xml', install_dir : mimepackagesdir)