From f80dee40c8b688f21173094e2853e080d1575449 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 11 Oct 2019 17:13:34 +0200 Subject: [PATCH] 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 --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 227bcf9..4ef6881 100644 --- a/meson.build +++ b/meson.build @@ -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') -- 2.7.4