meson: va: Add va option check into plugin's build.

Because the liblibgstva is built unconditionally, we now move the
va option check into va plugin's build.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1685>
This commit is contained in:
He Junyan 2022-02-13 10:49:31 +08:00 committed by GStreamer Marge Bot
parent 58d594df44
commit fa4dc3470f

View file

@ -22,7 +22,12 @@ va_sources = [
'vasurfaceimage.c',
]
if not gstva_dep.found()
if host_system != 'linux'
subdir_done()
endif
va_option = get_option('va').require(gstva_dep.found(), error_message: 'va plugin requires libgstva.')
if va_option.disabled()
subdir_done()
endif