[gnome-nettool/wip/jtojnar/meson-cleanups: 4/6] meson: Switch to gnome.post_install() function




commit 6f3e860e1caf561cb37acd12b4d2f00519660e29
Author: Jan Tojnar <jtojnar gmail com>
Date:   Tue Sep 27 04:49:55 2022 +0200

    meson: Switch to gnome.post_install() function
    
    instead of using a custom script.
    
    This raises the minimum Meson version to 0.59.0 for `update_desktop_database` kwarg.

 meson.build    |  8 ++++++--
 postinstall.py | 28 ----------------------------
 2 files changed, 6 insertions(+), 30 deletions(-)
---
diff --git a/meson.build b/meson.build
index 6bb2683..7ee1c8c 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,7 @@ project(
     'buildtype=debugoptimized',
     'warning_level=1',
   ],
-  meson_version: '>= 0.56.0',
+  meson_version: '>= 0.59.0',
   license: 'GPL-2.0-or-later',
 )
 
@@ -68,4 +68,8 @@ configure_file(
   configuration: cdata,
 )
 
-meson.add_install_script('postinstall.py')
+gnome.post_install(
+  glib_compile_schemas: true,
+  gtk_update_icon_cache: true,
+  update_desktop_database: true,
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]