From: Thomas Huth <thuth@redhat.com>
To: Vivek Kasireddy <vivek.kasireddy@intel.com>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [RFC v1 1/1] ui: Add a plain Wayland backend for Qemu UI
Date: Thu, 24 Jun 2021 10:31:22 +0200 [thread overview]
Message-ID: <9e421d71-4601-9c05-a055-01a391bab653@redhat.com> (raw)
In-Reply-To: <20210624041040.1250631-2-vivek.kasireddy@intel.com>
On 24/06/2021 06.10, Vivek Kasireddy wrote:
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
> ---
> configure | 17 ++
> meson.build | 25 +++
> meson_options.txt | 2 +
> qapi/ui.json | 19 ++-
> ui/meson.build | 52 ++++++
> ui/wayland.c | 402 ++++++++++++++++++++++++++++++++++++++++++++++
> 6 files changed, 516 insertions(+), 1 deletion(-)
> create mode 100644 ui/wayland.c
>
> diff --git a/configure b/configure
> index 8dcb9965b2..f6caaa6329 100755
> --- a/configure
> +++ b/configure
> @@ -403,6 +403,7 @@ cfi_debug="false"
> seccomp="auto"
> glusterfs="auto"
> gtk="auto"
> +wayland="auto"
> tls_priority="NORMAL"
> gnutls="$default_feature"
> nettle="$default_feature"
> @@ -1372,6 +1373,10 @@ for opt do
> ;;
> --enable-gtk) gtk="enabled"
> ;;
> + --disable-wayland) wayland="disabled"
> + ;;
> + --enable-wayland) wayland="enabled"
> + ;;
> --tls-priority=*) tls_priority="$optarg"
> ;;
> --disable-gnutls) gnutls="no"
> @@ -1845,6 +1850,7 @@ disabled with --disable-FEATURE, default is enabled if available
> sdl SDL UI
> sdl-image SDL Image support for icons
> gtk gtk UI
> + wayland Wayland UI
> vte vte support for the gtk UI
> curses curses UI
> iconv font glyph conversion support
> @@ -3616,6 +3622,11 @@ if $pkg_config gbm; then
> gbm="yes"
> fi
>
> +if $pkg_config wayland-client; then
> + wayland_cflags="$($pkg_config --cflags wayland-client)"
> + wayland_libs="$($pkg_config --libs wayland-client)"
> +fi
> +
> if test "$opengl" != "no" ; then
> epoxy=no
> if $pkg_config epoxy; then
> @@ -5870,6 +5881,11 @@ if test "$gbm" = "yes" ; then
> echo "GBM_CFLAGS=$gbm_cflags" >> $config_host_mak
> fi
>
> +if test "$wayland" = "enabled" ; then
> + echo "CONFIG_WAYLAND=y" >> $config_host_mak
> + echo "WAYLAND_LIBS=$wayland_libs" >> $config_host_mak
> + echo "WAYLAND_CFLAGS=$wayland_cflags" >> $config_host_mak
> +fi
I think you don't really need the above two hunks in the configure script -
this could be handled in the meson.build file instead. See e.g. commit
1b6954713fee4945207 where the gtk detection has been moved from configure to
Meson.
Thomas
next prev parent reply other threads:[~2021-06-24 8:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-24 4:10 [RFC v1 0/1] ui: Add a Wayland backend for Qemu UI Vivek Kasireddy
2021-06-24 4:10 ` [RFC v1 1/1] ui: Add a plain " Vivek Kasireddy
2021-06-24 8:07 ` Philippe Mathieu-Daudé
2021-06-24 8:31 ` Thomas Huth [this message]
2021-06-24 4:30 ` [RFC v1 0/1] ui: Add a " no-reply
2021-06-24 8:28 ` Gerd Hoffmann
2021-06-24 18:17 ` Kasireddy, Vivek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e421d71-4601-9c05-a055-01a391bab653@redhat.com \
--to=thuth@redhat.com \
--cc=kraxel@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vivek.kasireddy@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).