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