summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase
diff options
context:
space:
mode:
authorMikko Levonmaa <mikko.levonmaa@palm.com>2012-11-15 20:38:27 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2012-11-15 21:57:18 +0100
commit13ed17b2baeb253961885c469ba3c97b9ed420e5 (patch)
tree968d09fb06656497dfd799558f5e651c50fffcb3 /recipes-qt/qt5/qtbase
parent4ec2e9d2d8184f4da4de86711db34012317f3114 (diff)
downloadmeta-qt5-13ed17b2baeb253961885c469ba3c97b9ed420e5.tar.gz
qtbase: add recipe for git version
Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase')
-rw-r--r--recipes-qt/qt5/qtbase/0001-Allowing-the-customization-of-the-paths.patch37
-rw-r--r--recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch44
-rw-r--r--recipes-qt/qt5/qtbase/0002-qmake-is-already-built-in-qt5-tools-native.patch29
-rw-r--r--recipes-qt/qt5/qtbase/0003-Allow-building-a-separate-qmake-for-the-target.patch28
4 files changed, 138 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0001-Allowing-the-customization-of-the-paths.patch b/recipes-qt/qt5/qtbase/0001-Allowing-the-customization-of-the-paths.patch
new file mode 100644
index 00000000..073df378
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0001-Allowing-the-customization-of-the-paths.patch
@@ -0,0 +1,37 @@
1From 183cf66e2770f7fbc420cf7aa94a9a8564785044 Mon Sep 17 00:00:00 2001
2From: Mikko Levonmaa <mikko.levonmaa@palm.com>
3Date: Wed, 7 Nov 2012 14:48:46 -0800
4Subject: [PATCH] Allowing the customization of the paths
5
6Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com>
7---
8 src/corelib/global/qlibraryinfo.cpp | 6 ++++++
9 1 files changed, 6 insertions(+), 0 deletions(-)
10
11diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
12index ccf0718..487b8eb 100644
13--- a/src/corelib/global/qlibraryinfo.cpp
14+++ b/src/corelib/global/qlibraryinfo.cpp
15@@ -49,6 +49,7 @@
16 QT_BEGIN_NAMESPACE
17 extern QString qt_libraryInfoFile();
18 QT_END_NAMESPACE
19+#include <stdlib.h>
20 #elif defined(QT_BOOTSTRAPPED)
21 QString qt_libraryInfoFile()
22 {
23@@ -164,6 +165,11 @@ QSettings *QLibraryInfoPrivate::findConfiguration()
24 }
25 }
26 #endif
27+ if (!QFile::exists(qtconfig)) {
28+ QByteArray config = getenv("QT_CONF_PATH");
29+ qtconfig = QFile::decodeName(config);
30+ printf("Using qt.conf from: %s\n", qtconfig.toLatin1().data());
31+ }
32 if (QFile::exists(qtconfig))
33 return new QSettings(qtconfig, QSettings::IniFormat);
34 return 0; //no luck
35--
361.7.4.1
37
diff --git a/recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
new file mode 100644
index 00000000..6b5bed9a
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
@@ -0,0 +1,44 @@
1From d5a0cf45ebbd6a5911f8bd208fe355eb990b5388 Mon Sep 17 00:00:00 2001
2From: Holger Freyther <zecke@selfish.org>
3Date: Wed, 26 Sep 2012 17:22:30 +0200
4Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the environment
5
6Allow to set a qt.conf from the outside using the environment. This allows
7to inject new prefixes and other paths into qmake. This is needed when using
8the same qmake binary to build qt/x11 and qt/embedded
9
10Upstream-Status: Pending
11
12Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13---
14 src/corelib/global/qlibraryinfo.cpp | 5 +++++
15 1 files changed, 5 insertions(+), 0 deletions(-)
16
17diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
18index ccf0718..497e72e 100644
19--- a/src/corelib/global/qlibraryinfo.cpp
20+++ b/src/corelib/global/qlibraryinfo.cpp
21@@ -49,6 +49,8 @@
22 QT_BEGIN_NAMESPACE
23 extern QString qt_libraryInfoFile();
24 QT_END_NAMESPACE
25+#include <stdlib.h>
26+#include <stdio.h>
27 #elif defined(QT_BOOTSTRAPPED)
28 QString qt_libraryInfoFile()
29 {
30@@ -142,6 +143,11 @@ QSettings *QLibraryInfoPrivate::findConfiguration()
31 #ifdef QT_BOOTSTRAPPED
32 if(!QFile::exists(qtconfig))
33 qtconfig = qt_libraryInfoFile();
34+ if (!QFile::exists(qtconfig)) {
35+ QByteArray config = getenv("QT_CONF_PATH");
36+ qtconfig = QFile::decodeName(config);
37+ printf("using qt.conf %s", qtconfig.toLatin1().data());
38+ }
39 #else
40 if (!QFile::exists(qtconfig) && QCoreApplication::instance()) {
41 #ifdef Q_OS_MAC
42--
431.7.4.1
44
diff --git a/recipes-qt/qt5/qtbase/0002-qmake-is-already-built-in-qt5-tools-native.patch b/recipes-qt/qt5/qtbase/0002-qmake-is-already-built-in-qt5-tools-native.patch
new file mode 100644
index 00000000..0c1f63c6
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0002-qmake-is-already-built-in-qt5-tools-native.patch
@@ -0,0 +1,29 @@
1From aab01049543f4508f1dc92fb62b980d1d0c3bcc0 Mon Sep 17 00:00:00 2001
2From: Michael Krelin <hacker@klever.net>
3Date: Mon, 29 Oct 2012 20:07:49 -0700
4Subject: [PATCH] qmake is already built in qt5-tools-native
5
6Ported from OE by: Yu Ke <ke.yu@intel.com>
7Upstream-Status: Inappropriate [configuration]
8
9Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com>
10---
11 configure | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14diff --git a/configure b/configure
15index c3e61d6..5e43a19 100755
16--- a/configure
17+++ b/configure
18@@ -3594,7 +3594,7 @@ setBootstrapVariable()
19 }
20
21 # build qmake
22-if true; then ###[ '!' -f "$outpath/bin/qmake" ];
23+if false; then ###[ '!' -f "$outpath/bin/qmake" ];
24 echo "Creating qmake. Please wait..."
25
26 #mkspecs/default is used as a (gasp!) default mkspec so QMAKESPEC needn't be set once configured
27--
281.7.4.1
29
diff --git a/recipes-qt/qt5/qtbase/0003-Allow-building-a-separate-qmake-for-the-target.patch b/recipes-qt/qt5/qtbase/0003-Allow-building-a-separate-qmake-for-the-target.patch
new file mode 100644
index 00000000..781d6e54
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0003-Allow-building-a-separate-qmake-for-the-target.patch
@@ -0,0 +1,28 @@
1From a2a01e1fd975e8e616b580423c3bf30db9c11b6d Mon Sep 17 00:00:00 2001
2From: Paul Eggleton <paul.eggleton@linux.intel.com>
3Date: Mon, 29 Oct 2012 20:26:36 -0700
4Subject: [PATCH] Allow building a separate qmake for the target
5
6Upstream-Status: Inappropriate [config]
7
8Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com>
10---
11 qmake/qmake.pro | 1 +
12 1 files changed, 1 insertions(+), 0 deletions(-)
13
14diff --git a/qmake/qmake.pro b/qmake/qmake.pro
15index 0d92ac2..07fa80e 100644
16--- a/qmake/qmake.pro
17+++ b/qmake/qmake.pro
18@@ -9,6 +9,7 @@ CONFIG -= qt shared app_bundle uic
19 DEFINES += QT_BUILD_QMAKE QT_BOOTSTRAPPED \
20 PROEVALUATOR_FULL PROEVALUATOR_DEBUG
21 DESTDIR = ../bin/
22+TARGET = qmake2
23
24 OBJECTS_DIR = .
25 MOC_DIR = .
26--
271.7.4.1
28