summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
index 09f3d9af..832fda94 100644
--- a/recipes-qt/qt5/nativesdk-qtbase.inc
+++ b/recipes-qt/qt5/nativesdk-qtbase.inc
@@ -194,6 +194,16 @@ do_configure() {
194 bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}" 194 bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}"
195} 195}
196 196
197# Set the EXTRA_QTLIB variable to e.g. Xml, in order to not remove libQt5Xml.so.*
198EXTRA_QTLIB ?= ""
199
200python __anonymous () {
201 templibs = ""
202 for e in d.getVar("EXTRA_QTLIB", True).split():
203 templibs = "%s -not -name 'libQt5%s.so*' -and" % (templibs, e)
204 d.setVar("QTLIBSPRESERVE", templibs)
205}
206
197do_install() { 207do_install() {
198 # Fix install paths for all 208 # Fix install paths for all
199 find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" 209 find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
@@ -216,6 +226,7 @@ do_install() {
216 ${D}${libdir}/pkgconfig 226 ${D}${libdir}/pkgconfig
217 find ${D}${libdir} -maxdepth 1 -name 'lib*' -and \ 227 find ${D}${libdir} -maxdepth 1 -name 'lib*' -and \
218 -not -name 'libQt5Core.so*' -and \ 228 -not -name 'libQt5Core.so*' -and \
229 ${QTLIBSPRESERVE} \
219 -not -name 'libQt5Bootstrap.a' \ 230 -not -name 'libQt5Bootstrap.a' \
220 -exec rm '{}' ';' 231 -exec rm '{}' ';'
221} 232}