diff --git a/data/meson.build b/data/meson.build index 762b0e6..0c8590f 100644 --- a/data/meson.build +++ b/data/meson.build @@ -24,6 +24,12 @@ compiled = gnome.compile_schemas( build_by_default: true ) +compile_schemas = find_program('glib-compile-schemas', required: false) +if compile_schemas.found() + test('Validate schema file', compile_schemas, + args: ['--strict', '--dry-run', meson.current_source_dir()]) +endif + install_data( schemas, install_dir: 'share/glib-2.0/schemas'