mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
clapper-app: meson: Do not install mimes on Windows
They are unsupported. We use file extensions instead.
This commit is contained in:
@@ -25,14 +25,12 @@ endif
|
|||||||
install_subdir('icons',
|
install_subdir('icons',
|
||||||
install_dir: join_paths(prefix, datadir)
|
install_dir: join_paths(prefix, datadir)
|
||||||
)
|
)
|
||||||
install_subdir('mime',
|
|
||||||
install_dir: join_paths(prefix, datadir)
|
|
||||||
)
|
|
||||||
install_subdir('metainfo',
|
install_subdir('metainfo',
|
||||||
install_dir: join_paths(prefix, datadir)
|
install_dir: join_paths(prefix, datadir)
|
||||||
)
|
)
|
||||||
|
|
||||||
is_linux = ['linux'].contains(host_machine.system())
|
is_linux = ['linux'].contains(host_machine.system())
|
||||||
|
is_windows = ['windows'].contains(host_machine.system())
|
||||||
|
|
||||||
if is_linux
|
if is_linux
|
||||||
install_subdir('applications',
|
install_subdir('applications',
|
||||||
@@ -41,11 +39,17 @@ if is_linux
|
|||||||
subdir('dbus-1')
|
subdir('dbus-1')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if not is_windows
|
||||||
|
install_subdir('mime',
|
||||||
|
install_dir: join_paths(prefix, datadir)
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
subdir('glib-2.0/schemas')
|
subdir('glib-2.0/schemas')
|
||||||
|
|
||||||
gnome.post_install(
|
gnome.post_install(
|
||||||
glib_compile_schemas: true,
|
glib_compile_schemas: true,
|
||||||
gtk_update_icon_cache: true,
|
gtk_update_icon_cache: true,
|
||||||
update_desktop_database: is_linux,
|
update_desktop_database: is_linux,
|
||||||
update_mime_database: true,
|
update_mime_database: not is_windows,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user