diff options
author | Matt Turner <mattst88@gmail.com> | 2023-05-01 13:54:44 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2023-05-01 18:27:23 +0000 |
commit | 72bd98f605d05459d568e6f3ba5f451d39d8c13a (patch) | |
tree | ca57788421364e9907cc495bc26ca7bbd1ec1169 | |
parent | 1895ed84d7f4e1dcd7297350710d3807fe590cb8 (diff) | |
download | dconf-72bd98f605d05459d568e6f3ba5f451d39d8c13a.tar.gz |
build: Use GNOME module post_install()
-rw-r--r-- | meson.build | 6 | ||||
-rw-r--r-- | meson_post_install.py | 9 |
2 files changed, 4 insertions, 11 deletions
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]]) |