summaryrefslogtreecommitdiff
path: root/meson_post_install.py
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-06-09 22:38:19 +0200
committerBastien Nocera <hadess@hadess.net>2017-06-23 18:00:40 +0200
commit95256079d3457056fbcdf48e5d618a6e57af0439 (patch)
tree82339e1cce1701f965b65eb49a236f666fe8ec1a /meson_post_install.py
parenta1da1b32da5f4c1aa307a170cff80154f210c172 (diff)
downloadtotem-95256079d3457056fbcdf48e5d618a6e57af0439.tar.gz
build: Port to meson build system
With additional testing and patches from Bastien Nocera <hadess@hadess.net> https://bugzilla.gnome.org/show_bug.cgi?id=783205
Diffstat (limited to 'meson_post_install.py')
-rw-r--r--meson_post_install.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/meson_post_install.py b/meson_post_install.py
new file mode 100644
index 000000000..bf320a9dc
--- /dev/null
+++ b/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])