summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase-native.inc')
-rw-r--r--recipes-qt/qt5/qtbase-native.inc20
1 files changed, 15 insertions, 5 deletions
diff --git a/recipes-qt/qt5/qtbase-native.inc b/recipes-qt/qt5/qtbase-native.inc
index d9cc4870..0f196e4e 100644
--- a/recipes-qt/qt5/qtbase-native.inc
+++ b/recipes-qt/qt5/qtbase-native.inc
@@ -15,6 +15,7 @@ QT_DIR_NAME ?= "qt5"
15SRC_URI += " \ 15SRC_URI += " \
16 file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ 16 file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
17 file://0001-Always-build-uic.patch \ 17 file://0001-Always-build-uic.patch \
18 file://qmake.conf \
18" 19"
19 20
20EXTRA_ENV = 'MAKE="make -e ${PARALLEL_MAKE}"' 21EXTRA_ENV = 'MAKE="make -e ${PARALLEL_MAKE}"'
@@ -56,6 +57,20 @@ EXTRA_OECONF = " \
56 -no-rpath \ 57 -no-rpath \
57" 58"
58 59
60# qtbase is exception, we need to use mkspecs from ${S}
61QMAKE_MKSPEC_PATH_NATIVE = "${S}/mkspecs"
62
63do_configure_prepend() {
64 if [ ! -e ${OE_QMAKESPEC} ]; then
65 mkdir -p ${OE_QMAKESPEC}
66 fi
67 # use default qplatformdefs.h from linux-g++
68 cp -va ${QMAKE_MKSPEC_PATH_NATIVE}/linux-g++/qplatformdefs.h ${OE_QMAKESPEC}/
69 # use modified qmake.conf which is using OE_QMAKE_* shell variables
70 # exported from qmake5_base.bbclass to define toolchain and flags
71 cp -va ${WORKDIR}/qmake.conf ${OE_QMAKESPEC}/
72}
73
59do_configure() { 74do_configure() {
60 # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++) 75 # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++)
61 unset LD 76 unset LD
@@ -65,9 +80,4 @@ do_configure() {
65 80
66do_install() { 81do_install() {
67 oe_runmake install INSTALL_ROOT=${D} 82 oe_runmake install INSTALL_ROOT=${D}
68 ln -sf linux-g++ ${D}${datadir}/${QT_DIR_NAME}/mkspecs/${BUILD_OS}-oe-g++
69
70 # replace common files with our version
71 cp -f ${WORKDIR}/g++.conf ${D}${datadir}/${QT_DIR_NAME}/mkspecs/common/g++-unix.conf
72 cp -f ${WORKDIR}/linux.conf ${D}${datadir}/${QT_DIR_NAME}/mkspecs/common/linux.conf
73} 83}