meson: only build vl_winsys_dri.c when x11 platform is used
authorLukas Rusak <lorusak@gmail.com>
Fri, 1 Jun 2018 21:09:42 +0000 (14:09 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 14 Jun 2018 17:34:51 +0000 (10:34 -0700)
This seems to have been missed in the move from autotools

This fixes the following build issue:

../src/gallium/auxiliary/vl/vl_winsys_dri.c:34:10: fatal error: X11/Xlib-xcb.h: No such file or directory
 #include <X11/Xlib-xcb.h>
          ^~~~~~~~~~~~~~~~

Fixes: b1b65397d0c4978e36a84c0a1c98a4bd6cb9588e
       ("meson: Build gallium auxiliary")
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/gallium/auxiliary/meson.build

index 92cfb8f7af530aa2b12c9097eb243b07c4ca4611..1f7548142b78491d13e85f3f76f42f87b4d6558a 100644 (file)
@@ -484,7 +484,7 @@ files_libgalliumvl = files(
 
 vlwinsys_deps = []
 files_libgalliumvlwinsys = files('vl/vl_winsys.h')
-if with_dri2
+if with_dri2 and with_platform_x11
   files_libgalliumvlwinsys += files('vl/vl_winsys_dri.c')
   if with_dri3
     vlwinsys_deps += [