diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase_git.bb')
| -rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 1de2aede..b254d8a5 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -13,8 +13,7 @@ LIC_FILES_CHKSUM = " \ | |||
| 13 | # common for qtbase-native, qtbase-nativesdk and qtbase | 13 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 14 | SRC_URI += "\ | 14 | SRC_URI += "\ |
| 15 | file://0001-Add-linux-oe-g-platform.patch \ | 15 | file://0001-Add-linux-oe-g-platform.patch \ |
| 16 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | 16 | file://0002-configure-Separate-host-and-build-platform.patch \ |
| 17 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 18 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | 17 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ |
| 19 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 18 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 20 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 19 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ |
| @@ -135,20 +134,19 @@ QT_CONFIG_FLAGS += " \ | |||
| 135 | ${EXTRA_CONF_PACKAGECONFIG} \ | 134 | ${EXTRA_CONF_PACKAGECONFIG} \ |
| 136 | " | 135 | " |
| 137 | 136 | ||
| 138 | do_generate_qt_config_file_append() { | 137 | OE_QMAKE_PATH_HOST_BINS = "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}" |
| 139 | cat >> ${QT_CONF_PATH} <<EOF | ||
| 140 | 138 | ||
| 139 | generate_qt_config_file_effective_paths() { | ||
| 140 | cat >> ${OE_QMAKE_QTCONF_PATH} <<EOF | ||
| 141 | [EffectivePaths] | 141 | [EffectivePaths] |
| 142 | Prefix=.. | 142 | Prefix=${B} |
| 143 | EOF | 143 | EOF |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | OE_QMAKE_PATH_HOST_DATA = "${STAGING_LIBDIR}${QT_DIR_NAME}" | ||
| 146 | # qtbase is exception, we need to use mkspecs from ${S} | 147 | # qtbase is exception, we need to use mkspecs from ${S} |
| 147 | QMAKE_MKSPEC_PATH = "${B}" | 148 | QMAKE_MKSPEC_PATH_TARGET = "${B}" |
| 148 | 149 | QMAKE_MKSPEC_PATH = "${S}" | |
| 149 | # another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location | ||
| 150 | OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/qmake" | ||
| 151 | OE_QMAKE_QMAKE = "bin/qmake" | ||
| 152 | 150 | ||
| 153 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell | 151 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell |
| 154 | export OE_QMAKE_COMPILER | 152 | export OE_QMAKE_COMPILER |
| @@ -162,17 +160,9 @@ export OE_QMAKE_AR | |||
| 162 | export OE_QMAKE_STRIP | 160 | export OE_QMAKE_STRIP |
| 163 | 161 | ||
| 164 | do_configure() { | 162 | do_configure() { |
| 165 | # we need symlink in path relative to source, because | ||
| 166 | # EffectivePaths:Prefix is relative to qmake location | ||
| 167 | if [ ! -e ${B}/bin/qmake ]; then | ||
| 168 | mkdir -p ${B}/bin | ||
| 169 | ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake | ||
| 170 | fi | ||
| 171 | |||
| 172 | ${S}/configure -v \ | 163 | ${S}/configure -v \ |
| 173 | -opensource -confirm-license \ | 164 | -opensource -confirm-license \ |
| 174 | -sysroot ${STAGING_DIR_TARGET} \ | 165 | -sysroot ${STAGING_DIR_TARGET} \ |
| 175 | -no-gcc-sysroot \ | ||
| 176 | -prefix ${OE_QMAKE_PATH_PREFIX} \ | 166 | -prefix ${OE_QMAKE_PATH_PREFIX} \ |
| 177 | -bindir ${OE_QMAKE_PATH_BINS} \ | 167 | -bindir ${OE_QMAKE_PATH_BINS} \ |
| 178 | -libdir ${OE_QMAKE_PATH_LIBS} \ | 168 | -libdir ${OE_QMAKE_PATH_LIBS} \ |
| @@ -191,7 +181,7 @@ do_configure() { | |||
| 191 | -hostbindir ${OE_QMAKE_PATH_HOST_BINS} \ | 181 | -hostbindir ${OE_QMAKE_PATH_HOST_BINS} \ |
| 192 | -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \ | 182 | -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \ |
| 193 | -hostdatadir ${OE_QMAKE_PATH_HOST_DATA} \ | 183 | -hostdatadir ${OE_QMAKE_PATH_HOST_DATA} \ |
| 194 | -platform ${OE_QMAKESPEC} \ | 184 | -platform ${OE_QMAKE_PLATFORM_NATIVE} \ |
| 195 | -xplatform linux-oe-g++ \ | 185 | -xplatform linux-oe-g++ \ |
| 196 | ${QT_CONFIG_FLAGS} | 186 | ${QT_CONFIG_FLAGS} |
| 197 | 187 | ||
| @@ -199,7 +189,6 @@ do_configure() { | |||
| 199 | } | 189 | } |
| 200 | 190 | ||
| 201 | do_install_append() { | 191 | do_install_append() { |
| 202 | install -m 0755 ${B}/bin/qmake-target ${D}/${bindir}${QT_DIR_NAME}/qmake | ||
| 203 | 192 | ||
| 204 | # Remove example.pro file as it is useless | 193 | # Remove example.pro file as it is useless |
| 205 | rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro | 194 | rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro |
| @@ -211,7 +200,7 @@ do_install_append() { | |||
| 211 | sed -i 's@^#!/bin/bash$@#!/bin/sh@g' ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/features/data/mac/objc_namespace.sh | 200 | sed -i 's@^#!/bin/bash$@#!/bin/sh@g' ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/features/data/mac/objc_namespace.sh |
| 212 | 201 | ||
| 213 | # Replace host paths with qmake built-in properties | 202 | # Replace host paths with qmake built-in properties |
| 214 | sed -i -e 's|${STAGING_DIR_NATIVE}${prefix_native}|$$[QT_HOST_PREFIX]|g' \ | 203 | sed -i -e 's|${STAGING_DIR_NATIVE}${prefix_native}|$$[QT_HOST_PREFIX/get]|g' \ |
| 215 | -e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' \ | 204 | -e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' \ |
| 216 | ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/*.pri | 205 | ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/*.pri |
| 217 | } | 206 | } |
