meson: only build vl_winsys_dri.c when x11 platform is used

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: b1b65397d0
       ("meson: Build gallium auxiliary")
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Lukas Rusak
2018-06-01 14:09:42 -07:00
committed by Dylan Baker
parent b9e6438adf
commit 1d92d6486a
+1 -1
View 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 += [