[calls] build: Use GNOME module post_install()
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] build: Use GNOME module post_install()
- Date: Sat, 3 Sep 2022 18:40:34 +0000 (UTC)
commit ce3cc6ec38df1a4f140b9e9a1d71c9358d200842
Author: Matt Turner <mattst88 gmail com>
Date: Sat Sep 3 11:44:14 2022 -0400
build: Use GNOME module post_install()
This greatly simplifies the post install script. As this functionality
depends on newer meson (0.59.0) it is guarded by a version check.
Distributions usually use their own tooling so it's does not matter if
they don't run the postinstall scripts (e.g. because of using too old
meson)
build-aux/meson/postinstall.py | 18 ------------------
meson.build | 12 +++++++++++-
2 files changed, 11 insertions(+), 19 deletions(-)
---
diff --git a/meson.build b/meson.build
index a978d7d7..dfc72fa4 100644
--- a/meson.build
+++ b/meson.build
@@ -137,4 +137,14 @@ subdir('plugins')
subdir('doc')
subdir('data')
-meson.add_install_script('build-aux/meson/postinstall.py')
+# gnome.post_install() is available since meson 0.59.0
+# Distributions use their own tooling (e.g. postinst, triggers, etc)
+# so it is okay if the post_install() is not run on distro builds
+m_ver = meson.version().split('.')
+if m_ver[0].to_int() > 0 or m_ver[1].to_int() > 58
+ gnome.post_install(
+ glib_compile_schemas: true,
+ gtk_update_icon_cache: true,
+ update_desktop_database: true,
+ )
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]