meson: don't require dri2proto for darwin or windows
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 23 Nov 2017 14:01:57 +0000 (14:01 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 30 Nov 2017 15:09:21 +0000 (15:09 +0000)
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
meson.build

index 7a7793b..9222e6e 100644 (file)
@@ -910,7 +910,9 @@ if with_platform_x11
     endif
   endif
   if with_glx == 'dri'
-    dep_dri2proto = dependency('dri2proto', version : '>= 2.8')
+    if with_dri_platform == 'drm'
+      dep_dri2proto = dependency('dri2proto', version : '>= 2.8')
+    endif
     dep_glproto = dependency('glproto', version : '>= 1.4.14')
   endif
   if with_egl