diff options
author | Vika <vika@fireburn.ru> | 2024-09-01 19:24:06 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-09-04 19:51:50 +0300 |
commit | c18baf07137dfdf7809a89c6af2eabf22131cc00 (patch) | |
tree | c87e864e9da6e717983819a928329045602941ac | |
parent | 00bfd4b9e2af68004014675ed6a2e35ffd33ab36 (diff) | |
download | bowl-c18baf07137dfdf7809a89c6af2eabf22131cc00.tar.zst |
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.
-rw-r--r-- | data/meson.build | 38 | ||||
-rw-r--r-- | data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in | 5 | ||||
-rw-r--r-- | meson.build | 2 |
3 files changed, 25 insertions, 20 deletions
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 @@ +<?xml version="1.0" encoding="utf-8"?> +<schemalist> + <schema path="/xyz/vikanezrimaya/kittybox/Bowl/" id="@app-id@" gettext-domain="@gettext-package@"> + </schema> +</schemalist> diff --git a/meson.build b/meson.build index 9010236..38bc9d4 100644 --- a/meson.build +++ b/meson.build @@ -63,6 +63,6 @@ subdir('data') gnome.post_install( gtk_update_icon_cache: false, - glib_compile_schemas: false, + glib_compile_schemas: true, update_desktop_database: true, ) |