diff options
author | Matt Turner <mattst88@gmail.com> | 2022-10-07 21:05:21 -0400 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2022-11-16 19:29:27 +0000 |
commit | 5944fefe139efc03df189f259e0742982499667e (patch) | |
tree | ba3a46e2dc3651ff8d87fde6f33f2f2882c72e1f | |
parent | c63f8e56cd85771bff97ed498a38810eb72bceb2 (diff) | |
download | gnome-logs-5944fefe139efc03df189f259e0742982499667e.tar.gz |
build: Use GNOME module post_install()
-rw-r--r-- | meson.build | 7 | ||||
-rw-r--r-- | meson_post_install.py | 15 |
2 files changed, 5 insertions, 17 deletions
diff --git a/meson.build b/meson.build index 316d77a..26c6754 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('gnome-logs', 'c', version : '43.1', default_options : ['warning_level=1']) +project('gnome-logs', 'c', version : '43.1', default_options : ['warning_level=1'], meson_version: '>= 0.57.0') gl_name = meson.project_name() gl_version = meson.project_version() @@ -111,4 +111,7 @@ subdir('po') subdir('help') subdir('tests') -meson.add_install_script('meson_post_install.py') +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 998a59c..0000000 --- a/meson_post_install.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/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('Updating icon cache...') - subprocess.call(['gtk-update-icon-cache', '--ignore-theme-index', '--force', icondir]) - - print('Compiling gsettings schemas...') - subprocess.call(['glib-compile-schemas', schemadir]) |