mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
build: halt meson configuration if no renderer API
We should halt meson configuration if there is no render API installed (either DRM, Wayland or X11). That behavior was already in autotools but missed in meson. This patch brings it back. Fixes: #196
This commit is contained in:
parent
600aba57cf
commit
f80dee40c8
1 changed files with 4 additions and 0 deletions
|
@ -115,6 +115,10 @@ USE_GLX = libva_x11_dep.found() and x11_dep.found() and gl_dep.found() and libdl
|
|||
USE_WAYLAND = libva_wayland_dep.found() and wayland_client_dep.found() and wayland_protocols_dep.found() and wayland_scanner_bin.found() and get_option('with_wayland') != 'no'
|
||||
USE_X11 = libva_x11_dep.found() and x11_dep.found() and get_option('with_x11') != 'no'
|
||||
|
||||
if not (USE_DRM or USE_X11 or USE_EGL or USE_GLX or USE_WAYLAND)
|
||||
error('No renderer API found (it is requried either DRM, X11 and/or WAYLAND)')
|
||||
endif
|
||||
|
||||
driverdir = libva_dep.get_pkgconfig_variable('driverdir')
|
||||
if driverdir == ''
|
||||
driverdir = '@0@/@1@/@2@'.format(get_option('prefix'), get_option('libdir'), 'dri')
|
||||
|
|
Loading…
Reference in a new issue