[gnome-clocks] build: Use gnome.post_install
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] build: Use gnome.post_install
- Date: Fri, 18 Feb 2022 14:12:31 +0000 (UTC)
commit 7da9e116b889c104aa715009cc05fd7ead6f5216
Author: Bobby Rong <rjl931189261 126 com>
Date: Fri Feb 18 20:06:32 2022 +0800
build: Use gnome.post_install
Also requires meson 0.59.0.
Otherwise the post install script will fail if GTK 3 is not installed.
build-aux/post-install.py | 19 -------------------
meson.build | 12 +++++++-----
2 files changed, 7 insertions(+), 24 deletions(-)
---
diff --git a/meson.build b/meson.build
index e6bec70c..827f612d 100644
--- a/meson.build
+++ b/meson.build
@@ -3,12 +3,11 @@ project(
['vala', 'c'],
version: '42.beta',
license: 'GPL-2.0-or-later',
- meson_version: '>= 0.50.0',
+ meson_version: '>= 0.59.0',
)
gnome = import('gnome')
i18n = import('i18n')
-python3 = import('python3')
glib = dependency('glib-2.0', version: '>= 2.68')
gio = dependency('gio-2.0', version: '>= 2.58')
@@ -63,10 +62,13 @@ endif
configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')
-meson.add_install_script(python3.find_python().path(),
- join_paths(meson.source_root(), 'build-aux', 'post-install.py'))
-
subdir('data')
subdir('help')
subdir('po')
subdir('src')
+
+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]