From c18baf07137dfdf7809a89c6af2eabf22131cc00 Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 1 Sep 2024 19:24:06 +0300 Subject: Add a GSettings schema Empty for now, but I am planning to include setting up the API endpoints and prompts for Smart Summary, among other things. --- data/meson.build | 38 +++++++++++----------- .../xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in | 5 +++ 2 files changed, 24 insertions(+), 19 deletions(-) create mode 100644 data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in (limited to 'data') diff --git a/data/meson.build b/data/meson.build index c1d1997..59f3f90 100644 --- a/data/meson.build +++ b/data/meson.build @@ -54,22 +54,22 @@ endif # ) #endif -## GSchema -#gschema_conf = configuration_data() -#gschema_conf.set('app-id', application_id) -#gschema_conf.set('gettext-package', gettext_package) -#configure_file( -# input: '@0@.gschema.xml.in'.format(base_id), -# output: '@0@.gschema.xml'.format(application_id), -# configuration: gschema_conf, -# install: true, -# install_dir: datadir / 'glib-2.0' / 'schemas' -#) -# -## Validata GSchema -#test( -# 'validate-gschema', glib_compile_schemas, -# args: [ -# '--strict', '--dry-run', meson.current_build_dir() -# ], -#) +# GSchema +gschema_conf = configuration_data() +gschema_conf.set('app-id', application_id) +gschema_conf.set('gettext-package', gettext_package) +configure_file( + input: '@0@.gschema.xml.in'.format(base_id), + output: '@0@.gschema.xml'.format(application_id), + configuration: gschema_conf, + install: true, + install_dir: datadir / 'glib-2.0' / 'schemas' +) + +# Validata GSchema +test( + 'validate-gschema', glib_compile_schemas, + args: [ + '--strict', '--dry-run', meson.current_build_dir() + ], +) diff --git a/data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in b/data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in new file mode 100644 index 0000000..81e0b13 --- /dev/null +++ b/data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in @@ -0,0 +1,5 @@ + + + + + -- cgit 1.4.1