summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/qmake5.bbclass2
-rw-r--r--classes/qmake5_base.bbclass3
-rw-r--r--recipes-qt/qt5/qt5-native.inc1
-rw-r--r--recipes-qt/qt5/qt5.inc27
-rw-r--r--recipes-qt/qt5/qtbase/0001-Always-build-uic.patch (renamed from recipes-qt/qt5/files/0001-Always-build-uic.patch)0
-rw-r--r--recipes-qt/qt5/qtbase/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch31
6 files changed, 49 insertions, 15 deletions
diff --git a/classes/qmake5.bbclass b/classes/qmake5.bbclass
index b30b1507..180cedcf 100644
--- a/classes/qmake5.bbclass
+++ b/classes/qmake5.bbclass
@@ -6,7 +6,7 @@ inherit qmake5_base
6QT5TOOLSDEPENDS ?= "qt5-native " 6QT5TOOLSDEPENDS ?= "qt5-native "
7DEPENDS_prepend = "${QT5TOOLSDEPENDS}" 7DEPENDS_prepend = "${QT5TOOLSDEPENDS}"
8 8
9export QMAKESPEC = "${STAGING_DATADIR_NATIVE}/qt5/mkspecs/${TARGET_OS}-oe-g++" 9export QMAKESPEC = "${STAGING_DATADIR}/qt5/mkspecs/${TARGET_OS}-oe-g++"
10export OE_QMAKE_UIC = "${STAGING_BINDIR_NATIVE}/uic" 10export OE_QMAKE_UIC = "${STAGING_BINDIR_NATIVE}/uic"
11export OE_QMAKE_MOC = "${STAGING_BINDIR_NATIVE}/moc" 11export OE_QMAKE_MOC = "${STAGING_BINDIR_NATIVE}/moc"
12export OE_QMAKE_RCC = "${STAGING_BINDIR_NATIVE}/rcc" 12export OE_QMAKE_RCC = "${STAGING_BINDIR_NATIVE}/rcc"
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass
index 5601bb94..7012d0d7 100644
--- a/classes/qmake5_base.bbclass
+++ b/classes/qmake5_base.bbclass
@@ -22,8 +22,7 @@ Binaries = ${STAGING_BINDIR_NATIVE}
22Headers = ${STAGING_INCDIR}/qt5 22Headers = ${STAGING_INCDIR}/qt5
23Plugins = ${STAGING_LIBDIR}/qt5/plugins/ 23Plugins = ${STAGING_LIBDIR}/qt5/plugins/
24Libraries = ${STAGING_LIBDIR} 24Libraries = ${STAGING_LIBDIR}
25Mkspecs = ${STAGING_DATADIR}/qt5/mkspecs/ 25HostData = ${STAGING_DATADIR}/qt5
26HostData = ${STAGING_DATADIR_NATIVE}/qt5
27HostBinaries = ${STAGING_BINDIR_NATIVE}/ 26HostBinaries = ${STAGING_BINDIR_NATIVE}/
28EOF 27EOF
29} 28}
diff --git a/recipes-qt/qt5/qt5-native.inc b/recipes-qt/qt5/qt5-native.inc
index 040b6439..11cfcff0 100644
--- a/recipes-qt/qt5/qt5-native.inc
+++ b/recipes-qt/qt5/qt5-native.inc
@@ -14,6 +14,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
14 14
15SRC_URI += " \ 15SRC_URI += " \
16 file://0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch \ 16 file://0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch \
17 file://0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch \
17 file://0001-Always-build-uic.patch \ 18 file://0001-Always-build-uic.patch \
18" 19"
19 20
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc
index 9f29792c..af933dea 100644
--- a/recipes-qt/qt5/qt5.inc
+++ b/recipes-qt/qt5/qt5.inc
@@ -84,6 +84,9 @@ do_configure() {
84 cp -f ${WORKDIR}/qplatformdefs.h mkspecs/${TARGET_OS}-oe-g++ 84 cp -f ${WORKDIR}/qplatformdefs.h mkspecs/${TARGET_OS}-oe-g++
85 bash ${WORKDIR}/qmake.conf.sh > mkspecs/${TARGET_OS}-oe-g++/qmake.conf 85 bash ${WORKDIR}/qmake.conf.sh > mkspecs/${TARGET_OS}-oe-g++/qmake.conf
86 86
87 mkdir -p ${STAGING_DATADIR}/${QT_DIR_NAME}
88 cp -r ${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}/mkspecs ${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs
89
87 echo "[Paths]" > $QT_CONF_PATH 90 echo "[Paths]" > $QT_CONF_PATH
88 echo "Binaries=${bindir}" >> $QT_CONF_PATH 91 echo "Binaries=${bindir}" >> $QT_CONF_PATH
89 echo "Headers=${includedir}/${QT_DIR_NAME}" >> $QT_CONF_PATH 92 echo "Headers=${includedir}/${QT_DIR_NAME}" >> $QT_CONF_PATH
@@ -95,7 +98,7 @@ do_configure() {
95 echo "Settings=${sysconfdir}/${QT_DIR_NAME}" >> $QT_CONF_PATH 98 echo "Settings=${sysconfdir}/${QT_DIR_NAME}" >> $QT_CONF_PATH
96 echo "Examples=${bindir}/${QT_DIR_NAME}/examples" >> $QT_CONF_PATH 99 echo "Examples=${bindir}/${QT_DIR_NAME}/examples" >> $QT_CONF_PATH
97 echo "HostBinaries=${STAGING_BINDIR_NATIVE}" >> $QT_CONF_PATH 100 echo "HostBinaries=${STAGING_BINDIR_NATIVE}" >> $QT_CONF_PATH
98 echo "HostData=${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}" >> $QT_CONF_PATH 101 echo "HostData=${STAGING_DATADIR}/${QT_DIR_NAME}" >> $QT_CONF_PATH
99 102
100 ./configure -v \ 103 ./configure -v \
101 -opensource -confirm-license \ 104 -opensource -confirm-license \
@@ -114,13 +117,13 @@ do_configure() {
114 -xplatform ${TARGET_OS}-oe-g++ \ 117 -xplatform ${TARGET_OS}-oe-g++ \
115 ${QT_CONFIG_FLAGS} 118 ${QT_CONFIG_FLAGS}
116 119
117 ### Since we are utilizing the native tree for the mkspecs, update the target mkspecs there 120 ### Since we are pointing our host data we need to get them there before compile
118 if [ ! -e ${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}/mkspecs/${TARGET_OS}-oe-g++ ]; then 121 if [ ! -e ${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/${TARGET_OS}-oe-g++ ]; then
119 cp -rf mkspecs/${TARGET_OS}-oe-g++ ${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}/mkspecs/${TARGET_OS}-oe-g++ 122 cp -rf mkspecs/${TARGET_OS}-oe-g++ ${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/${TARGET_OS}-oe-g++
120 fi 123 fi
121 ### qmodule.pri and qconfig.pri contain target specific stuff 124 ### qmodule.pri and qconfig.pri contain target specific stuff copy them over as well
122 cp -f mkspecs/qmodule.pri ${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}/mkspecs/qmodule.pri 125 cp -f mkspecs/qmodule.pri ${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/qmodule.pri
123 cp -f mkspecs/qconfig.pri ${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}/mkspecs/qconfig.pri 126 cp -f mkspecs/qconfig.pri ${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/qconfig.pri
124} 127}
125 128
126do_compile() { 129do_compile() {
@@ -150,11 +153,11 @@ do_install() {
150 153
151FILES_${PN} = "${libdir}/*.so.*" 154FILES_${PN} = "${libdir}/*.so.*"
152FILES_${PN}-dbg = "${libdir}/.debug/*.so.*" 155FILES_${PN}-dbg = "${libdir}/.debug/*.so.*"
153FILES_${PN}-plugins = "${libdir}/${QT_DIR_NAME}/platforms/*.so" 156FILES_${PN}-plugins = "${libdir}/${QT_DIR_NAME}/platforms/*"
154FILES_${PN}-plugins-dbg = "${libdir}/${QT_DIR_NAME}/platforms/.debug/*.so" 157FILES_${PN}-plugins-dbg = "${libdir}/${QT_DIR_NAME}/platforms/.debug/*"
155 158
156FILES_${PN}-dev = "${libdir}/cmake/* ${libdir}/pkgconfig/*.pc ${libdir}/*.la ${libdir}/*.prl ${includedir}/qt5/*" 159FILES_${PN}-dev = "${libdir}/cmake/* ${libdir}/pkgconfig/*.pc ${libdir}/*.la ${libdir}/*.prl ${includedir}/qt5/*"
157FILES_${PN}-staticdev = "${libdir}/libQt*.a" 160FILES_${PN}-staticdev = "${libdir}/libQt*.a"
158FILES_${PN}-tools = "${bindir}/qmake" 161FILES_${PN}-tools = "${bindir}/*"
159FILES_${PN}-mkspecs = "${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}/mkspecs/*" 162FILES_${PN}-mkspecs = "${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/*"
160FILES_${PN}-doc = "${STAGING_DATADIR_NATIVE}/doc/*" 163FILES_${PN}-doc = "${STAGING_DATADIR}/doc/*"
diff --git a/recipes-qt/qt5/files/0001-Always-build-uic.patch b/recipes-qt/qt5/qtbase/0001-Always-build-uic.patch
index 3f2e3fd9..3f2e3fd9 100644
--- a/recipes-qt/qt5/files/0001-Always-build-uic.patch
+++ b/recipes-qt/qt5/qtbase/0001-Always-build-uic.patch
diff --git a/recipes-qt/qt5/qtbase/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch b/recipes-qt/qt5/qtbase/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
new file mode 100644
index 00000000..6c9affae
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
@@ -0,0 +1,31 @@
1From 40e6c0f88774b55111c63ed28bba626141797476 Mon Sep 17 00:00:00 2001
2From: Mikko Levonmaa <mikko.levonmaa@palm.com>
3Date: Tue, 4 Dec 2012 15:32:33 -0800
4Subject: [PATCH 3/3] qtbase: Allow qt.conf override when bootstrapping
5
6Upstream-Status: Inappropriate [configuration]
7
8Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com>
9---
10 qmake/option.cpp | 5 +++++
11 1 files changed, 5 insertions(+), 0 deletions(-)
12
13diff --git a/qmake/option.cpp b/qmake/option.cpp
14index 91c154a..a4f3a85 100644
15--- a/qmake/option.cpp
16+++ b/qmake/option.cpp
17@@ -647,6 +647,11 @@ qmakeAddCacheClear(qmakeCacheClearFunc func, void **data)
18
19 QString qt_libraryInfoFile()
20 {
21+ QString qtconfig = QFile::decodeName(getenv("QT_CONF_PATH"));
22+ if (QFile::exists(qtconfig)) {
23+ printf("Overriding with qt.conf from: %s\n", qtconfig.toLatin1().data());
24+ return qtconfig;
25+ }
26 if (!Option::globals->qmake_abslocation.isEmpty())
27 return QDir(QFileInfo(Option::globals->qmake_abslocation).absolutePath()).filePath("qt.conf");
28 return QString();
29--
301.7.4.1
31