diff options
Diffstat (limited to 'meson_post_install.py')
-rw-r--r-- | meson_post_install.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meson_post_install.py b/meson_post_install.py new file mode 100644 index 00000000..4232625d --- /dev/null +++ b/meson_post_install.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +import os +import subprocess +import sys + +if not os.environ.get('DESTDIR'): + schemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas') + print('Compiling gsettings schemas...') + subprocess.call(['glib-compile-schemas', schemadir]) + + giomoduledir = os.path.join(sys.argv[2], 'gio', 'modules') + print('GIO module cache creation...') + subprocess.call(['gio-querymodules', giomoduledir]) |