forked from AuroraMiddleware/gtk
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:
commit
7192ff672e
@ -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])
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user