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

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1686>
This commit is contained in:
Heiko Becker 2022-02-11 21:35:54 +01:00 committed by Nirbheek Chauhan
parent e3e23a2c84
commit d03971dac7

View file

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