Debian Codegraph @

data/meson_post_install.py

raw
1 #!/usr/bin/env python3
2
3 # http://mesonbuild.com/Porting-from-autotools.html#gsettings
4
5 import os
6 import subprocess
7
8 schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'],
9 'share', 'glib-2.0', 'schemas')
10
11 if not os.environ.get('DESTDIR'):
12 print('Compiling gsettings schemas...')
13 subprocess.call(['glib-compile-schemas', schemadir])
14 print('Successfully compiled schemas!')