sys: shm: Define shm_enable and shm_deps before escape meson subdir
authorFabian Orccon <cfoch.fabian@gmail.com>
Sat, 18 Sep 2021 12:29:25 +0000 (14:29 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 18 Sep 2021 22:13:55 +0000 (22:13 +0000)
Fixes meson configure in tests if the shm plugin is disabled

Fixes #1664

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2534>

sys/shm/meson.build

index 23883c5..7618a67 100644 (file)
@@ -6,11 +6,12 @@ shm_sources = [
   'gstshmsink.c',
 ]
 
+shm_deps = []
+shm_enabled = false
 if get_option('shm').disabled()
   subdir_done()
 endif
 
-shm_deps = []
 if ['darwin', 'ios'].contains(host_system) or host_system.endswith('bsd')
   rt_dep = []
   shm_enabled = true