build: Use gnome.post_install

Also requires meson 0.57.0.
Otherwise the post install script will fail if GTK 3 is not installed.
This commit is contained in:
Bobby Rong
2022-02-17 22:44:13 +08:00
parent d979e8e930
commit b7e84c4326
4 changed files with 11 additions and 19 deletions
+11 -2
View File
@@ -3,7 +3,7 @@ project(
'c',
version: '42.rc',
license: 'GPL3+',
meson_version: '>= 0.53.0'
meson_version: '>= 0.57.0'
)
@@ -187,7 +187,6 @@ src_dir = join_paths(meson.source_root(), 'src')
# Subdirs #
###########
subdir('build-aux')
subdir('data')
subdir('src')
subdir('po')
@@ -206,3 +205,13 @@ summary({
'Debug': calendar_debug,
'Tracing': enable_tracing,
}, section: 'Development')
###########
# Scripts #
###########
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
)