mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
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:
@@ -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,
|
||||
)
|
||||
|
Reference in New Issue
Block a user