build: let the build fail if none if X11, wayland or drm.

In fact, gst_vaapi_create_test_display only test x11, wayland and
drm, no glx and egl entries. So if none of them is enabled, no
vaapi element can be detected.
This commit is contained in:
He Junyan 2020-02-22 16:06:13 +08:00 committed by GStreamer Merge Bot
parent b7af4205aa
commit 3ff51a6e52

View file

@ -117,7 +117,7 @@ USE_WAYLAND = libva_wayland_dep.found() and wayland_client_dep.found() and wayla
USE_X11 = libva_x11_dep.found() and x11_dep.found() and get_option('with_x11') != 'no'
USE_GLX = libva_x11_dep.found() and x11_dep.found() and gl_dep.found() and libdl_dep.found() and get_option('with_glx') != 'no' and USE_X11
if not (USE_DRM or USE_X11 or USE_EGL or USE_GLX or USE_WAYLAND)
if not (USE_DRM or USE_X11 or USE_WAYLAND)
error('No renderer API found (it is requried either DRM, X11 and/or WAYLAND)')
endif