File: meson_post_conf.py

package info (click to toggle)
revelation 0.5.4-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,184 kB
  • sloc: python: 6,243; xml: 244; makefile: 144; sh: 5
file content (17 lines) | stat: -rw-r--r-- 523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3

import os
import subprocess

build_root = os.environ.get('MESON_BUILD_ROOT')
source_root = os.environ.get('MESON_SOURCE_ROOT')

print('Install schemas in build dir…')

source_datadir = os.path.join(source_root, 'data')
source_file = os.path.join(source_datadir, 'gschemas.compiled')
targetdir = os.path.join(build_root, 'data', 'glib-2.0', 'schemas')

subprocess.call(['glib-compile-schemas', source_datadir])
subprocess.call(['mkdir', '-p', targetdir])
subprocess.call(['mv', source, targetdir])