summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-10-31 18:43:06 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-10-31 18:43:06 +0100
commit3a0ff804a6626a340f429c00bff7f3fccbdefeec (patch)
tree3a8551e6c4f0dd2c6f107ae6eb8c9199fc40494a /build-aux
parent09c0666a5bf08285e9871603f1304ac0fa3c610d (diff)
downloadgnome-contacts-3a0ff804a6626a340f429c00bff7f3fccbdefeec.tar.gz
Make a separate build-aux folder
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/meson_post_install.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/build-aux/meson_post_install.py b/build-aux/meson_post_install.py
new file mode 100644
index 0000000..bf320a9
--- /dev/null
+++ b/build-aux/meson_post_install.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+
+install_prefix = os.environ['MESON_INSTALL_PREFIX']
+icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
+schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
+
+if not os.environ.get('DESTDIR'):
+ print('Update icon cache...')
+ subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
+
+ print('Compiling gsettings schemas...')
+ subprocess.call(['glib-compile-schemas', schemadir])