From ef1905a6650ee4b79d56923089c2bc8eb8383a19 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 14 Jan 2022 18:53:36 +0100 Subject: [PATCH] post install: query media modules --- build-aux/meson/post-install.py | 8 ++++---- modules/media/meson.build | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py index 5238e3c809..f57ae5e321 100644 --- a/build-aux/meson/post-install.py +++ b/build-aux/meson/post-install.py @@ -13,7 +13,7 @@ if 'DESTDIR' not in os.environ: gtk_moduledir = os.path.join(gtk_libdir, 'gtk-' + gtk_api_version, gtk_abi_version) gtk_printmodule_dir = os.path.join(gtk_moduledir, 'printbackends') - gtk_immodule_dir = os.path.join(gtk_moduledir, 'immodules') + gtk_mediamodule_dir = os.path.join(gtk_moduledir, 'media') print('Compiling GSettings schemas...') glib_compile_schemas = subprocess.check_output(['pkg-config', @@ -40,6 +40,6 @@ if 'DESTDIR' not in os.environ: gio_querymodules = 'gio-querymodules' subprocess.call([gio_querymodules, gtk_printmodule_dir]) - print('Updating module cache for input methods...') - os.makedirs(gtk_immodule_dir, exist_ok=True) - subprocess.call([gio_querymodules, gtk_immodule_dir]) + print('Updating module cache for media backends...') + os.makedirs(gtk_mediamodule_dir, exist_ok=True) + subprocess.call([gio_querymodules, gtk_mediamodule_dir]) diff --git a/modules/media/meson.build b/modules/media/meson.build index d24f84dd86..48ecfd5e10 100644 --- a/modules/media/meson.build +++ b/modules/media/meson.build @@ -69,3 +69,7 @@ if gstplayer_dep.found() and gstgl_dep.found() install: true, ) endif + +if media_backends.length() > 0 + gio_module_dirs += media_install_dir +endif