From 650b568319c49d995500afb348fdba5e4cc356f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 20 Jun 2024 20:52:09 +0200 Subject: [PATCH] clapper-app: meson: Do not install mimes on Windows They are unsupported. We use file extensions instead. --- src/bin/clapper-app/data/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bin/clapper-app/data/meson.build b/src/bin/clapper-app/data/meson.build index 8a402b32..2d8648f1 100644 --- a/src/bin/clapper-app/data/meson.build +++ b/src/bin/clapper-app/data/meson.build @@ -25,14 +25,12 @@ endif install_subdir('icons', install_dir: join_paths(prefix, datadir) ) -install_subdir('mime', - install_dir: join_paths(prefix, datadir) -) install_subdir('metainfo', install_dir: join_paths(prefix, datadir) ) is_linux = ['linux'].contains(host_machine.system()) +is_windows = ['windows'].contains(host_machine.system()) if is_linux install_subdir('applications', @@ -41,11 +39,17 @@ if is_linux subdir('dbus-1') endif +if not is_windows + install_subdir('mime', + install_dir: join_paths(prefix, datadir) + ) +endif + subdir('glib-2.0/schemas') gnome.post_install( glib_compile_schemas: true, gtk_update_icon_cache: true, update_desktop_database: is_linux, - update_mime_database: true, + update_mime_database: not is_windows, )