summaryrefslogtreecommitdiffstats
path: root/build-aux/meson_post_install.py
blob: 4debe816c784de9af2700e2565cb80cfda1f1bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3

import os
import subprocess

install_prefix = os.environ['MESON_INSTALL_PREFIX']
schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')

if not os.environ.get('DESTDIR'):
  print('Compiling gsettings schemas...')
  subprocess.call(['glib-compile-schemas', schemadir])