[gnote/meson] Install and validate gschema
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson] Install and validate gschema
- Date: Sun, 28 Mar 2021 15:03:34 +0000 (UTC)
commit 50ab10cfea01a966f59dc65eef67cb5769cd4cd3
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Mar 28 16:26:17 2021 +0300
Install and validate gschema
data/meson.build | 8 ++++++++
meson.build | 1 +
2 files changed, 9 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index 16f24869..82121637 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -18,3 +18,11 @@ endif
install_data('org.gnome.Gnote.search-provider.ini', install_dir: get_option('datadir') / 'gnome-shell' /
'search-providers')
+gnote_gschema = files('org.gnome.gnote.gschema.xml')
+install_data(gnote_gschema, install_dir: get_option('datadir') / 'glib-2.0/schemas')
+gschema_dtd = gio_dep.get_pkgconfig_variable('schemasdir') / 'gschema.dtd'
+xmllint = find_program('xmllint', required: false)
+if xmllint.found()
+ test('validate-gschema', xmllint, args: ['--noout', '--dtdvalid', gschema_dtd, gnote_gschema])
+endif
+
diff --git a/meson.build b/meson.build
index d2e473ca..4f7fe0d4 100644
--- a/meson.build
+++ b/meson.build
@@ -6,6 +6,7 @@ gnote_release = meson.project_version().split('.')[0]
libgnote_version_info = '0.0.0'
glib_version = '>2.62'
+gio_dep = dependency('gio-2.0', version: glib_version)
dependencies = [
dependency('glibmm-2.4', version: glib_version),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]