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
This commit is contained in:
Rafał Dzięgiel
2024-06-15 20:14:16 +02:00
parent 3ce937c2b9
commit c25cfd9598

View File

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