summaryrefslogtreecommitdiff
path: root/meson_post_install.py
diff options
context:
space:
mode:
authorJonathan Kang <jonathan121537@gmail.com>2017-11-17 17:51:09 +0800
committerJonathan Kang <jonathan121537@gmail.com>2017-12-13 15:25:44 +0800
commit4707e790dd91df48c737465bde4fae2e7091c782 (patch)
tree3a7d596c4f992b960126f86501619a60a5344f0d /meson_post_install.py
parent6c70467dc6d1d5fcafba9a4fda8c0da2e12283b3 (diff)
downloadgnome-logs-4707e790dd91df48c737465bde4fae2e7091c782.tar.gz
Port to meson build system
According to this wiki[0], port Logs to meson build system. *[0] https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting https://bugzilla.gnome.org/show_bug.cgi?id=790276
Diffstat (limited to 'meson_post_install.py')
-rw-r--r--meson_post_install.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/meson_post_install.py b/meson_post_install.py
new file mode 100644
index 0000000..39d75c0
--- /dev/null
+++ b/meson_post_install.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+
+schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
+
+if not os.environ.get('DESTDIR'):
+ print('Compiling gsettings schemas...')
+ subprocess.call(['glib-compile-schemas', join_paths(gl_datadir, 'glib-2.0', 'schemas')])
+ print('Updating icon cache...')
+ subprocess.call(['gtk-update-icon-cache --ignore-theme-index --force', join_paths(gl_datadir, 'icons', 'hicolor')])