qmake5_paths.bbclass: Use Qt version path for headers
PATCH v3 1/4 qmake5_paths.bbclass: Use Qt version path for headers
When looking for Qt5 headers we ought to use the Qt5 specific path. In case the distribution wants to have a flat tree it can set QT_DIR_NAME and it will still works as expected.
---
Changes for v3:
- Move headers path inside paths class
classes/qmake5_paths.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
classes/qmake5_paths.bbclass +1 -1
@@ -5,7 +5,7 @@ QT_DIR_NAME ?= "qt5" OE_QMAKE_PATH_PREFIX = "${prefix}" -OE_QMAKE_PATH_HEADERS = "${includedir}" +OE_QMAKE_PATH_HEADERS = "${includedir}/${QT_DIR_NAME}" OE_QMAKE_PATH_LIBS = "${libdir}" OE_QMAKE_PATH_ARCHDATA = "${libdir}" OE_QMAKE_PATH_DATA = "${datadir}"
Signature · 1 line
1.7.10.4
PATCH v3 2/4 mallit-framework-qt5: Don't set OE_QMAKE_PATH_HEADERS
The qmake class now respects the QT_DIR_NAME setting when setting the headers path, so this change is not needed anymore.
--- recipes-qt/maliit/maliit-framework-qt5_git.bb | 6 ------ 1 file changed, 6 deletions(-)
recipes-qt/maliit/maliit-framework-qt5_git.bb +0 -6
@@ -6,12 +6,6 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=5c917f6ce94ceb8d8d5e16e2fca5b9ad" inherit qmake5 -# Set path of qt5 headers as qmake5_base.bbclass sets this to just ${includedir} -# but -# actually it is ${includedir}/qt5 -OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" - - SRC_URI = "git://github.com/maliit/framework.git;branch=master \ file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ file://maliit-server.desktop \
Signature · 1 line
1.7.10.4
PATCH v3 3/4 mallit-plugins-qt5: Don't set OE_QMAKE_PATH_HEADERS
In reply to Otavio SalvadorThe qmake class now respects the QT_DIR_NAME setting when setting the headers path, so this change is not needed anymore.
--- recipes-qt/maliit/maliit-plugins-qt5_git.bb | 5 ----- 1 file changed, 5 deletions(-)
recipes-qt/maliit/maliit-plugins-qt5_git.bb +0 -5
@@ -6,11 +6,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621" inherit qmake5 -# Set path of qt5 headers as qmake5_base.bbclass sets this to just ${includedir} -# but -# actually it is ${includedir}/qt5 -OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" - DEPENDS = "maliit-framework-qt5" RDEPENDS_${PN} += "qtsvg-plugins"
Signature · 1 line
1.7.10.4
PATCH v3 4/4 qsiv: add the qsiv 1.1 example app
In reply to Otavio SalvadorFrom: Giulian Gonçalves Vivan <[email protected]>
This provides a simple image viewer for demonstration purposes.
--- recipes-qt/qsiv/qsiv_1.1.bb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 recipes-qt/qsiv/qsiv_1.1.bb
recipes-qt/qsiv/qsiv_1.1.bb new file +28 -0
@@ -0,0 +1,28 @@ +SUMMARY = "Qt Simple Image Viewer" +DESCRIPTION = "A simple image viewer using a mix of C++ and qml code for demonstration." +LICENSE = "GPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=11c7965a9059e287de5d93b98adf6d1a" +DEPENDS = "qtdeclarative" + +SRCREV = "7b9810b0f02f9ac74fae3ead6e2e9fb5c1382173" +SRC_URI = "git://code.ossystems.com.br/qt/qsiv;protocol=http" + +S = "${WORKDIR}/git" + +inherit qmake5 + +EXTRA_QMAKEVARS_PRE += "target.path=${libdir}/${P}" + +do_install_append() { + install -d ${D}${bindir} + echo "#!/bin/sh" > ${D}${bindir}/qsiv + echo "export QML_IMPORT_PATH=${libdir}/${P}/qml/qsiv" >> ${D}${bindir}/qsiv + echo "export QML2_IMPORT_PATH=${libdir}/${P}/qml/qsiv" >> ${D}${bindir}/qsiv + echo "${libdir}/${P}/qsiv \$* " >> ${D}${bindir}/qsiv + chmod +x ${D}${bindir}/qsiv +} + +FILES_${PN} += "${libdir}/${P}" +RDEPENDS_${PN} += "qtdeclarative-qmlplugins" + +FILES_${PN}-dbg += "${libdir}/${P}/.debug"
Signature · 1 line
1.7.10.4