summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJehan <jehan@girinstud.io>2020-06-28 12:39:28 +0200
committerJehan <jehan@girinstud.io>2020-06-28 12:42:14 +0200
commit8df0c818078f480870befb7935b3d7eeae88512b (patch)
treef45f380ae49278cb96e6916d4d08b8624d22e62a /build-aux
parent87dfcd815244bdd39306bedf0db13f2146811254 (diff)
downloadgtk+-8df0c818078f480870befb7935b3d7eeae88512b.tar.gz
build-aux: fallback to default glib-compile-schemas & gio-querymodules.
The pkg-config variables have been added in GLib 2.62.0. Let's fallback to default names for these tools in such case (`pkg-config` still returns a 0 return value, but with empty output for absent variables).
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/meson/post-install.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py
index bdbc8a32c9..e302a6ee5a 100644
--- a/build-aux/meson/post-install.py
+++ b/build-aux/meson/post-install.py
@@ -30,6 +30,9 @@ if 'DESTDIR' not in os.environ:
glib_compile_schemas = subprocess.check_output(['pkg-config',
'--variable=glib_compile_schemas',
'gio-2.0']).strip()
+ if not os.path.exists(glib_compile_schemas):
+ # pkg-config variables only available since GLib 2.62.0.
+ glib_compile_schemas = 'glib-compile-schemas'
subprocess.call([glib_compile_schemas,
os.path.join(gtk_datadir, 'glib-2.0', 'schemas')])
@@ -49,4 +52,7 @@ if 'DESTDIR' not in os.environ:
gio_querymodules = subprocess.check_output(['pkg-config',
'--variable=gio_querymodules',
'gio-2.0']).strip()
+ if not os.path.exists(gio_querymodules):
+ # pkg-config variables only available since GLib 2.62.0.
+ gio_querymodules = 'gio-querymodules'
subprocess.call([gio_querymodules, gtk_printmodule_dir])