summaryrefslogtreecommitdiff
path: root/meson_post_install.py
blob: 39d75c019afa1659ed48cb95ed5b3a0ea3973501 (plain)
1
2
3
4
5
6
7
8
9
10
11
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')])