[gnote: 1/2] build: Use GNOME module post_install()




commit 93905aac715b68140f028c7efe9e67706174da62
Author: Matt Turner <mattst88 gmail com>
Date:   Tue Aug 23 21:15:13 2022 -0400

    build: Use GNOME module post_install()

 meson.build     | 11 ++++++-----
 post-install.py | 19 -------------------
 2 files changed, 6 insertions(+), 24 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4bca56ea..d33d081d 100644
--- a/meson.build
+++ b/meson.build
@@ -1,12 +1,11 @@
 project('gnote', 'cpp',
   version: '43.beta',
-  meson_version: '>=0.50.0',
+  meson_version: '>=0.59.0',
   default_options: 'cpp_std=c++14',
 )
 
 gnome = import('gnome')
 i18n = import('i18n')
-python = import('python')
 
 gnote_release = meson.project_version().split('.')[0]
 libgnote_version_info = '0.0.0'
@@ -56,11 +55,13 @@ configure_file(
 root_include_dir = include_directories('.')
 srcdir = meson.current_source_dir()
 
-meson.add_install_script(python.find_installation('python3').path(),
-  join_paths(meson.source_root(), 'post-install.py'))
-
 subdir('data')
 subdir('help')
 subdir('src')
 subdir('po')
 
+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]