diff options
author | Mikko Levonmaa <mikko.levonmaa@palm.com> | 2012-11-15 20:38:27 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2012-11-15 21:57:18 +0100 |
commit | 13ed17b2baeb253961885c469ba3c97b9ed420e5 (patch) | |
tree | 968d09fb06656497dfd799558f5e651c50fffcb3 /recipes-qt/qt5/qtbase | |
parent | 4ec2e9d2d8184f4da4de86711db34012317f3114 (diff) | |
download | meta-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')
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 @@ | |||
1 | From 183cf66e2770f7fbc420cf7aa94a9a8564785044 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Wed, 7 Nov 2012 14:48:46 -0800 | ||
4 | Subject: [PATCH] Allowing the customization of the paths | ||
5 | |||
6 | Signed-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 | |||
11 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
12 | index 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 | -- | ||
36 | 1.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 @@ | |||
1 | From d5a0cf45ebbd6a5911f8bd208fe355eb990b5388 Mon Sep 17 00:00:00 2001 | ||
2 | From: Holger Freyther <zecke@selfish.org> | ||
3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 | ||
4 | Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the environment | ||
5 | |||
6 | Allow to set a qt.conf from the outside using the environment. This allows | ||
7 | to inject new prefixes and other paths into qmake. This is needed when using | ||
8 | the same qmake binary to build qt/x11 and qt/embedded | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-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 | |||
17 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
18 | index 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 | -- | ||
43 | 1.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 @@ | |||
1 | From aab01049543f4508f1dc92fb62b980d1d0c3bcc0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Mon, 29 Oct 2012 20:07:49 -0700 | ||
4 | Subject: [PATCH] qmake is already built in qt5-tools-native | ||
5 | |||
6 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
7 | Upstream-Status: Inappropriate [configuration] | ||
8 | |||
9 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com> | ||
10 | --- | ||
11 | configure | 2 +- | ||
12 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
13 | |||
14 | diff --git a/configure b/configure | ||
15 | index 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 | -- | ||
28 | 1.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 @@ | |||
1 | From a2a01e1fd975e8e616b580423c3bf30db9c11b6d Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Mon, 29 Oct 2012 20:26:36 -0700 | ||
4 | Subject: [PATCH] Allow building a separate qmake for the target | ||
5 | |||
6 | Upstream-Status: Inappropriate [config] | ||
7 | |||
8 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
9 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com> | ||
10 | --- | ||
11 | qmake/qmake.pro | 1 + | ||
12 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
13 | |||
14 | diff --git a/qmake/qmake.pro b/qmake/qmake.pro | ||
15 | index 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 | -- | ||
27 | 1.7.4.1 | ||
28 | |||