diff options
author | Matt Turner <mattst88@gmail.com> | 2022-08-23 21:31:43 -0400 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2023-05-03 07:55:35 +0000 |
commit | e206a98a96b3f2ace8f8f4968f6de54e7312a567 (patch) | |
tree | 182cadff77cbeb17c8963ca456450ad2fbb6d80b | |
parent | 521a6fa59473df04a22067cba6e371037237f853 (diff) | |
download | gvfs-e206a98a96b3f2ace8f8f4968f6de54e7312a567.tar.gz |
build: Use GNOME module post_install()
-rw-r--r-- | meson.build | 9 | ||||
-rw-r--r-- | meson_post_install.py | 12 |
2 files changed, 4 insertions, 17 deletions
diff --git a/meson.build b/meson.build index 77611f39..e3aabbf2 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project( version: '1.51.1', license: 'LGPL2+', default_options: 'buildtype=debugoptimized', - meson_version: '>= 0.56.0', + meson_version: '>= 0.57.0', ) gvfs_name = meson.project_name() @@ -481,10 +481,9 @@ configure_file( configuration: config_h, ) -meson.add_install_script( - 'meson_post_install.py', - gio_schemasdir, - gio_giomoduledir, +gnome.post_install( + glib_compile_schemas: true, + gio_querymodules: gio_giomoduledir, ) summary({ diff --git a/meson_post_install.py b/meson_post_install.py deleted file mode 100644 index d9cc6f4a..00000000 --- a/meson_post_install.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python3 - -import os -import subprocess -import sys - -if not os.environ.get('DESTDIR'): - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', sys.argv[1]]) - - print('GIO module cache creation...') - subprocess.call(['gio-querymodules', sys.argv[2]]) |