[gnome-text-editor: 2/3] Meson: Use gnome.post_install()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor: 2/3] Meson: Use gnome.post_install()
- Date: Wed, 29 Sep 2021 18:39:25 +0000 (UTC)
commit 0a9bca3e6460435ca8a2c96e4a6af7ef920465d4
Author: Xavier Claessens <xavier claessens collabora com>
Date: Wed Jun 23 13:57:50 2021 -0400
Meson: Use gnome.post_install()
It has a few advantages:
- It uses gtk4-update-icon-cache, current script fails if gtk3 is not
installed.
- Get path for tools from pc files, they are not always in PATH.
- The script is ran only once even if multiple subprojects use it.
build-aux/meson/postinstall.py | 21 ---------------------
meson.build | 6 +++++-
2 files changed, 5 insertions(+), 22 deletions(-)
---
diff --git a/meson.build b/meson.build
index 153525d..cd09d14 100644
--- a/meson.build
+++ b/meson.build
@@ -162,4 +162,8 @@ configure_file(
configuration: config_h,
)
-meson.add_install_script('build-aux/meson/postinstall.py')
+gnome.post_install(
+ gtk_update_icon_cache: true,
+ glib_compile_schemas: true,
+ update_desktop_database: true,
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]