meson: Don't build lame plugin with -Dlame=disabled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1720>
This commit is contained in:
Heiko Becker 2022-02-11 21:35:54 +01:00 committed by GStreamer Marge Bot
parent b7e746392d
commit a6d9ce54ba

View file

@ -1,5 +1,10 @@
lame_dep = dependency('', required: false)
lame_option = get_option('lame') lame_option = get_option('lame')
if lame_option.disabled()
subdir_done()
endif
lame_extra_c_args = [] lame_extra_c_args = []
lame_dep = cc.find_library('mp3lame', required: false) lame_dep = cc.find_library('mp3lame', required: false)
have_lame = cc.has_header_symbol('lame/lame.h', 'lame_init') have_lame = cc.has_header_symbol('lame/lame.h', 'lame_init')