* [meta-qt5][PATCH 0/1] Enable nativesdk-qtbase to keep additional libraries
@ 2014-10-16 9:07 Anders Darander
2014-10-16 9:07 ` [meta-qt5][PATCH 1/1] nativesdk-qtbase: make it possible " Anders Darander
0 siblings, 1 reply; 3+ messages in thread
From: Anders Darander @ 2014-10-16 9:07 UTC (permalink / raw)
To: openembedded-devel; +Cc: Anders Darander
We have a usecase where we need to run a tool to transform a protocol spec. to cpp (kdwsdl2cpp). That tool is built using Qt5, and requires a couple of extra Qt-libraries, among the libQt5Xml.so.*. Today the nativesdk-qtbase recipe just unconditionally removes every library, except for a couple hardcoded ones.
This patch add an extra variable, in which you can specify additional libraries to keep.
The following changes since commit 478fe949a957471a4d20450f6e9375fe1d628591:
qtbase: don't stage the fonts directory (2014-10-08 17:52:08 +0200)
are available in the git repository at:
git://github.com/darander/meta-qt5 nativesdk-qtbase
https://github.com/darander/meta-qt5/tree/nativesdk-qtbase
Anders Darander (1):
nativesdk-qtbase: make it possible to keep additional libraries
recipes-qt/qt5/nativesdk-qtbase.inc | 11 +++++++++++
1 file changed, 11 insertions(+)
--
1.8.4.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [meta-qt5][PATCH 1/1] nativesdk-qtbase: make it possible to keep additional libraries
2014-10-16 9:07 [meta-qt5][PATCH 0/1] Enable nativesdk-qtbase to keep additional libraries Anders Darander
@ 2014-10-16 9:07 ` Anders Darander
2014-10-16 18:29 ` Otavio Salvador
0 siblings, 1 reply; 3+ messages in thread
From: Anders Darander @ 2014-10-16 9:07 UTC (permalink / raw)
To: openembedded-devel; +Cc: Anders Darander
In some usecases for the nativesdk, you might need some build tools that are built upon Qt5. This means
that we're having a need to keep more of the libraries build by nativsdk-qtbase. This patch adds the
infrastructure to support that
Signed-off-by: Anders Darander <anders@chargestorm.se>
---
recipes-qt/qt5/nativesdk-qtbase.inc | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
index faecc64..ed98c80 100644
--- a/recipes-qt/qt5/nativesdk-qtbase.inc
+++ b/recipes-qt/qt5/nativesdk-qtbase.inc
@@ -193,6 +193,16 @@ do_configure() {
bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}"
}
+# Set the EXTRA_QTLIB variable to e.g. Xml, in order to net remove libQt5Xml.so.*
+EXTRA_QTLIB ?= ""
+
+python __anonymous () {
+ templibs = ""
+ for e in d.getVar("EXTRA_QTLIB", True).split():
+ templibs = "%s -not -name 'libQt5%s.so*' -and" % (templibs, e)
+ d.setVar("QTLIBSPRESERVE", templibs)
+}
+
do_install() {
# Fix install paths for all
find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
@@ -215,6 +225,7 @@ do_install() {
${D}${libdir}/pkgconfig
find ${D}${libdir} -maxdepth 1 -name 'lib*' -and \
-not -name 'libQt5Core.so*' -and \
+ ${QTLIBSPRESERVE} \
-not -name 'libQt5Bootstrap.a' \
-exec rm '{}' ';'
}
--
1.8.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [meta-qt5][PATCH 1/1] nativesdk-qtbase: make it possible to keep additional libraries
2014-10-16 9:07 ` [meta-qt5][PATCH 1/1] nativesdk-qtbase: make it possible " Anders Darander
@ 2014-10-16 18:29 ` Otavio Salvador
0 siblings, 0 replies; 3+ messages in thread
From: Otavio Salvador @ 2014-10-16 18:29 UTC (permalink / raw)
To: OpenEmbedded Devel List; +Cc: Anders Darander
On Thu, Oct 16, 2014 at 6:07 AM, Anders Darander <anders@chargestorm.se> wrote:
> In some usecases for the nativesdk, you might need some build tools that are built upon Qt5. This means
> that we're having a need to keep more of the libraries build by nativsdk-qtbase. This patch adds the
> infrastructure to support that
>
> Signed-off-by: Anders Darander <anders@chargestorm.se>
> ---
> recipes-qt/qt5/nativesdk-qtbase.inc | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
> index faecc64..ed98c80 100644
> --- a/recipes-qt/qt5/nativesdk-qtbase.inc
> +++ b/recipes-qt/qt5/nativesdk-qtbase.inc
> @@ -193,6 +193,16 @@ do_configure() {
> bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}"
> }
>
> +# Set the EXTRA_QTLIB variable to e.g. Xml, in order to net remove libQt5Xml.so.*
... onder to *not* remove ...
> +EXTRA_QTLIB ?= ""
> +
> +python __anonymous () {
> + templibs = ""
> + for e in d.getVar("EXTRA_QTLIB", True).split():
> + templibs = "%s -not -name 'libQt5%s.so*' -and" % (templibs, e)
> + d.setVar("QTLIBSPRESERVE", templibs)
> +}
> +
> do_install() {
> # Fix install paths for all
> find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
> @@ -215,6 +225,7 @@ do_install() {
> ${D}${libdir}/pkgconfig
> find ${D}${libdir} -maxdepth 1 -name 'lib*' -and \
> -not -name 'libQt5Core.so*' -and \
> + ${QTLIBSPRESERVE} \
> -not -name 'libQt5Bootstrap.a' \
> -exec rm '{}' ';'
> }
> --
> 1.8.4.5
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-16 18:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 9:07 [meta-qt5][PATCH 0/1] Enable nativesdk-qtbase to keep additional libraries Anders Darander
2014-10-16 9:07 ` [meta-qt5][PATCH 1/1] nativesdk-qtbase: make it possible " Anders Darander
2014-10-16 18:29 ` Otavio Salvador
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.