diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-28 02:24:17 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-28 15:55:05 +0200 |
| commit | a5783e1a09bc8788b527b63ee3e8a8f489bf8ba5 (patch) | |
| tree | 0765c40ed6697522fe87941849982b0963355d40 /classes/qmake5_base.bbclass | |
| parent | b3abb65f6af9e6a48410f53d69444ffb026b39bb (diff) | |
| download | meta-qt5-a5783e1a09bc8788b527b63ee3e8a8f489bf8ba5.tar.gz | |
qtbase: Override all paths and export sysroot
* otherwise sysroot from native build can leak to target build
* missing paths like Qml2Imports were defaulting to devault /usr/qml
* synchronize values between qt.conf and configure params
Diffstat (limited to 'classes/qmake5_base.bbclass')
| -rw-r--r-- | classes/qmake5_base.bbclass | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass index 604397b1..fa6f3166 100644 --- a/classes/qmake5_base.bbclass +++ b/classes/qmake5_base.bbclass | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | # This is useful for target recipes to reference native mkspecs | 1 | # This is useful for target recipes to reference native mkspecs |
| 2 | QMAKE_MKSPEC_PATH_NATIVE = "${STAGING_LIBDIR_NATIVE}" | 2 | QMAKE_MKSPEC_PATH_NATIVE = "${STAGING_LIBDIR_NATIVE}/${QT_DIR_NAME}" |
| 3 | QMAKE_MKSPEC_PATH_TARGET = "${STAGING_LIBDIR}/${QT_DIR_NAME}" | ||
| 3 | 4 | ||
| 4 | QMAKE_MKSPEC_PATH = "${STAGING_LIBDIR}" | 5 | QMAKE_MKSPEC_PATH = "${QMAKE_MKSPEC_PATH_TARGET}" |
| 5 | QMAKE_MKSPEC_PATH_class-native = "${QMAKE_MKSPEC_PATH_NATIVE}" | 6 | QMAKE_MKSPEC_PATH_class-native = "${QMAKE_MKSPEC_PATH_NATIVE}" |
| 6 | 7 | ||
| 7 | # hardcode linux, because that's what 0001-Add-linux-oe-g-platform.patch adds | 8 | # hardcode linux, because that's what 0001-Add-linux-oe-g-platform.patch adds |
| @@ -46,13 +47,20 @@ Libraries = ${libdir} | |||
| 46 | Headers = ${includedir}/${QT_DIR_NAME} | 47 | Headers = ${includedir}/${QT_DIR_NAME} |
| 47 | Data = ${datadir}/${QT_DIR_NAME} | 48 | Data = ${datadir}/${QT_DIR_NAME} |
| 48 | ArchData = ${libdir}/${QT_DIR_NAME} | 49 | ArchData = ${libdir}/${QT_DIR_NAME} |
| 50 | LibraryExecutables = ${libdir}/${QT_DIR_NAME}/libexec | ||
| 51 | Imports = ${libdir}/${QT_DIR_NAME}/imports | ||
| 52 | Qml2Imports = ${libdir}/${QT_DIR_NAME}/qml | ||
| 49 | Plugins = ${libdir}/${QT_DIR_NAME}/plugins | 53 | Plugins = ${libdir}/${QT_DIR_NAME}/plugins |
| 50 | Documentation = ${docdir}/${QT_DIR_NAME} | 54 | Documentation = ${docdir}/${QT_DIR_NAME} |
| 51 | HostData = ${QMAKE_MKSPEC_PATH} | 55 | HostData = ${QMAKE_MKSPEC_PATH_TARGET} |
| 56 | HostBinaries = ${bindir}/${QT_DIR_NAME} | ||
| 57 | HostSpec = ${OE_QMAKESPEC} | ||
| 58 | TartgetSpec = ${OE_XQMAKESPEC} | ||
| 52 | ExternalHostBinaries = ${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME} | 59 | ExternalHostBinaries = ${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME} |
| 60 | Sysroot = ${STAGING_DIR_TARGET} | ||
| 53 | EOF | 61 | EOF |
| 54 | } | 62 | } |
| 55 | 63 | # | |
| 56 | # Allows to override following values (as in version 5.0.1) | 64 | # Allows to override following values (as in version 5.0.1) |
| 57 | # Prefix The default prefix for all paths. | 65 | # Prefix The default prefix for all paths. |
| 58 | # Documentation The location for documentation upon install. | 66 | # Documentation The location for documentation upon install. |
