[buoh] build: Use gnome.post_install instead of custom function
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [buoh] build: Use gnome.post_install instead of custom function
- Date: Mon, 21 Feb 2022 15:33:45 +0000 (UTC)
commit eb4ce1530bce17f3d3203e0edb8210c66ab73718
Author: Jan Tojnar <jtojnar gmail com>
Date: Mon Feb 21 16:08:02 2022 +0100
build: Use gnome.post_install instead of custom function
build-aux/post-install.py | 16 ----------------
data/icons/meson.build | 2 +-
meson.build | 10 ++++------
3 files changed, 5 insertions(+), 23 deletions(-)
---
diff --git a/data/icons/meson.build b/data/icons/meson.build
index 8134560..12fa304 100644
--- a/data/icons/meson.build
+++ b/data/icons/meson.build
@@ -10,6 +10,6 @@ icon_sizes = [
foreach icon_size : icon_sizes
install_data(
join_paths(icon_size, 'buoh.png'),
- install_dir: join_paths(datadir, 'icons', 'hicolor', icon_size, 'apps'),
+ install_dir: join_paths(icondir, icon_size, 'apps'),
)
endforeach
diff --git a/meson.build b/meson.build
index 88f2907..90b4ee7 100644
--- a/meson.build
+++ b/meson.build
@@ -6,6 +6,7 @@ project(
default_options: [
'b_ndebug=if-release',
],
+ meson_version: '>= 0.57.0'
)
gnome = import('gnome')
@@ -50,12 +51,9 @@ if appstream_util.found()
)
endif
-# Post-install scripts
-meson.add_install_script(
- python3,
- join_paths(meson.source_root(), 'build-aux', 'post-install.py'),
- icondir,
- schemadir,
+gnome.post_install(
+ glib_compile_schemas: true,
+ gtk_update_icon_cache: true,
)
# Subfolders
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]