mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
meson: Check for libsoup only if required
LibSoup is needed for the soup and adaptivedemux2 plugins, so there is no need to do the lookup if none of those plugins is enabled. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7964>
This commit is contained in:
parent
c31cbda5de
commit
5a6594dea5
1 changed files with 35 additions and 32 deletions
|
@ -18,6 +18,9 @@ soup_ver_opt = get_option('soup-version')
|
||||||
default_library = get_option('default_library')
|
default_library = get_option('default_library')
|
||||||
soup_linked_target = host_system == 'windows' or default_library != 'shared'
|
soup_linked_target = host_system == 'windows' or default_library != 'shared'
|
||||||
soup_lookup_dep = get_option('soup-lookup-dep') or soup_linked_target
|
soup_lookup_dep = get_option('soup-lookup-dep') or soup_linked_target
|
||||||
|
soup_dlopen_target_kwargs = {}
|
||||||
|
|
||||||
|
if get_option('soup').allowed() or get_option('adaptivedemux2').allowed()
|
||||||
if soup_ver_opt in ['auto', '3']
|
if soup_ver_opt in ['auto', '3']
|
||||||
libsoup3_dep = dependency('libsoup-3.0', allow_fallback: true,
|
libsoup3_dep = dependency('libsoup-3.0', allow_fallback: true,
|
||||||
required: soup_ver_opt == '3' and soup_lookup_dep)
|
required: soup_ver_opt == '3' and soup_lookup_dep)
|
||||||
|
@ -42,7 +45,6 @@ endif
|
||||||
|
|
||||||
# Hack to set the right RPATH for making dlopen() work inside the devenv on
|
# Hack to set the right RPATH for making dlopen() work inside the devenv on
|
||||||
# macOS when using libsoup as a subproject.
|
# macOS when using libsoup as a subproject.
|
||||||
soup_dlopen_target_kwargs = {}
|
|
||||||
if host_system == 'darwin'
|
if host_system == 'darwin'
|
||||||
foreach dep : [libsoup3_dep, libsoup2_dep]
|
foreach dep : [libsoup3_dep, libsoup2_dep]
|
||||||
if dep.found() and dep.type_name() == 'internal'
|
if dep.found() and dep.type_name() == 'internal'
|
||||||
|
@ -53,6 +55,7 @@ if host_system == 'darwin'
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
subdir('aalib')
|
subdir('aalib')
|
||||||
subdir('adaptivedemux2')
|
subdir('adaptivedemux2')
|
||||||
|
|
Loading…
Reference in a new issue