All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 02/21] qt5base: add eglfs graphics backend
Date: Tue, 19 Mar 2013 20:29:35 +0100	[thread overview]
Message-ID: <1363721394-14973-3-git-send-email-thomas.petazzoni@free-electrons.com> (raw)
In-Reply-To: <1363721394-14973-1-git-send-email-thomas.petazzoni@free-electrons.com>

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/qt5/qt5base/Config.in                      |   11 ++++++-
 ...nce-add-egl-to-CONFIG-to-get-correct-incl.patch |   32 ++++++++++++++++++++
 package/qt5/qt5base/qt5base.mk                     |    9 ++++--
 3 files changed, 49 insertions(+), 3 deletions(-)
 create mode 100644 package/qt5/qt5base/qt5base-eglconvenience-add-egl-to-CONFIG-to-get-correct-incl.patch

diff --git a/package/qt5/qt5base/Config.in b/package/qt5/qt5base/Config.in
index 801ef6f..0af5df6 100644
--- a/package/qt5/qt5base/Config.in
+++ b/package/qt5/qt5base/Config.in
@@ -59,7 +59,8 @@ config BR2_PACKAGE_QT5BASE_GUI
 	# linuxfb if nothing is enabled.
 	select BR2_PACKAGE_QT5BASE_LINUXFB if \
 	       !BR2_PACKAGE_QT5BASE_DIRECTFB && \
-	       !BR2_PACKAGE_QT5BASE_XCB
+	       !BR2_PACKAGE_QT5BASE_XCB && \
+	       !BR2_PACKAGE_QT5BASE_EGLFS
 	help
 	  This option enables the Qt5Gui library.
 
@@ -89,6 +90,14 @@ config BR2_PACKAGE_QT5BASE_XCB
 comment "X.org XCB backend available if X.org is enabled"
 	depends on !BR2_PACKAGE_XORG7
 
+config BR2_PACKAGE_QT5BASE_EGLFS
+	bool "eglfs support"
+	depends on BR2_PACKAGE_HAS_OPENGL_EGL
+	depends on BR2_PACKAGE_HAS_OPENGL_ES
+
+comment "eglfs backend available if OpenGLES and EGL are enabled"
+	depends on !BR2_PACKAGE_HAS_OPENGL_EGL || !BR2_PACKAGE_HAS_OPENGL_ES
+
 config BR2_PACKAGE_QT5BASE_PRINTSUPPORT
 	bool "print support module"
 	select BR2_PACKAGE_QT5BASE_WIDGETS
diff --git a/package/qt5/qt5base/qt5base-eglconvenience-add-egl-to-CONFIG-to-get-correct-incl.patch b/package/qt5/qt5base/qt5base-eglconvenience-add-egl-to-CONFIG-to-get-correct-incl.patch
new file mode 100644
index 0000000..a85a5aa
--- /dev/null
+++ b/package/qt5/qt5base/qt5base-eglconvenience-add-egl-to-CONFIG-to-get-correct-incl.patch
@@ -0,0 +1,32 @@
+From 588c60d0c3d11e79d19860fa62b03c935658d13a Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sun, 13 Jan 2013 14:36:48 +0100
+Subject: [PATCH qtbase] eglconvenience: add egl to CONFIG to get correct include
+ paths
+
+The eglconvenience code includes <EGL/egl.h>. Therefore, it should get
+the appropriate EGL-specific include paths from QMAKE_INCDIR_EGL,
+otherwise the build might if the EGL library has its headers in
+special locations. In order to achieve this, we simply add the "egl"
+feature to the list of features imported by eglconvenience.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ .../eglconvenience/eglconvenience.pri              |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/platformsupport/eglconvenience/eglconvenience.pri b/src/platformsupport/eglconvenience/eglconvenience.pri
+index 188eb1c..8996cea 100644
+--- a/src/platformsupport/eglconvenience/eglconvenience.pri
++++ b/src/platformsupport/eglconvenience/eglconvenience.pri
+@@ -5,6 +5,7 @@ contains(QT_CONFIG,egl) {
+     SOURCES += \
+         $$PWD/qeglconvenience.cpp \
+         $$PWD/qeglplatformcontext.cpp
++    CONFIG += egl
+ 
+     contains(QT_CONFIG,xlib) {
+         HEADERS += \
+-- 
+1.7.9.5
+
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index 736965d..700bc67 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -20,9 +20,7 @@ QT5BASE_INSTALL_STAGING = YES
 #    want to use the one packaged in Buildroot
 QT5BASE_CONFIGURE_OPTS += \
 	-optimized-qmake \
-	-no-eglfs \
 	-no-kms \
-	-no-opengl \
 	-no-glib \
 	-no-cups \
 	-no-nis \
@@ -81,6 +79,13 @@ else
 QT5BASE_CONFIGURE_OPTS += -no-xcb
 endif
 
+ifeq ($(BR2_PACKAGE_QT5BASE_EGLFS),y)
+QT5BASE_CONFIGURE_OPTS += -opengl es2 -eglfs
+QT5BASE_DEPENDENCIES   += libgles libegl
+else
+QT5BASE_CONFIGURE_OPTS += -no-opengl -no-eglfs
+endif
+
 QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_OPENSSL),-openssl,-no-openssl)
 QT5BASE_DEPENDENCIES   += $(if $(BR2_PACKAGE_OPENSSL),openssl)
 
