From f1c1e72d96c11194ff89752a4e22b6edffa75666 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Thu, 7 Oct 2021 21:36:04 +0800 Subject: Add meson build support --- meson_post_install.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meson_post_install.py (limited to 'meson_post_install.py') diff --git a/meson_post_install.py b/meson_post_install.py new file mode 100644 index 0000000..b26c88a --- /dev/null +++ b/meson_post_install.py @@ -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]) -- cgit v1.2.1