summaryrefslogtreecommitdiff
path: root/data/meson_post_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'data/meson_post_install.py')
-rwxr-xr-xdata/meson_post_install.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/meson_post_install.py b/data/meson_post_install.py
new file mode 100755
index 0000000..d0248f4
--- /dev/null
+++ b/data/meson_post_install.py
@@ -0,0 +1,10 @@
+#!/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', schemadir])