meson: require shared glapi when using DRI based libGL
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 23 Feb 2018 19:32:03 +0000 (19:32 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 29 May 2018 15:56:19 +0000 (16:56 +0100)
Just like we do in the autotools build.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build

index d4f460e0b6e474507114558de231ac5ff660154e..4aafba802a5e4d842825199a8769560b2b09abe8 100644 (file)
@@ -357,8 +357,12 @@ if with_glx != 'disabled'
     if with_dri
       error('xlib conflicts with any dri driver')
     endif
-  elif with_glx == 'dri' and not with_dri
-    error('dri based GLX requires at least one DRI driver')
+  elif with_glx == 'dri'
+    if not with_dri
+      error('dri based GLX requires at least one DRI driver')
+    elif not with_shared_glapi
+      error('dri based GLX requires shared-glapi')
+    endif
   endif
 endif