diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2017-03-07 11:24:54 +0200 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2017-03-08 17:52:01 +0200 |
commit | 9419c26876daa3a35c9366b892c40efbbc40e67d (patch) | |
tree | 1c323b8dca2ea0449efa7e63b52a53eef020bc93 | |
parent | ef7005eae6f76a2e4f3bc1894ac0841224701752 (diff) | |
download | nautilus-9419c26876daa3a35c9366b892c40efbbc40e67d.tar.gz |
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
-rwxr-xr-x | compile_gschemas.sh | 7 | ||||
-rw-r--r-- | 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 000000000..01010099d --- /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 13a92f69a..086d60443 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') |