[polari] build: Use meson's gnome.post_install()



commit bd66e3a8746679e3d9dcbd218285964c33325f0a
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Dec 22 19:55:51 2021 +0100

    build: Use meson's gnome.post_install()
    
    ... instead of an external script. update_desktop_database requires
    meson 0.59.0, so bump the version requirement.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/241>

 meson.build                | 10 +++++++---
 meson/meson-postinstall.sh | 13 -------------
 2 files changed, 7 insertions(+), 16 deletions(-)
---
diff --git a/meson.build b/meson.build
index 177b1226..6ddcfc4e 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
 project('polari', 'c',
   version: '41.0',
-  meson_version: '>= 0.53.0',
+  meson_version: '>= 0.59.0',
   license: 'GPL2+'
 )
 
@@ -55,13 +55,17 @@ config_h = declare_dependency(
   include_directories: include_directories('.')
 )
 
+gnome.post_install(
+  glib_compile_schemas: true,
+  gtk_update_icon_cache: true,
+  update_desktop_database: true
+)
+
 subdir('src')
 subdir('data')
 subdir('po')
 subdir('help')
 
-meson.add_install_script('meson/meson-postinstall.sh')
-
 meson.add_dist_script(check_version, meson.project_version(), 'NEWS')
 
 if (appstream_util.found())


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