meson: Use gnome.compile_schemas()

This causes meson to automatically build the clapper gsettings schemas
and set GSETTINGS_SCHEMA_DIR to the correct location within the devenv.

This means that can now be ran without needing to install it somewhere
using:
    meson devenv -C <builddir>
    clapper
    exit

More devenv overrides should be investigated (such as automatically
adopting the correct directory for translated locales etc.)

Signed-off-by: Florian "sp1rit"​ <sp1rit@disroot.org>
This commit is contained in:
Florian "sp1rit"​
2024-04-09 11:35:49 +02:00
parent 48b5a7c12a
commit 43e2e88a4c
2 changed files with 9 additions and 3 deletions

View File

@@ -38,10 +38,8 @@ install_subdir('applications',
install_subdir('metainfo',
install_dir: join_paths(prefix, datadir)
)
install_subdir('glib-2.0',
install_dir: join_paths(prefix, datadir)
)
subdir('glib-2.0/schemas')
subdir('dbus-1')
gnome.post_install(