[meld] Add a check for valid gsettings schema to Meson build



commit 6a29e1016331d6ab9b4f76c93053728ad1d30759
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Sep 21 11:01:44 2019 +1000

    Add a check for valid gsettings schema to Meson build

 data/meson.build | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index 10aed2ee..159a5550 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -65,6 +65,16 @@ install_data(
     install_dir: join_paths(pkgdatadir)
 )
 
+# Check GSettings schema
+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 GtkSourceview style files
 install_data(
     [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]