[ghex: 1/2] build: Use gnome.post_install
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex: 1/2] build: Use gnome.post_install
- Date: Tue, 22 Feb 2022 17:06:00 +0000 (UTC)
commit 906f54615e4db47156c869812aa3ac994e2b0491
Author: Bobby Rong <rjl931189261 126 com>
Date: Fri Feb 18 16:43:58 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.
meson.build | 12 ++++++------
meson_post_install.py | 27 ---------------------------
2 files changed, 6 insertions(+), 33 deletions(-)
---
diff --git a/meson.build b/meson.build
index 3ed33ec..e2c505c 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project(
'ghex', 'c',
version: '4.beta.1',
- meson_version: '>=0.53.0',
+ meson_version: '>=0.59.0',
license: 'GPL2'
)
@@ -130,10 +130,6 @@ configure_file(
configuration: config_h
)
-update_icon_cache_prg = find_program('gtk-update-icon-cache', required : false)
-update_desktop_database_prg = find_program('update-desktop-database', required : false)
-compile_schemas_prg = find_program('glib-compile-schemas', required : false)
-
subdir('src')
subdir('data')
subdir('docs')
@@ -141,7 +137,11 @@ subdir('icons')
subdir('po')
subdir('help')
-meson.add_install_script('meson_post_install.py')
+gnome.post_install(
+ glib_compile_schemas: true,
+ gtk_update_icon_cache: true,
+ update_desktop_database: true,
+)
### SUMMARY PRINTOUT ###
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]