build: Validate schema file
This commit is contained in:
committed by
Guido Günther
parent
bf52369e68
commit
d73677dfff
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user