summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--data/meson.build38
-rw-r--r--data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in5
-rw-r--r--meson.build2
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,
 )