build: Validate schema file

This commit is contained in:
Guido Günther
2024-04-20 13:21:56 +00:00
committed by Guido Günther
parent bf52369e68
commit d73677dfff
+6
View File
@@ -24,6 +24,12 @@ compiled = gnome.compile_schemas(
build_by_default: true 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( install_data(
schemas, schemas,
install_dir: 'share/glib-2.0/schemas' install_dir: 'share/glib-2.0/schemas'