[build] switch to meson as build system

This commit is contained in:
Julian Sparber
2017-09-23 13:48:38 +02:00
parent 6946f3d88a
commit 442f301754
7 changed files with 574 additions and 0 deletions

15
meson_post_install.py Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
import os
import subprocess
install_prefix = os.environ['MESON_INSTALL_PREFIX']
icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
if not os.environ.get('DESTDIR'):
print('Update icon cache...')
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', schemadir])