[gnome-logs/wip/jtojnar/meson-postinstall] build: switch to Meson’s post_install
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs/wip/jtojnar/meson-postinstall] build: switch to Meson’s post_install
- Date: Sat, 13 Aug 2022 07:22:47 +0000 (UTC)
commit f7fe4b6ff9f5ab70919b6747f95e38d0d48685b8
Author: Jan Tojnar <jtojnar gmail com>
Date: Sat Aug 13 09:21:09 2022 +0200
build: switch to Meson’s post_install
It is cleaner and does not depend on GTK 3.
Also added update-desktop-database, since we install desktop file.
Requires Meson 0.59 for update_desktop_database kwarg.
meson.build | 13 +++++++++++--
meson_post_install.py | 15 ---------------
2 files changed, 11 insertions(+), 17 deletions(-)
---
diff --git a/meson.build b/meson.build
index 31d6731..705dd7c 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,9 @@
-project('gnome-logs', 'c', version : '43.beta')
+project(
+ 'gnome-logs',
+ 'c',
+ version: '43.beta',
+ meson_version: '>= 0.59.0',
+)
gl_name = meson.project_name()
gl_version = meson.project_version()
@@ -112,4 +117,8 @@ subdir('po')
subdir('help')
subdir('tests')
-meson.add_install_script('meson_post_install.py')
+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]