From 9366b63cdfa7d06146f1851a8d5621eddbd1df77 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 7 Oct 2022 20:44:01 -0400 Subject: build: Use GNOME module post_install() --- meson.build | 7 +++---- meson_post_install.py | 15 --------------- 2 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 meson_post_install.py diff --git a/meson.build b/meson.build index 9174b428..1fa4049d 100644 --- a/meson.build +++ b/meson.build @@ -196,8 +196,7 @@ configure_file( configuration: config_h, ) -meson.add_install_script( - 'meson_post_install.py', - cheese_datadir, - gio_schemasdir, +gnome.post_install( + glib_compile_schemas: true, + gtk_update_icon_cache: true, ) diff --git a/meson_post_install.py b/meson_post_install.py deleted file mode 100644 index 24242df0..00000000 --- a/meson_post_install.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess -import sys - -if not os.environ.get('DESTDIR'): - prefix = os.environ['MESON_INSTALL_PREFIX'] - - icondir = os.path.join(prefix, sys.argv[1], 'icons', 'hicolor') - print('Updating icon cache...') - subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir]) - - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', sys.argv[2]]) -- cgit v1.2.1