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.
This commit is contained in:
Luca Boccassi authored and Yu Watanabe committed 2026-10-25 09:34:00 +09:00
1 parent 25f505f0ec
commit 349712802c
2 files changed
+6

No files matched your search

+2
View File
@@ -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',
+4
View File
@@ -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)