clapper-app: meson: Do not install mimes on Windows

They are unsupported. We use file extensions instead.
This commit is contained in:
Rafał Dzięgiel
2024-06-20 20:52:09 +02:00
parent abff579b70
commit 650b568319

View File

@@ -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,
)