[recipes/gsettings: 2/11] Add gsettings infrastructure



commit 8d70697ca439fd22f9169ee8beef6fb2aadfed6e
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 7 15:08:15 2017 -0500

    Add gsettings infrastructure
    
    Add a gsettings schema and install it. We are not using
    any settings yet, this is just the infrastructure.

 data/Makefile.am                   |    6 ++++++
 data/meson.build                   |    3 +++
 data/org.gnome.recipes.gschema.xml |    8 ++++++++
 meson.build                        |    2 ++
 4 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 68c021a..2fe8a6a 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -277,6 +277,12 @@ EXTRA_DIST += $(appdata_in_files) appdata/org.gnome.Recipes.appdata.xml
 searchproviderdir = $(datadir)/gnome-shell/search-providers
 dist_searchprovider_DATA = org.gnome.Recipes-search-provider.ini
 
+gsettings_SCHEMAS = org.gnome.recipes.gschema.xml
+
+@GSETTINGS_RULES@
+
+EXTRA_DIST += $(gsettings_SCHEMAS)
+
 check: check-appstream
 
 check-appstream: appdata/org.gnome.Recipes.appdata.xml
diff --git a/data/meson.build b/data/meson.build
index ea9d334..20bc337 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -197,6 +197,9 @@ configure_file(input: 'org.gnome.Recipes.service.in',
                configuration: conf,
                install_dir: join_paths([datadir,'dbus-1/services']))
 
+install_data('org.gnome.Recipes.gschema.xml',
+             install_dir: schemadir)
+
 install_data(   'icons/16x16/org.gnome.Recipes.png',
                 'icons/16x16/org.gnome.Recipes-symbolic.symbolic.png',
                 install_dir: join_paths([datadir,'icons/hicolor/16x16/apps']))
diff --git a/data/org.gnome.recipes.gschema.xml b/data/org.gnome.recipes.gschema.xml
new file mode 100644
index 0000000..e941c90
--- /dev/null
+++ b/data/org.gnome.recipes.gschema.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+
+  <schema path="/org/gnome/recipes/" id="org.gnome.recipes" gettext-domain="gnome-recipes">
+  </schema>
+
+</schemalist>
+
diff --git a/meson.build b/meson.build
index cb55f05..cc8de69 100644
--- a/meson.build
+++ b/meson.build
@@ -81,6 +81,8 @@ pkgdatadir = join_paths([ get_option('prefix'),
                           get_option('datadir'),
                           'gnome-recipes' ])
 bindir = join_paths([ get_option('prefix'), 'bin' ])
+schemadir = join_paths([ datadir, 'glib-2.0', 'schemas' ])
+
 conf.set('G_LOG_USE_STRUCTURED', true)
 conf.set_quoted('G_LOG_DOMAIN', 'org.gnome.Recipes')
 conf.set_quoted('PACKAGE_NAME', 'gnome-recipes')


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