meson: Pass python=false to libxml2

We don't need this in gstreamer anyway.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4510

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9438>
This commit is contained in:
Nirbheek Chauhan 2025-07-24 20:19:00 +01:00 committed by GStreamer Marge Bot
parent 009192bde4
commit eef8ec6e47
5 changed files with 9 additions and 6 deletions

View File

@ -115,7 +115,7 @@ gstvalidate_dep = dependency('gstreamer-validate-1.0', version : gst_req, requir
gio_dep = dependency('gio-2.0', version: glib_req)
gmodule_dep = dependency('gmodule-no-export-2.0')
libdl = cc.find_library('dl', required: false)
libxml_dep = dependency('libxml-2.0', required: get_option('xptv'))
libxml_dep = dependency('libxml-2.0', required: get_option('xptv'), default_options: {'python': false})
cdata.set('DISABLE_XPTV', not libxml_dep.found())
# TODO Properly port to Gtk 3

View File

@ -79,8 +79,8 @@ plugin_sources += {
xml2_dep = dependency('libxml-2.0',
version : '>= 2.8',
fallback : 'libxml2',
required : get_option('dash')
required : get_option('dash'),
default_options: {'python': false},
)
if xml2_dep.found()

View File

@ -20,7 +20,8 @@ plugin_sources += {
'smoothstreaming': pathsep.join(doc_sources)
}
xml28_dep = dependency('libxml-2.0', version : '>= 2.8', required : get_option('smoothstreaming'))
xml28_dep = dependency('libxml-2.0', version: '>= 2.8', required: get_option('smoothstreaming'),
default_options: {'python': false})
if xml28_dep.found()
gstmss = library('gstsmoothstreaming',

View File

@ -1,4 +1,5 @@
libxml_dep = dependency('libxml-2.0', version : '>= 2.9.2', required : get_option('ttml'))
libxml_dep = dependency('libxml-2.0', version : '>= 2.9.2', required : get_option('ttml'),
default_options: {'python': false})
pango_dep = dependency('pango', required : get_option('ttml'))
cairo_dep = dependency('cairo', required : get_option('ttml'))
pangocairo_dep = dependency('pangocairo', required : get_option('ttml'))

View File

@ -124,7 +124,8 @@ if soup_lookup_dep and not libsoup3_dep.found() and not libsoup2_dep.found()
subdir_done()
endif
adaptive_xml2_dep = dependency('libxml-2.0', version : '>= 2.8', allow_fallback: true, required: adaptivedemux2_opt)
adaptive_xml2_dep = dependency('libxml-2.0', version : '>= 2.8', allow_fallback: true,
default_options: {'python': false}, required: adaptivedemux2_opt)
if not adaptive_xml2_dep.found()
message(f'Not building adaptivedemux2 plugin: libxml2 is needed')