From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/4] webkitgtk: Ensure that Mesa headers do not include X11 headers on Wayland builds
Date: Fri, 21 Jul 2017 09:09:47 +0200 [thread overview]
Message-ID: <20170721090947.2670fb7c@windsurf> (raw)
In-Reply-To: <20170712235531.20444-5-aperez@igalia.com>
Hello,
On Thu, 13 Jul 2017 02:55:31 +0300, Adrian Perez de Castro wrote:
> diff --git a/package/webkitgtk/webkitgtk.mk b/package/webkitgtk/webkitgtk.mk
> index ef20839f92..09781c2318 100644
> --- a/package/webkitgtk/webkitgtk.mk
> +++ b/package/webkitgtk/webkitgtk.mk
> @@ -84,6 +84,9 @@ endif
> ifeq ($(BR2_PACKAGE_LIBGTK3_WAYLAND),y)
> WEBKITGTK_CONF_OPTS += -DENABLE_WAYLAND_TARGET=ON
> endif
> +WEBKITGTK_CONF_OPTS += \
> + -DCMAKE_C_FLAGS='$(TARGET_CFLAGS) -DMESA_EGL_NO_X11_HEADERS' \
> + -DCMAKE_CXX_FLAGS='$(TARGET_CXXFLAGS) -DMESA_EGL_NO_X11_HEADERS'
I am not happy with this: such CFLAGS should be provided by the OpenGL
provider, through its pkg-config file, and consumers of the OpenGL
implementation should get those flags using pkg-config.
If we don't do this, then we need to add -DMESA_EGL_NO_X11_HEADERS
everywhere in all OpenGL consumers, which isn't nice.
We already have a few OpenGL providers that define these flags in
their .pc file:
package/mali-t76x/egl.pc:Cflags: -I${includedir} -DMESA_EGL_NO_X11_HEADERS
package/mali-t76x/glesv2.pc:Cflags: -I${includedir} -DMESA_EGL_NO_X11_HEADERS
package/nvidia-driver/gl.pc:Cflags: -I${includedir} -DMESA_EGL_NO_X11_HEADERS
package/odroid-mali/odroid-mali.mk: $(SED) "s/Cflags: /Cflags: -DMESA_EGL_NO_X11_HEADERS /" \
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-07-21 7:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 23:55 [Buildroot] [PATCH 0/4] Update patches applied to WebKitGTK+, fix Wayland-only builds Adrian Perez de Castro
2017-07-12 23:55 ` [Buildroot] [PATCH 1/4] webkitgtk: Remove patch uneeded for the current version Adrian Perez de Castro
2017-07-21 7:05 ` Thomas Petazzoni
2017-07-25 22:03 ` Peter Korsgaard
2017-07-12 23:55 ` [Buildroot] [PATCH 2/4] webkitgtk: Add patches which allow building for ARMv8-A Adrian Perez de Castro
2017-07-21 7:06 ` Thomas Petazzoni
2017-07-27 22:12 ` Adrian Perez de Castro
2017-07-29 12:52 ` Adrian Perez de Castro
2017-07-12 23:55 ` [Buildroot] [PATCH 3/4] webkitgtk: Add patch to allow Wayland-only builds Adrian Perez de Castro
2017-07-27 22:07 ` Adrian Perez de Castro
2017-07-12 23:55 ` [Buildroot] [PATCH 4/4] webkitgtk: Ensure that Mesa headers do not include X11 headers on Wayland builds Adrian Perez de Castro
2017-07-21 7:09 ` Thomas Petazzoni [this message]
2017-07-27 16:45 ` Adrian Perez de Castro
2017-07-31 13:21 ` Adrian Perez de Castro
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=20170721090947.2670fb7c@windsurf \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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