-- 
1.7.9.5

  parent reply	other threads:[~2013-03-19 19:29 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 19:29 [Buildroot] [PATCH v4] More Qt5 stuff Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 01/21] qt5base: add OpenSSL support Thomas Petazzoni
2013-03-19 21:07   ` Peter Korsgaard
2013-03-19 19:29 ` Thomas Petazzoni [this message]
2013-03-19 21:08   ` [Buildroot] [PATCH v4 02/21] qt5base: add eglfs graphics backend Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 03/21] qt5base: add support for fontconfig, png, jpeg, gif Thomas Petazzoni
2013-03-19 21:10   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 04/21] qt5base: add D-Bus support Thomas Petazzoni
2013-03-19 21:11   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 05/21] qt5base: add glib support Thomas Petazzoni
2013-03-19 21:14   ` Peter Korsgaard
2013-03-20  8:35     ` Thomas Petazzoni
2013-03-27 17:19       ` Arnout Vandecappelle
2013-03-19 19:29 ` [Buildroot] [PATCH v4 06/21] qt5base: add support to build against ICU Thomas Petazzoni
2013-03-19 21:40   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 07/21] qt5base: add rPi EGL glue code Thomas Petazzoni
2013-03-19 21:41   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 08/21] qt5base: install bundled fonts to target Thomas Petazzoni
2013-03-19 21:43   ` Peter Korsgaard
2013-03-19 22:07     ` Floris Bos
2013-03-19 19:29 ` [Buildroot] [PATCH v4 09/21] qt5: factor Qt5 version Thomas Petazzoni
2013-03-24 13:43   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 10/21] qt5/qt5svg: new package Thomas Petazzoni
2013-03-24 13:46   ` Peter Korsgaard
2013-03-27 17:26     ` Arnout Vandecappelle
2013-03-19 19:29 ` [Buildroot] [PATCH v4 11/21] qt5/qt5script: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 12/21] qt5/qt5imageformats: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 13/21] qt5/qt5xmlpatterns: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 14/21] qt5/qt5jsbackend: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 15/21] qt5/qt5declarative: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 16/21] qt5/qt5graphicaleffects: " Thomas Petazzoni
2013-03-24 18:52   ` Samuel Martin
2013-03-19 19:29 ` [Buildroot] [PATCH v4 17/21] qt5/qt5multimedia: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 18/21] qt5/qt5quick1: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 19/21] qt5/qt5webkit: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 20/21] qt5webkit: add EGL dir to includepath Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 21/21] qt5: disallow the selection of Qt4 and Qt5 Thomas Petazzoni
2013-03-27 17:27   ` Arnout Vandecappelle

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=1363721394-14973-3-git-send-email-thomas.petazzoni@free-electrons.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.