From 72bd98f605d05459d568e6f3ba5f451d39d8c13a Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 1 May 2023 13:54:44 -0400 Subject: build: Use GNOME module post_install() --- meson.build | 6 ++++-- meson_post_install.py | 9 --------- 2 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 meson_post_install.py diff --git a/meson.build b/meson.build index 50e3202..77c75a5 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project( 'dconf', ['c'], version: '0.41.1', license: 'LGPL2.1+', - meson_version: '>= 0.47.0', + meson_version: '>= 0.57.0', ) dconf_prefix = get_option('prefix') @@ -100,4 +100,6 @@ subdir('bin') subdir('docs') subdir('tests') -meson.add_install_script('meson_post_install.py', gio_module_dir) +gnome.post_install( + gio_querymodules: gio_module_dir, +) diff --git a/meson_post_install.py b/meson_post_install.py deleted file mode 100644 index 3082d42..0000000 --- a/meson_post_install.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess -import sys - -if not os.environ.get('DESTDIR'): - print('GIO module cache creation...') - subprocess.call(['gio-querymodules', sys.argv[1]]) -- cgit v1.2.1