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




commit 6a198758b0d3f6361e34e992b0fbfab46c9b315b
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           |  4 +++-
 meson_post_install.py | 15 ---------------
 2 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/meson.build b/meson.build
index 003e516f..4b14ed15 100644
--- a/meson.build
+++ b/meson.build
@@ -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]