summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase
diff options
context:
space:
mode:
authorMikko Levonmaa <mikko.levonmaa@gmail.com>2012-12-04 16:32:32 -0800
committerMikko Levonmaa <mikko.levonmaa@gmail.com>2012-12-04 17:03:14 -0800
commit17d2bf1cdd6a6b23a88a8e07dcb640e8f01115d2 (patch)
tree0f7e16690a095d35904858580594c14ed12501b5 /recipes-qt/qt5/qtbase
parent93fc33ea280a2fd060dc35b6d60e3d6a65968ccf (diff)
downloadmeta-qt5-17d2bf1cdd6a6b23a88a8e07dcb640e8f01115d2.tar.gz
qtbase: mkspecs are now staged correctly
They are placed under STAGING_DATADIR as they need to be kept separate from the native side. The reason for doing so is that some qt modules require native tools and the mkspecs in STAGING_DATADIR_NATIVE cannot be polluted with the target mkspecs There are still some packaging issues Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase')
-rw-r--r--recipes-qt/qt5/qtbase/0001-Always-build-uic.patch31
-rw-r--r--recipes-qt/qt5/qtbase/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch31
2 files changed, 62 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0001-Always-build-uic.patch b/recipes-qt/qt5/qtbase/0001-Always-build-uic.patch
new file mode 100644
index 00000000..3f2e3fd9
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0001-Always-build-uic.patch
@@ -0,0 +1,31 @@
1From 1092de02d1ac256a8c56fb5b5e590a4df8188acb Mon Sep 17 00:00:00 2001
2From: Mikko Levonmaa <mikko.levonmaa@palm.com>
3Date: Tue, 27 Nov 2012 12:46:44 -0800
4Subject: [PATCH] Always build uic
5
6Even if we are not building gui or widgets. This tool is needed later
7as a native tool when compiling the target.
8
9Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com>
10---
11 src/tools/tools.pro | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/src/tools/tools.pro b/src/tools/tools.pro
15index c67d6bf..b6f3b39 100644
16--- a/src/tools/tools.pro
17+++ b/src/tools/tools.pro
18@@ -1,8 +1,8 @@
19 TEMPLATE = subdirs
20
21-TOOLS_SUBDIRS = src_tools_bootstrap src_tools_moc src_tools_rcc src_tools_qdoc
22+TOOLS_SUBDIRS = src_tools_bootstrap src_tools_moc src_tools_rcc src_tools_qdoc src_tools_uic
23 contains(QT_CONFIG, dbus): TOOLS_SUBDIRS += src_tools_qdbusxml2cpp src_tools_qdbuscpp2xml
24-!contains(QT_CONFIG, no-widgets): TOOLS_SUBDIRS += src_tools_uic
25+
26 # Set subdir and respective target name
27 src_tools_bootstrap.subdir = $$PWD/bootstrap
28 src_tools_bootstrap.target = sub-tools-bootstrap
29--
301.7.4.1
31
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