[gnome-user-share] build: Use gnome.post_install



commit 78f015cd8e23ca8fdf09943b4e77c8d7c6004867
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Thu Jul 14 21:54:24 2022 +0200

    build: Use gnome.post_install

 meson.build           | 7 +++----
 meson_post_install.py | 9 ---------
 src/meson.build       | 2 ++
 3 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4c50a2c..6ee9091 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
   version: '3.34.0',
   license: 'GPL2',
   default_options: 'buildtype=debugoptimized',
-  meson_version: '>= 0.50.0',
+  meson_version: '>= 0.57.0',
 )
 
 user_share_name = meson.project_name()
@@ -117,9 +117,8 @@ configure_file(
   configuration: config_h,
 )
 
-meson.add_install_script(
-  'meson_post_install.py',
-  gio_schemasdir,
+gnome.post_install(
+  glib_compile_schemas: true,
 )
 
 output = user_share_name + ' was configured with the following options:\n'
diff --git a/src/meson.build b/src/meson.build
index 8c8a8d6..17bfe76 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,5 +1,7 @@
 common_c_flags = ['-DGNOMELOCALEDIR="@0@"'.format(user_share_prefix / user_share_localedir)]
 
+gnome = import('gnome')
+
 deps = [
   gio_dep,
   glib_dep,


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