[folks/wip/jtojnar/post-install] build: Use gnome.post_install() function




commit f789b065d9f371aed85a941a2dd7dd3575ea3792
Author: Jan Tojnar <jtojnar gmail com>
Date:   Thu Sep 8 13:52:01 2022 +0200

    build: Use gnome.post_install() function
    
    Introduced in Meson 0.57.0, it simplifies the code a bit:
    https://mesonbuild.com/Gnome-module.html#gnomepost_install
    
    Icons are not installed so no need to regenerate the icon cache.

 meson.build           |  6 ++++--
 meson_post_install.py | 15 ---------------
 2 files changed, 4 insertions(+), 17 deletions(-)
---
diff --git a/meson.build b/meson.build
index 785e965f..d104c3d5 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
 project('folks', [ 'vala', 'c' ],
   version: '0.15.6',
   license: 'LGPL2.1+',
-  meson_version: '>= 0.51',
+  meson_version: '>= 0.57',
 )
 
 gnome = import('gnome')
@@ -182,7 +182,9 @@ common_pkgconf_variables = [
 
 # Post-install scripts
 #-------------------------------------------------
-meson.add_install_script('meson_post_install.py')
+gnome.post_install(
+  glib_compile_schemas: true,
+)
 
 
 # Subdirectories


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