[gnome-mahjongg] data: determine schemasdir from pkgconfig variable
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg] data: determine schemasdir from pkgconfig variable
- Date: Thu, 3 Feb 2022 23:25:52 +0000 (UTC)
commit 4f64f786c5815943253c7c3b5a815f8b7b8d725c
Author: Günther Wagner <info gunibert de>
Date: Sat Jan 29 09:56:19 2022 +0100
data: determine schemasdir from pkgconfig variable
data/meson.build | 7 ++++++-
flatpak/org.gnome.Mahjongg.json | 32 --------------------------------
2 files changed, 6 insertions(+), 33 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 0e0beb7..8740503 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -5,8 +5,13 @@ install_data ('icons' / 'hicolor' / 'scalable' / 'org.gnome.Mahjongg.svg',
install_data ('icons' / 'hicolor' / 'symbolic' / 'org.gnome.Mahjongg-symbolic.svg',
install_dir: hicolordir / 'symbolic' / 'apps')
+schemasdir = gio_dep.get_variable(
+ pkgconfig: 'schemasdir',
+ pkgconfig_define: ['datadir', get_option('datadir')],
+ default_value: join_paths(get_option('datadir'), 'glib-2.0/schemas'),
+)
install_data ('org.gnome.Mahjongg.gschema.xml',
- install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
+ install_dir: schemasdir
)
install_data ('mahjongg.map', install_dir: join_paths (pkgdatadir, 'maps'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]