meson: Don't build lame plugin with -Dlame=disabled
authorHeiko Becker <heirecka@exherbo.org>
Fri, 11 Feb 2022 20:35:54 +0000 (21:35 +0100)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 14 Feb 2022 22:35:08 +0000 (04:05 +0530)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1686>

subprojects/gst-plugins-good/ext/lame/meson.build

index 2169fde..3290f17 100644 (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')