Re: [PATCH v2] meson: Allow building on a Wayland-only environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Merged.

Thanks,
   Frediano

Il giorno mar 11 ott 2022 alle ore 11:18 Fabio Estevam
<festevam@xxxxxxxxx> ha scritto:
>
> From: Fabio Estevam <festevam@xxxxxxx>
>
> Currently, it is not possible to build spice-gtk on a Wayland-only
> environment due to the x11 dependency in meson.
>
> Since commit a7381b0864b7 ("Allow to build without X11 gdk backend)
> it is possible to build spice-gtk without X11 GDK backend, so make
> the x11 dependency in meson optional.
>
> Signed-off-by: Fabio Estevam <festevam@xxxxxxx>
> ---
> Changes since v1:
> - Make the x11 dependency optional instead of removing it (Frediano).
>
>  meson.build | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/meson.build b/meson.build
> index dd46294085b0..c163a44f2d60 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -152,7 +152,10 @@ if d.found()
>    spice_gtk_deps += d
>    if host_machine.system() != 'windows'
>      spice_gtk_deps += dependency('epoxy')
> -    spice_gtk_deps += dependency('x11')
> +    d = dependency('x11', required: false)
> +    if d.found()
> +      spice_gtk_deps += d
> +    endif
>      d = dependency('libva-x11', required: false)
>      if d.found()
>        spice_gtk_deps += d
> --
> 2.25.1
>



[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]