Merge branch 'build-post-install-query-media-modules' into 'main'

Meson: Also query media modules in post-install

See merge request GNOME/gtk!4380
This commit is contained in:
Matthias Clasen 2022-01-18 23:39:26 +00:00
commit 7192ff672e
2 changed files with 8 additions and 4 deletions

View File

@ -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])

View File

@ -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