diff options
author | Jehan <jehan@girinstud.io> | 2020-06-28 12:48:27 +0200 |
---|---|---|
committer | Jehan <jehan@girinstud.io> | 2020-06-28 12:48:27 +0200 |
commit | 2fb755e0c9b87bd3004e174f4eee75b37377b98a (patch) | |
tree | 526c346169d77bd809e2969f14ba56dd7734397b /build-aux | |
parent | cd096819d8a5727418f9aadf73b3877325e19e80 (diff) | |
download | gtk+-2fb755e0c9b87bd3004e174f4eee75b37377b98a.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.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py index 4a4cc02fc4..7616de7ba2 100644 --- a/build-aux/meson/post-install.py +++ b/build-aux/meson/post-install.py @@ -18,6 +18,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')])
@@ -30,6 +33,9 @@ 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]) print('Updating module cache for input methods...')
|