examples: don't try and build jack examples if jack was disabled
authorTim-Philipp Müller <tim@centricular.com>
Fri, 24 Jun 2022 11:10:02 +0000 (12:10 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 24 Jun 2022 16:00:37 +0000 (16:00 +0000)
Fixes meson build ERROR: Unknown variable "libjack_dep".

Fixes #1301

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2656>

subprojects/gst-plugins-good/tests/examples/jack/meson.build

index 25ac8a8..f964216 100644 (file)
@@ -1,3 +1,7 @@
+if get_option('jack').disabled()
+  subdir_done()
+endif
+
 if libjack_dep.found()
   executable('jack_client', 'jack_client.c',
     dependencies: [gst_dep, gtk_dep, libjack_dep],