diff options
author | Mikko Levonmaa <mikko.levonmaa@gmail.com> | 2012-12-04 16:32:32 -0800 |
---|---|---|
committer | Mikko Levonmaa <mikko.levonmaa@gmail.com> | 2012-12-04 17:03:14 -0800 |
commit | 17d2bf1cdd6a6b23a88a8e07dcb640e8f01115d2 (patch) | |
tree | 0f7e16690a095d35904858580594c14ed12501b5 /recipes-qt/qt5/qtbase | |
parent | 93fc33ea280a2fd060dc35b6d60e3d6a65968ccf (diff) | |
download | meta-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.patch | 31 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch | 31 |
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 @@ | |||
1 | From 1092de02d1ac256a8c56fb5b5e590a4df8188acb Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Tue, 27 Nov 2012 12:46:44 -0800 | ||
4 | Subject: [PATCH] Always build uic | ||
5 | |||
6 | Even if we are not building gui or widgets. This tool is needed later | ||
7 | as a native tool when compiling the target. | ||
8 | |||
9 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
10 | --- | ||
11 | src/tools/tools.pro | 4 ++-- | ||
12 | 1 files changed, 2 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/src/tools/tools.pro b/src/tools/tools.pro | ||
15 | index 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 | -- | ||
30 | 1.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 @@ | |||
1 | From 40e6c0f88774b55111c63ed28bba626141797476 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Tue, 4 Dec 2012 15:32:33 -0800 | ||
4 | Subject: [PATCH 3/3] qtbase: Allow qt.conf override when bootstrapping | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
9 | --- | ||
10 | qmake/option.cpp | 5 +++++ | ||
11 | 1 files changed, 5 insertions(+), 0 deletions(-) | ||
12 | |||
13 | diff --git a/qmake/option.cpp b/qmake/option.cpp | ||
14 | index 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 | -- | ||
30 | 1.7.4.1 | ||
31 | |||