Skip to contentSkip to conversation

qtwayland: respect OE_QMAKE_PATH_QT_HEADERS and use QT_VERSION variable

PATCH In review Martin Jansa 2 participants 2 messages Jun 12, 2014 – Jun 13, 2014

lore
Share & tools
lore
#0 lore raw

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

---
 recipes-qt/qt5/qtwayland_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-qt/qt5/qtwayland_git.bb +4 -2
index 239b3ce..28a3760 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Martin Jansa

* 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

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