From d73677dfffc3eb2c0ea82a3e15f671871bf48057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 9 Apr 2024 13:22:07 +0200 Subject: [PATCH] build: Validate schema file --- data/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) 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'