sys: shm: Define shm_enable and shm_deps before escape meson subdir

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>
This commit is contained in:
Fabian Orccon 2021-09-18 14:29:25 +02:00 committed by GStreamer Marge Bot
parent 45409d4558
commit 71c4355b1c

View 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