[gnome-music/wip/mschraal/meson-0.59-updates: 1/2] meson: Use gnome.post_install
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/meson-0.59-updates: 1/2] meson: Use gnome.post_install
- Date: Tue, 17 Aug 2021 23:24:10 +0000 (UTC)
commit 53a8ed6bf2b1163ce47acc90ef8d90c85064e8da
Author: Marinus Schraal <mschraal gnome org>
Date: Wed Aug 18 01:17:41 2021 +0200
meson: Use gnome.post_install
This replaces our custom install scripts.
data/meson.build | 7 +++++--
meson.build | 9 ++++++---
meson_post_conf.py | 12 ------------
meson_post_install.py | 21 ---------------------
4 files changed, 11 insertions(+), 38 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 25ff1e102..aa6098f74 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -10,10 +10,13 @@ gnome.compile_resources(
dependencies: about_dialog
)
+schema_src = PROJECT_RDNN_NAME + '.gschema.xml'
+gnome.compile_schemas(build_by_default: true, depend_files: files(schema_src))
+
# Installing the schema file
install_data(
- PROJECT_RDNN_NAME + '.gschema.xml',
- install_dir: 'share/glib-2.0/schemas'
+ schema_src,
+ install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)
# Merging the translations with the desktop file
diff --git a/meson.build b/meson.build
index c242554bf..d4ed6a82e 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('gnome-music',
version: '41.beta',
- meson_version: '>= 0.49.0'
+ meson_version: '>= 0.59.0'
)
# Importing modules
@@ -111,5 +111,8 @@ configure_file(
configuration: local_config
)
-meson.add_postconf_script('meson_post_conf.py')
-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]