From c25cfd95986a3b18b19dd50da9cfa584d07d659f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sat, 15 Jun 2024 20:14:16 +0200 Subject: [PATCH] clapper-app: meson: Do not skip whole data install on non-linux We cannot run app without schemas, thus we need to compile and install them on any OS --- src/bin/clapper-app/data/meson.build | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/bin/clapper-app/data/meson.build b/src/bin/clapper-app/data/meson.build index b035a6a4..8a402b32 100644 --- a/src/bin/clapper-app/data/meson.build +++ b/src/bin/clapper-app/data/meson.build @@ -1,7 +1,3 @@ -if not ['linux'].contains(host_machine.system()) - subdir_done() -endif - appstream_util = find_program('appstream-util', required: false) if appstream_util.found() test('Validate appstream file', @@ -32,19 +28,24 @@ install_subdir('icons', install_subdir('mime', install_dir: join_paths(prefix, datadir) ) -install_subdir('applications', - install_dir: join_paths(prefix, datadir) -) install_subdir('metainfo', install_dir: join_paths(prefix, datadir) ) +is_linux = ['linux'].contains(host_machine.system()) + +if is_linux + install_subdir('applications', + install_dir: join_paths(prefix, datadir) + ) + subdir('dbus-1') +endif + subdir('glib-2.0/schemas') -subdir('dbus-1') gnome.post_install( glib_compile_schemas: true, gtk_update_icon_cache: true, - update_desktop_database: true, + update_desktop_database: is_linux, update_mime_database: true, )