[gnome-software: 18/22] build: Recompile the GSettings schemas when they change
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 18/22] build: Recompile the GSettings schemas when they change
- Date: Thu, 18 Feb 2021 07:33:03 +0000 (UTC)
commit cd0343b983b8844c0e3918acbe1c4e7d7db68189
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Feb 17 20:51:39 2021 +0000
build: Recompile the GSettings schemas when they change
The Meson `gnome.compile_schemas()` function doesn’t actually know which
schemas it’s compiling (it just runs `glib-compile-schemas` in the right
directory), so in order to rebuild the cached schemas when the XML file
changes, point the function at the XML file.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
data/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/meson.build b/data/meson.build
index 06573881e..df09f1680 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -2,7 +2,8 @@ subdir('appdata')
subdir('icons')
subdir('assets')
-compiled_schemas = gnome.compile_schemas()
+compiled_schemas = gnome.compile_schemas(
+ depend_files: 'org.gnome.software.gschema.xml')
install_data('org.gnome.software.gschema.xml',
install_dir : 'share/glib-2.0/schemas')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]