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




commit 0f1826ee689b153170c5f1dbe2fadb98df6111bc
Author: Jan Tojnar <jtojnar gmail com>
Date:   Thu Sep 8 14:32:55 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
    
    Additionally, let’s also update the desktop database
    or some launchers might not show the icon.
    This require Meson 0.59.0.

 meson.build           |  9 +++++----
 meson_post_install.py | 22 ----------------------
 2 files changed, 5 insertions(+), 26 deletions(-)
---
diff --git a/meson.build b/meson.build
index f20674a0..e4e2e8bb 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,7 @@ project(
     'buildtype=debugoptimized',
     'warning_level=1'
   ],
-  meson_version: '>= 0.41.0'
+  meson_version: '>= 0.59.0',
 )
 
 dconf_editor_name = meson.project_name()
@@ -121,7 +121,8 @@ configure_file(
   configuration: config_h
 )
 
-meson.add_install_script(
-  'meson_post_install.py',
-  dconf_editor_datadir
+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]