From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Vivek Kasireddy <vivek.kasireddy@intel.com>
Cc: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [RFC v2 2/2] ui: Add a plain Wayland backend for Qemu UI
Date: Tue, 14 Sep 2021 17:15:03 +0100 [thread overview]
Message-ID: <YUDKh+83AdvtsV28@redhat.com> (raw)
In-Reply-To: <20210913222036.3193732-3-vivek.kasireddy@intel.com>
On Mon, Sep 13, 2021 at 03:20:36PM -0700, Vivek Kasireddy wrote:
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
> ---
> configure | 8 +-
> meson.build | 33 +++
> meson_options.txt | 2 +
> qapi/ui.json | 3 +
> ui/meson.build | 52 ++++
> ui/wayland.c | 628 ++++++++++++++++++++++++++++++++++++++++++++++
> 6 files changed, 725 insertions(+), 1 deletion(-)
> create mode 100644 ui/wayland.c
> diff --git a/ui/meson.build b/ui/meson.build
> index a73beb0e54..86fc324c82 100644
> --- a/ui/meson.build
> +++ b/ui/meson.build
> @@ -64,6 +64,58 @@ if config_host.has_key('CONFIG_OPENGL') and gbm.found()
> ui_modules += {'egl-headless' : egl_headless_ss}
> endif
>
> +wayland_scanner = find_program('wayland-scanner')
> +proto_sources = [
> + ['xdg-shell', 'stable', ],
> + ['fullscreen-shell', 'unstable', 'v1', ],
> + ['linux-dmabuf', 'unstable', 'v1', ],
> +]
> +wayland_headers = []
> +wayland_proto_sources = []
> +
> +if wayland.found()
> + foreach p: proto_sources
> + proto_name = p.get(0)
> + proto_stability = p.get(1)
> +
> + if proto_stability == 'stable'
> + output_base = proto_name
> + input = files(join_paths(wlproto_dir, '@0@/@1@/@2@.xml'.format(proto_stability, proto_name, output_base)))
> + else
> + proto_version = p.get(2)
> + output_base = '@0@-@1@-@2@'.format(proto_name, proto_stability, proto_version)
> + input = files(join_paths(wlproto_dir, '@0@/@1@/@2@.xml'.format(proto_stability, proto_name, output_base)))
> + endif
> +
> + wayland_headers += custom_target('@0@ client header'.format(output_base),
> + input: input,
> + output: '@0@-client-protocol.h'.format(output_base),
> + command: [
> + wayland_scanner,
> + 'client-header',
> + '@INPUT@', '@OUTPUT@',
> + ], build_by_default: true
> + )
> +
> + wayland_proto_sources += custom_target('@0@ source'.format(output_base),
> + input: input,
> + output: '@0@-protocol.c'.format(output_base),
> + command: [
> + wayland_scanner,
> + 'private-code',
> + '@INPUT@', '@OUTPUT@',
> + ], build_by_default: true
> + )
> + endforeach
> +endif
> +
> +if wayland.found()
> + wayland_ss = ss.source_set()
> + wayland_ss.add(when: wayland, if_true: files('wayland.c', 'xdg-shell-protocol.c', 'fullscreen-shell-unstable-v1-protocol.c','linux-dmabuf-unstable-v1-protocol.c'))
> + #wayland_ss.add(when: wayland, if_true: files('wayland.c'), [wayland_proto_sources])
> + ui_modules += {'wayland' : wayland_ss}
> +endif
Configure fails on this
Program wayland-scanner found: YES (/usr/bin/wayland-scanner)
../ui/meson.build:114:13: ERROR: File xdg-shell-protocol.c does not exist.
the code a few lines above generates xdg-shell-protocol.c, but that
isn't run until you type "make", so when meson is resolving the
source files they don't exist.
The alternative line you have commented out looks more like what we
would need, but it doesn't work either as its syntax is invalid.
How did you actually compile this series ?
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2021-09-14 16:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-13 22:20 [RFC v2 0/2] ui: Add a Wayland backend for Qemu UI (v2) Vivek Kasireddy
2021-09-13 22:20 ` [RFC v2 1/2] virtio-gpu: Add support for VIRTIO_GPU_F_RELEASE_FENCE Vivek Kasireddy
2021-09-13 22:20 ` [RFC v2 2/2] ui: Add a plain Wayland backend for Qemu UI Vivek Kasireddy
2021-09-14 15:21 ` Eric Blake
2021-09-14 16:15 ` Daniel P. Berrangé [this message]
2021-09-14 23:03 ` Kasireddy, Vivek
2021-09-14 16:29 ` [RFC v2 0/2] ui: Add a Wayland backend for Qemu UI (v2) Daniel P. Berrangé
2021-09-14 23:46 ` 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=YUDKh+83AdvtsV28@redhat.com \
--to=berrange@redhat.com \
--cc=kraxel@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).