lame: Disable tools when using the fallback subproject

This saves time when building, since we don't use the tools.

Particularly on macOS, due to a macOS bug, Meson picks up an invalid
ncurses-config binary and incorrectly detects the presence of ncurses,
causing a build failure. This is fixed in the latest meson:
https://github.com/mesonbuild/meson/pull/13715

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7611>
This commit is contained in:
Nirbheek Chauhan 2024-10-04 05:55:54 +05:30 committed by GStreamer Marge Bot
parent 1a394e8b43
commit 3fadf4807c

View file

@ -16,7 +16,8 @@ if have_lame
lame_extra_c_args += ['-DGSTLAME_PRESET']
endif
else
lame_dep = dependency('mp3lame', fallback: ['lame', 'lame_dep'], required: lame_option)
lame_dep = dependency('mp3lame', allow_fallback: true, required: lame_option,
default_options: ['tools=disabled'])
have_lame = lame_dep.found()
lame_extra_c_args += ['-DHAVE_LAME_SET_VBR_QUALITY', '-DGSTLAME_PRESET', '-DLAME_SUBPROJECT']
endif