From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/qwt : added support for Qt5.
Date: Sun, 20 Mar 2016 23:17:19 +0100 [thread overview]
Message-ID: <20160320231719.0d7b2af2@free-electrons.com> (raw)
In-Reply-To: <1458149825-23401-2-git-send-email-davepiq@yahoo.fr>
Hello,
On Wed, 16 Mar 2016 18:37:05 +0100, David Picard wrote:
> diff --git a/package/qwt/Config.in b/package/qwt/Config.in
> index e72db31..9dca8ed 100644
> --- a/package/qwt/Config.in
> +++ b/package/qwt/Config.in
> @@ -1,7 +1,9 @@
> config BR2_PACKAGE_QWT
> bool "qwt"
> - depends on BR2_PACKAGE_QT
> + depends on BR2_PACKAGE_QT || BR2_PACKAGE_QT5
> select BR2_PACKAGE_QT_GUI_MODULE if BR2_PACKAGE_QT
> + select BR2_PACKAGE_QT5BASE_GUI if BR2_PACKAGE_QT5
> + select BR2_PACKAGE_QT5BASE_CONCURRENT if BR2_PACKAGE_QT5
OK.
> help
> Qwt is a graphics extension to the Qt GUI application
> framework. It provides a 2D plotting widget and more.
> @@ -13,6 +15,7 @@ if BR2_PACKAGE_QWT
> config BR2_PACKAGE_QWT_SVG
> bool "SVG support"
> select BR2_PACKAGE_QT_SVG if BR2_PACKAGE_QT
> + select BR2_PACKAGE_QT5SVG if BR2_PACKAGE_QT5
OK.
>
> config BR2_PACKAGE_QWT_MATHML
> bool "MathML support"
> @@ -20,10 +23,11 @@ config BR2_PACKAGE_QWT_MATHML
> config BR2_PACKAGE_QWT_OPENGL
> bool "OpenGL support"
> select BR2_PACKAGE_QT_OPENGL_ES if \
> - BR2_PACKAGE_QT && BR2_PACKAGE_HAS_LIBGLES && BR2_PACKAGE_HAS_LIBEGL
> + BR2_PACKAGE_QT && BR2_PACKAGE_HAS_LIBGLES && BR2_PACKAGE_HAS_LIBEGL
> + select BR2_PACKAGE_QT5BASE_OPENGL_LIB if \
> + BR2_PACKAGE_QT5BASE && BR2_PACKAGE_QT5_GL_AVAILABLE
As said for the previous commit, this is also not good. At the end, you
should have:
depends on (BR2_PACKAGE_HAS_LIBGLES && BR2_PACKAGE_HAS_LIBEGL) || \
BR2_PACKAGE_QT5_GL_AVAILABLE
select BR2_PACKAGE_QT_OPENGL_ES if BR2_PACKAGE_QT
select BR2_PACKAGE_QT5BASE_OPENGL_LIB if BR2_PACKAGE_QT5
> -comment "qwt depends on QT gui module"
> - depends on BR2_PACKAGE_QT
> - depends on !BR2_PACKAGE_QT_GUI_MODULE
This comment should have been removed as part of the previous commit,
since in the previous commit, you changed the "depends on
BR2_PACKAGE_QT_GUI_MODULE" into a "select".
> +comment "qwt needs Qt or Qt5"
> + depends on !BR2_PACKAGE_QT && !BR2_PACKAGE_QT5
To be honest, I am not sure such a comment is needed. I believe it is
completely obvious for the user that a library like Qwt needs Qt.
> diff --git a/package/qwt/qwt.mk b/package/qwt/qwt.mk
> index afd0ffb..8fbde32 100644
> --- a/package/qwt/qwt.mk
> +++ b/package/qwt/qwt.mk
> @@ -11,6 +11,9 @@ QWT_INSTALL_STAGING = YES
> ifeq ($(BR2_PACKAGE_QT),y)
> QWT_DEPENDENCIES = qt libgles libegl
> endif
> +ifeq ($(BR2_PACKAGE_QT5BASE),y)
> +QWT_DEPENDENCIES += qt5base libgles
> +endif
In fact, now that I think of it, my suggestion in the previous patch to
add a dependency on libgles and libegl is wrong. This is not needed,
since qt/qt5 will already depend on them.
So, you should just have:
ifeq ($(BR2_PACKAGE_QT),y)
QWT_DEPENDENCIES += qt
QWT_QMAKE = $(QT_MAKE)
else ifeq ($(BR2_PACKAGE_QT5),y)
QWT_DEPENDENCIES += qt5
QWT_QMAKE = $(QT5_QMAKE)
endif
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-03-20 22:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-16 17:37 [Buildroot] [PATCH 1/2] package/qwt : prepared package for other versions of Qt David Picard
2016-03-16 17:37 ` [Buildroot] [PATCH 2/2] package/qwt : added support for Qt5 David Picard
2016-03-20 22:17 ` Thomas Petazzoni [this message]
2016-03-20 22:13 ` [Buildroot] [PATCH 1/2] package/qwt : prepared package for other versions of Qt Thomas Petazzoni
2016-03-20 22:18 ` Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2016-03-24 13:36 David Picard
2016-03-24 13:36 ` [Buildroot] [PATCH 2/2] package/qwt : added support for Qt5 David Picard
2016-03-24 20:19 [Buildroot] [PATCH 1/2] package/qwt : prepared package for other versions of Qt David Picard
2016-03-24 20:19 ` [Buildroot] [PATCH 2/2] package/qwt : added support for Qt5 David Picard
2016-03-25 9:51 ` Thomas Petazzoni
2016-03-25 11:08 ` David Picard
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=20160320231719.0d7b2af2@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.