[Buildroot] [PATCH 2/2] qt5base: add an option to build and install examples
Ezequiel García
ezequiel at vanguardiasur.com.ar
Mon Oct 14 14:11:14 UTC 2013
On 5 October 2013 18:16, Fatih Aşıcı <fatih.asici at gmail.com> wrote:
> Adds two patches to fix building of examples when configured with one of
> these options:
>
> * -no-opengl (patch fetched from upstream)
> * -no-gui (patch sent to upstream)
>
> Signed-off-by: Fatih Aşıcı <fatih.asici at gmail.com>
> ---
> package/qt5/qt5base/Config.in | 7 +++
> ...e-build-failure-in-windowcontainer-exampl.patch | 28 ++++++++++
> ...les-Fix-build-when-configured-with-no-gui.patch | 62 ++++++++++++++++++++++
> package/qt5/qt5base/qt5base.mk | 18 ++++++-
> 4 files changed, 114 insertions(+), 1 deletion(-)
> create mode 100644 package/qt5/qt5base/qt5base-0006-Fix-possible-build-failure-in-windowcontainer-exampl.patch
> create mode 100644 package/qt5/qt5base/qt5base-0007-examples-Fix-build-when-configured-with-no-gui.patch
>
[...]
> diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
> index 0106c2c..ebf51c4 100644
> --- a/package/qt5/qt5base/qt5base.mk
> +++ b/package/qt5/qt5base/qt5base.mk
> @@ -60,6 +60,12 @@ QT5BASE_LICENSE = Commercial license
> QT5BASE_REDISTRIBUTE = NO
> endif
>
> +ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
> +QT5BASE_CONFIGURE_OPTS += -make examples -compile-examples
> +else
> +QT5BASE_CONFIGURE_OPTS += -nomake examples
> +endif
> +
Any reason why this is not with the rest of the options
and using the simpler:
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_EXAMPLES), \
-make examples -compile-examples, \
-nomake examples)
?
Regards,
--
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar
More information about the buildroot
mailing list