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




commit ee9616e3d21f0b51062ecfca69253ffa03e79ecf
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]