[gnome-logs/wip/jtojnar/meson-postinstall: 15/15] 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: 15/15] build: switch to Meson’s post_install
- Date: Sat, 24 Sep 2022 13:17:48 +0000 (UTC)
commit 32193a1385b95012bc8e7007ada89566bd63697d
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 | 16 ++++++++++++++--
meson_post_install.py | 15 ---------------
2 files changed, 14 insertions(+), 17 deletions(-)
---
diff --git a/meson.build b/meson.build
index 316d77a..3958d21 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,12 @@
-project('gnome-logs', 'c', version : '43.1', default_options : ['warning_level=1'])
+project(
+ 'gnome-logs',
+ 'c',
+ version: '43.1',
+ meson_version: '>= 0.59.0',
+ default_options: [
+ 'warning_level=1',
+ ],
+)
gl_name = meson.project_name()
gl_version = meson.project_version()
@@ -111,4 +119,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]