qtwayland: respect OE_QMAKE_PATH_QT_HEADERS and use QT_VERSION variable
PATCH 1/1 qtwayland: respect OE_QMAKE_PATH_QT_HEADERS and use QT_VERSION variable
* QT_VERSION allows to use 5.3.1 e.g. when overriding SRCREV
* ${includedir}/${QT_DIR_NAME} is the default value of OE_QMAKE_PATH_QT_HEADERS, but when it's changed by user we should respect it here
Signed-off-by Martin Jansa <[email protected]>
--- recipes-qt/qt5/qtwayland_git.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-qt/qt5/qtwayland_git.bb +4 -2
@@ -10,8 +10,10 @@ SRC_URI += " \ file://0001-examples.pro-include-server-buffer-only-when-buildin.patch \ " +QT_VERSION ?= "5.3.0" + do_install_append() { # do install files created by qtwaylandscanner - install ${B}/include/QtCompositor/5.3.0/QtCompositor/private/qwayland-server-*.h ${D}${includedir}/${QT_DIR_NAME}/QtCompositor/5.3.0/QtCompositor/private - install ${B}/include/QtCompositor/5.3.0/QtCompositor/private/*protocol*.h ${D}${includedir}/${QT_DIR_NAME}/QtCompositor/5.3.0/QtCompositor/private + install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/qwayland-server-*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private + install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/*protocol*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private }
Signature · 1 line
2.0.0
Quoted 5 lines · Martin Jansa
*
QT_VERSIONallows to use 5.3.1 e.g. when overriding SRCREV
* ${includedir}/${QT_DIR_NAME} is the default value ofOE_QMAKE_PATH_QT_HEADERS, but when it's changed by user we should respect it hereSigned-off-by Martin Jansa <[email protected]>
Acked-by Otavio Salvador <[email protected]>
Signature · 3 lines
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