summaryrefslogtreecommitdiff
path: root/meson_post_install.py
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-12-13 18:09:28 +0100
committerMichael Catanzaro <mcatanzaro@igalia.com>2019-07-29 14:32:34 -0500
commit306f19603a817c95292eaad0fe053f9e3f217c2d (patch)
tree1f180d7c042b53ffab3f2ef71c4d2facdce3b25e /meson_post_install.py
parent9a3375e367cc4f3ed7e88b4aecd8d8832f0fe3fd (diff)
downloadcheese-306f19603a817c95292eaad0fe053f9e3f217c2d.tar.gz
build: Port to meson build system
meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools.
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 00000000..24242df0
--- /dev/null
+++ b/meson_post_install.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+import sys
+
+if not os.environ.get('DESTDIR'):
+ prefix = os.environ['MESON_INSTALL_PREFIX']
+
+ icondir = os.path.join(prefix, sys.argv[1], 'icons', 'hicolor')
+ print('Updating icon cache...')
+ subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
+
+ print('Compiling gsettings schemas...')
+ subprocess.call(['glib-compile-schemas', sys.argv[2]])