[Mesa-dev] [PATCH] meson: only build vl_winsys_dri.c when x11 platform is used

Dylan Baker dylan at pnwbakers.com
Fri Jun 1 14:33:54 UTC 2018


Quoting Lukas Rusak (2018-06-01 00:20:10)
> 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>
>           ^~~~~~~~~~~~~~~~
> ---
>  src/gallium/auxiliary/meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build
> index 584cbe4509..857001e12c 100644
> --- a/src/gallium/auxiliary/meson.build
> +++ b/src/gallium/auxiliary/meson.build
> @@ -453,7 +453,7 @@ files_libgalliumvl = files(
>  )
>  
>  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
>      files_libgalliumvlwinsys += files('vl/vl_winsys_dri3.c')
> -- 
> 2.17.0
> 

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

Do you need me to push this for you?

Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180601/85af474e/attachment.sig>


More information about the mesa-dev mailing list