[nautilus] meson: compile gschemas after installing



commit 9419c26876daa3a35c9366b892c40efbbc40e67d
Author: Ernestas Kulik <ernestask gnome org>
Date:   Tue Mar 7 11:24:54 2017 +0200

    meson: compile gschemas after installing
    
    As some users or developers might choose to install repo builds, they
    would also have to compile the installed GSettings schema manually. This
    commit adds a script that does that post-install.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779669

 compile_gschemas.sh |    7 +++++++
 meson.build         |    3 +++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/compile_gschemas.sh b/compile_gschemas.sh
new file mode 100755
index 0000000..0101009
--- /dev/null
+++ b/compile_gschemas.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Avoid compiling schemas when packaging.
+if [ -z "$DESTDIR" ]
+then
+    glib-compile-schemas "${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas"
+fi
diff --git a/meson.build b/meson.build
index 13a92f6..086d604 100644
--- a/meson.build
+++ b/meson.build
@@ -128,3 +128,6 @@ endif
 if get_option ('enable-nst-extension')
     subdir ('nautilus-sendto-extension')
 endif
+
+# Compile GSettings schemas when installing from source.
+meson.add_install_script ('compile_gschemas.sh')


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