diff options
62 files changed, 29 insertions, 2728 deletions
diff --git a/conf/distro/include/qt5-versions.inc b/conf/distro/include/qt5-versions.inc index ea159700..81cb8cbb 100644 --- a/conf/distro/include/qt5-versions.inc +++ b/conf/distro/include/qt5-versions.inc | |||
@@ -1,5 +1,5 @@ | |||
1 | # Select which version you prefer by defining QT5_VERSION and including this file | 1 | # Select which version you prefer by defining QT5_VERSION and including this file |
2 | # possible values now "5.0.2", "5.1.0", "5.1.0+git%" | 2 | # possible values now "5.1.0", "5.1.0+git%" |
3 | 3 | ||
4 | QT5_VERSION ?= "5.1.0" | 4 | QT5_VERSION ?= "5.1.0" |
5 | 5 | ||
@@ -19,8 +19,3 @@ PREFERRED_VERSION_qttools-native = "${QT5_VERSION}" | |||
19 | PREFERRED_VERSION_qtwebkit = "${QT5_VERSION}" | 19 | PREFERRED_VERSION_qtwebkit = "${QT5_VERSION}" |
20 | PREFERRED_VERSION_qtwebkit-examples = "${QT5_VERSION}" | 20 | PREFERRED_VERSION_qtwebkit-examples = "${QT5_VERSION}" |
21 | PREFERRED_VERSION_qtxmlpatterns = "${QT5_VERSION}" | 21 | PREFERRED_VERSION_qtxmlpatterns = "${QT5_VERSION}" |
22 | |||
23 | # append % only if it isn't included already | ||
24 | # 5.1.0+git%% won't work and it's exactly where we need to overcome DEFAULT_PREFERENCE with PREFERRED_VERSION | ||
25 | QT5_VERSION_WAYLAND = "${@base_contains('QT5_VERSION', '5.1.0+git%', '${QT5_VERSION}', '${QT5_VERSION}%', d)}" | ||
26 | PREFERRED_VERSION_qtwayland = "${QT5_VERSION_WAYLAND}" | ||
diff --git a/recipes-qt/qt5/qt5-5.0.2.inc b/recipes-qt/qt5/qt5-5.0.2.inc deleted file mode 100644 index c04b3a2a..00000000 --- a/recipes-qt/qt5/qt5-5.0.2.inc +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | # Copyright (C) 2012 O.S. Systems Software LTDA. | ||
2 | # Copyright (C) 2013 Martin Jansa <martin.jansa@gmail.com> | ||
3 | |||
4 | QT_VERSION ?= "${PV}" | ||
5 | |||
6 | # it's different for RC versions | ||
7 | QT_VERSION_DIR ?= "${QT_VERSION}" | ||
8 | |||
9 | SRC_URI += " \ | ||
10 | http://download.qt-project.org/archive/qt/5.0/${QT_VERSION_DIR}/submodules/${QT_MODULE}-opensource-src-${QT_VERSION}.tar.xz \ | ||
11 | " | ||
12 | |||
13 | S = "${WORKDIR}/${QT_MODULE}-opensource-src-${QT_VERSION}" | ||
14 | |||
15 | LICENSE = "GFDL-1.3 & LGPL-2.1 | GPL-3.0" | ||
16 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
17 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
18 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
19 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | ||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch deleted file mode 100644 index fdd96fee..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch +++ /dev/null | |||
@@ -1,304 +0,0 @@ | |||
1 | From d64321c240cbb949b9e55e2cd448c78bf9865c56 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Mon, 15 Apr 2013 04:29:32 +0200 | ||
4 | Subject: [PATCH 01/22] Add linux-oe-g++ platform | ||
5 | |||
6 | * This qmake.conf unlike other platforms reads most variables from | ||
7 | shell environment, because it's easier for qt recipes to export | ||
8 | *FLAGS or CC specific for given recipe | ||
9 | |||
10 | * configure: add getQEvalMakeConf and getXQEvalMakeConf | ||
11 | Allow expansion of $(...) references from qmake.conf to generate | ||
12 | qmake environment from shell environment as exported by qmake5_base | ||
13 | |||
14 | * OE_QMAKE_CXX in order to allow compiler version check to succeed | ||
15 | which allows WebKit to be enabled. | ||
16 | |||
17 | * Other variables in order to let config.tests to use our -platform | ||
18 | settings | ||
19 | |||
20 | * Add setBootstrapEvalVariable to bootstrap qmake with our environment | ||
21 | too, this allows us to use -platform linux-oe-g++ also for native | ||
22 | recipe | ||
23 | |||
24 | * disable gdb_dwarf_index | ||
25 | * qmake is trying to call native gdb and we don't depend on gdb-native | ||
26 | (or even provide gdb-native) | ||
27 | * fixes errors like this: | ||
28 | /bin/sh: gdb: command not found | ||
29 | /bin/sh: line 0: test: -gt: unary operator expected | ||
30 | which are not fatal, but still misleading in do_configure output | ||
31 | |||
32 | Upstream-Status: Pending | ||
33 | |||
34 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
35 | --- | ||
36 | configure | 54 ++++++++++++++++--- | ||
37 | mkspecs/linux-oe-g++/qmake.conf | 40 ++++++++++++++ | ||
38 | mkspecs/linux-oe-g++/qplatformdefs.h | 100 +++++++++++++++++++++++++++++++++++ | ||
39 | 3 files changed, 187 insertions(+), 7 deletions(-) | ||
40 | create mode 100644 mkspecs/linux-oe-g++/qmake.conf | ||
41 | create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h | ||
42 | |||
43 | diff --git a/configure b/configure | ||
44 | index 2ea1ea4..6db4577 100755 | ||
45 | --- a/configure | ||
46 | +++ b/configure | ||
47 | @@ -216,6 +216,16 @@ getQMakeConf() | ||
48 | getQMakeConf3 "$1" "$specvals" | ||
49 | } | ||
50 | |||
51 | +# OE qmake.conf is reading some variables from shell env | ||
52 | +# read them from qmake.conf, replace qmake () syntax with shell and eval | ||
53 | +getQEvalMakeConf() | ||
54 | +{ | ||
55 | + VAL=`getQMakeConf "$1" | sed -n 's/$[(]\([0-9a-zA-Z_]*\)[)]/$\1/pg'` | ||
56 | + EVAL=`eval "echo ${VAL}"` | ||
57 | +# echo "Running getQEvalMakeConf: var='$1', val='`getQMakeConf \"$1\"`, val-sed='$VAL', eval='$EVAL'" >&2 | ||
58 | + eval "echo ${VAL}" | ||
59 | +} | ||
60 | + | ||
61 | getXQMakeConf() | ||
62 | { | ||
63 | if [ -z "$xspecvals" ]; then | ||
64 | @@ -224,6 +234,16 @@ getXQMakeConf() | ||
65 | getQMakeConf3 "$1" "$xspecvals" | ||
66 | } | ||
67 | |||
68 | +# OE qmake.conf is reading some variables from shell env | ||
69 | +# read them from qmake.conf, replace qmake () syntax with shell and eval | ||
70 | +getXQEvalMakeConf() | ||
71 | +{ | ||
72 | + VAL=`getXQMakeConf "$1" | sed -n 's/$[(]\([0-9a-zA-Z_]*\)[)]/$\1/pg'` | ||
73 | + EVAL=`eval "echo ${VAL}"` | ||
74 | +# echo "Running getXQEvalMakeConf: var='$1', val='`getXQMakeConf \"$1\"`, val-sed='$VAL', eval='$EVAL'" >&2 | ||
75 | + eval "echo ${VAL}" | ||
76 | +} | ||
77 | + | ||
78 | compilerSupportsFlag() | ||
79 | { | ||
80 | cat >conftest.cpp <<EOF | ||
81 | @@ -707,6 +727,18 @@ fi | ||
82 | # initalize variables | ||
83 | #------------------------------------------------------------------------------- | ||
84 | |||
85 | +# Export all OE variables for qmake.conf from shell env to QMakeVars | ||
86 | +OE_VARIABLES="AR CC CFLAGS COMPILER CXX CXXFLAGS LDFLAGS LINK QT_CONFIG STRIP" | ||
87 | +for varname in $OE_VARIABLES; do | ||
88 | + qmakevarname="${varname}" | ||
89 | + cmd=`echo \ | ||
90 | +'if [ -n "\$OE_QMAKE_'${varname}'" ]; then | ||
91 | + QMakeVar set OE_QMAKE_'${qmakevarname}' "\$OE_QMAKE_'${varname}'" | ||
92 | +# echo "Exporting OE_QMAKE_'${qmakevarname}' value=\"\$OE_QMAKE_'${varname}'\"" >&2 | ||
93 | +fi'` | ||
94 | + eval "$cmd" | ||
95 | +done | ||
96 | + | ||
97 | SYSTEM_VARIABLES="RANLIB STRIP OBJDUMP LD CC CXX CFLAGS CXXFLAGS LDFLAGS" | ||
98 | for varname in $SYSTEM_VARIABLES; do | ||
99 | qmakevarname="${varname}" | ||
100 | @@ -2636,7 +2668,7 @@ if [ "$BUILD_ON_MAC" = "yes" ] && [ "$CFG_QGTKSTYLE" = "auto" ]; then | ||
101 | CFG_QGTKSTYLE=no | ||
102 | fi | ||
103 | |||
104 | -QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX` | ||
105 | +QMAKE_CONF_COMPILER=`getXQEvalMakeConf QMAKE_CXX` | ||
106 | |||
107 | TEST_COMPILER=$QMAKE_CONF_COMPILER | ||
108 | if [ "$XPLATFORM_SYMBIAN_SBSV2" = "no" ]; then | ||
109 | @@ -2645,7 +2677,7 @@ if [ "$XPLATFORM_SYMBIAN_SBSV2" = "no" ]; then | ||
110 | exit 1 | ||
111 | fi | ||
112 | fi | ||
113 | -TEST_COMPILER_CXXFLAGS=`getXQMakeConf QMAKE_CXXFLAGS` | ||
114 | +TEST_COMPILER_CXXFLAGS=`getXQEvalMakeConf QMAKE_CXXFLAGS` | ||
115 | |||
116 | GCC_MACHINE_DUMP= | ||
117 | case "$TEST_COMPILER" in *g++) GCC_MACHINE_DUMP=$($TEST_COMPILER -dumpmachine);; esac | ||
118 | @@ -3613,6 +3645,14 @@ setBootstrapVariable() | ||
119 | getQMakeConf "$1" | echo ${2-$1} = `if [ -n "$3" ]; then sed "$3"; else cat; fi` >> "$mkfile" | ||
120 | } | ||
121 | |||
122 | +# OE qmake.conf is reading some variables from shell env | ||
123 | +# read them from qmake.conf, replace qmake () syntax with shell and eval | ||
124 | +setBootstrapEvalVariable() | ||
125 | +{ | ||
126 | + getQEvalMakeConf "$1" | echo ${2-$1} = `if [ -n "$3" ]; then sed "$3"; else cat; fi` >> "$mkfile" | ||
127 | +} | ||
128 | + | ||
129 | + | ||
130 | # build qmake | ||
131 | if true; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
132 | echo "Creating qmake..." | ||
133 | @@ -3651,11 +3691,11 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
134 | fi | ||
135 | |||
136 | [ "$CFG_SILENT" = "yes" ] && CC_TRANSFORM='s,^,\@,' || CC_TRANSFORM= | ||
137 | - setBootstrapVariable QMAKE_CC CC "$CC_TRANSFORM" | ||
138 | - setBootstrapVariable QMAKE_CXX CXX "$CC_TRANSFORM" | ||
139 | - setBootstrapVariable QMAKE_CFLAGS | ||
140 | - setBootstrapVariable QMAKE_CXXFLAGS | ||
141 | - setBootstrapVariable QMAKE_LFLAGS | ||
142 | + setBootstrapEvalVariable QMAKE_CC CC "$CC_TRANSFORM" | ||
143 | + setBootstrapEvalVariable QMAKE_CXX CXX "$CC_TRANSFORM" | ||
144 | + setBootstrapEvalVariable QMAKE_CFLAGS | ||
145 | + setBootstrapEvalVariable QMAKE_CXXFLAGS | ||
146 | + setBootstrapEvalVariable QMAKE_LFLAGS | ||
147 | |||
148 | if [ $QT_EDITION = "QT_EDITION_OPENSOURCE" ]; then | ||
149 | EXTRA_CFLAGS="$EXTRA_CFLAGS -DQMAKE_OPENSOURCE_EDITION" | ||
150 | diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf | ||
151 | new file mode 100644 | ||
152 | index 0000000..ca26b10 | ||
153 | --- /dev/null | ||
154 | +++ b/mkspecs/linux-oe-g++/qmake.conf | ||
155 | @@ -0,0 +1,40 @@ | ||
156 | +# | ||
157 | +# qmake configuration for linux-g++ with modifications for building with OpenEmbedded | ||
158 | +# | ||
159 | + | ||
160 | +MAKEFILE_GENERATOR = UNIX | ||
161 | +CONFIG += incremental | ||
162 | +QMAKE_INCREMENTAL_STYLE = sublib | ||
163 | + | ||
164 | +include(../common/linux.conf) | ||
165 | + | ||
166 | +# QMAKE_<TOOL> (moc, uic, rcc) are gone, overwrite only ar and strip | ||
167 | +QMAKE_AR = $(OE_QMAKE_AR) cqs | ||
168 | +QMAKE_STRIP = $(OE_QMAKE_STRIP) | ||
169 | +QMAKE_WAYLAND_SCANNER = $(OE_QMAKE_WAYLAND_SCANNER) | ||
170 | + | ||
171 | +include(../common/gcc-base-unix.conf) | ||
172 | + | ||
173 | +# *FLAGS from gcc-base.conf | ||
174 | +QMAKE_CFLAGS += $(OE_QMAKE_CFLAGS) | ||
175 | +QMAKE_CXXFLAGS += $(OE_QMAKE_CXXFLAGS) | ||
176 | +QMAKE_LFLAGS += $(OE_QMAKE_LDFLAGS) | ||
177 | + | ||
178 | +include(../common/g++-unix.conf) | ||
179 | + | ||
180 | +# tc settings from g++-base.conf | ||
181 | +QMAKE_COMPILER = $(OE_QMAKE_COMPILER) | ||
182 | +QMAKE_CC = $(OE_QMAKE_CC) | ||
183 | +QMAKE_CXX = $(OE_QMAKE_CXX) | ||
184 | + | ||
185 | +QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $(OE_QMAKE_CFLAGS) | ||
186 | + | ||
187 | +QMAKE_LINK = $(OE_QMAKE_LINK) | ||
188 | +QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) | ||
189 | +QMAKE_LINK_C = $(OE_QMAKE_LINK) | ||
190 | +QMAKE_LINK_C_SHLIB = $(OE_QMAKE_LINK) | ||
191 | + | ||
192 | +# for the SDK | ||
193 | +isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG) | ||
194 | + | ||
195 | +load(qt_config) | ||
196 | diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h | ||
197 | new file mode 100644 | ||
198 | index 0000000..dd12003 | ||
199 | --- /dev/null | ||
200 | +++ b/mkspecs/linux-oe-g++/qplatformdefs.h | ||
201 | @@ -0,0 +1,100 @@ | ||
202 | +/**************************************************************************** | ||
203 | +** | ||
204 | +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | ||
205 | +** Contact: http://www.qt-project.org/legal | ||
206 | +** | ||
207 | +** This file is part of the qmake spec of the Qt Toolkit. | ||
208 | +** | ||
209 | +** $QT_BEGIN_LICENSE:LGPL$ | ||
210 | +** Commercial License Usage | ||
211 | +** Licensees holding valid commercial Qt licenses may use this file in | ||
212 | +** accordance with the commercial license agreement provided with the | ||
213 | +** Software or, alternatively, in accordance with the terms contained in | ||
214 | +** a written agreement between you and Digia. For licensing terms and | ||
215 | +** conditions see http://qt.digia.com/licensing. For further information | ||
216 | +** use the contact form at http://qt.digia.com/contact-us. | ||
217 | +** | ||
218 | +** GNU Lesser General Public License Usage | ||
219 | +** Alternatively, this file may be used under the terms of the GNU Lesser | ||
220 | +** General Public License version 2.1 as published by the Free Software | ||
221 | +** Foundation and appearing in the file LICENSE.LGPL included in the | ||
222 | +** packaging of this file. Please review the following information to | ||
223 | +** ensure the GNU Lesser General Public License version 2.1 requirements | ||
224 | +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | ||
225 | +** | ||
226 | +** In addition, as a special exception, Digia gives you certain additional | ||
227 | +** rights. These rights are described in the Digia Qt LGPL Exception | ||
228 | +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | ||
229 | +** | ||
230 | +** GNU General Public License Usage | ||
231 | +** Alternatively, this file may be used under the terms of the GNU | ||
232 | +** General Public License version 3.0 as published by the Free Software | ||
233 | +** Foundation and appearing in the file LICENSE.GPL included in the | ||
234 | +** packaging of this file. Please review the following information to | ||
235 | +** ensure the GNU General Public License version 3.0 requirements will be | ||
236 | +** met: http://www.gnu.org/copyleft/gpl.html. | ||
237 | +** | ||
238 | +** | ||
239 | +** $QT_END_LICENSE$ | ||
240 | +** | ||
241 | +****************************************************************************/ | ||
242 | + | ||
243 | +#ifndef QPLATFORMDEFS_H | ||
244 | +#define QPLATFORMDEFS_H | ||
245 | + | ||
246 | +// Get Qt defines/settings | ||
247 | + | ||
248 | +#include "qglobal.h" | ||
249 | + | ||
250 | +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
251 | + | ||
252 | +// 1) need to reset default environment if _BSD_SOURCE is defined | ||
253 | +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 | ||
254 | +// 3) it seems older glibc need this to include the X/Open stuff | ||
255 | +#ifndef _GNU_SOURCE | ||
256 | +# define _GNU_SOURCE | ||
257 | +#endif | ||
258 | + | ||
259 | +#include <unistd.h> | ||
260 | + | ||
261 | + | ||
262 | +// We are hot - unistd.h should have turned on the specific APIs we requested | ||
263 | + | ||
264 | +#include <features.h> | ||
265 | +#include <pthread.h> | ||
266 | +#include <dirent.h> | ||
267 | +#include <fcntl.h> | ||
268 | +#include <grp.h> | ||
269 | +#include <pwd.h> | ||
270 | +#include <signal.h> | ||
271 | + | ||
272 | +#include <sys/types.h> | ||
273 | +#include <sys/ioctl.h> | ||
274 | +#include <sys/ipc.h> | ||
275 | +#include <sys/time.h> | ||
276 | +#include <sys/shm.h> | ||
277 | +#include <sys/socket.h> | ||
278 | +#include <sys/stat.h> | ||
279 | +#include <sys/wait.h> | ||
280 | +#include <netinet/in.h> | ||
281 | +#ifndef QT_NO_IPV6IFNAME | ||
282 | +#include <net/if.h> | ||
283 | +#endif | ||
284 | + | ||
285 | +#define QT_USE_XOPEN_LFS_EXTENSIONS | ||
286 | +#include "../common/posix/qplatformdefs.h" | ||
287 | + | ||
288 | +#undef QT_SOCKLEN_T | ||
289 | + | ||
290 | +#if defined(__GLIBC__) && (__GLIBC__ >= 2) | ||
291 | +#define QT_SOCKLEN_T socklen_t | ||
292 | +#else | ||
293 | +#define QT_SOCKLEN_T int | ||
294 | +#endif | ||
295 | + | ||
296 | +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) | ||
297 | +#define QT_SNPRINTF ::snprintf | ||
298 | +#define QT_VSNPRINTF ::vsnprintf | ||
299 | +#endif | ||
300 | + | ||
301 | +#endif // QPLATFORMDEFS_H | ||
302 | -- | ||
303 | 1.8.3.2 | ||
304 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0001-Always-build-uic.patch b/recipes-qt/qt5/qtbase-5.0.2/0001-Always-build-uic.patch deleted file mode 100644 index 3f2e3fd9..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0001-Always-build-uic.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
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-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch deleted file mode 100644 index f59089cf..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 542325db6c9e9e2ffc2390b8eb1f8b16e674ca41 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 02/22] qlibraryinfo: allow to set qt.conf from the outside | ||
5 | using the environment | ||
6 | |||
7 | Allow to set a qt.conf from the outside using the environment. This allows | ||
8 | to inject new prefixes and other paths into qmake. This is needed when using | ||
9 | the same qmake binary to build qt/x11 and qt/embedded | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
14 | --- | ||
15 | src/corelib/global/qlibraryinfo.cpp | 5 ++++- | ||
16 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
19 | index 5fb9640..6b40731 100644 | ||
20 | --- a/src/corelib/global/qlibraryinfo.cpp | ||
21 | +++ b/src/corelib/global/qlibraryinfo.cpp | ||
22 | @@ -138,7 +138,10 @@ QLibrarySettings::QLibrarySettings() | ||
23 | |||
24 | QSettings *QLibraryInfoPrivate::findConfiguration() | ||
25 | { | ||
26 | - QString qtconfig = QStringLiteral(":/qt/etc/qt.conf"); | ||
27 | + QByteArray config = getenv("QT_CONF_PATH"); | ||
28 | + QString qtconfig = QFile::decodeName(config); | ||
29 | + if(!QFile::exists(qtconfig)) | ||
30 | + qtconfig = QStringLiteral(":/qt/etc/qt.conf"); | ||
31 | #ifdef QT_BOOTSTRAPPED | ||
32 | if(!QFile::exists(qtconfig)) | ||
33 | qtconfig = qt_libraryInfoFile(); | ||
34 | -- | ||
35 | 1.8.3.2 | ||
36 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch deleted file mode 100644 index ce27eb6b..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch +++ /dev/null | |||
@@ -1,221 +0,0 @@ | |||
1 | From 943c30aa55fbf1e330e7c987e989ddbd656e69c0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sat, 6 Apr 2013 13:15:07 +0200 | ||
4 | Subject: [PATCH 03/22] Add -external-hostbindir option | ||
5 | |||
6 | * when cross-compiling it's sometimes useful to use existing tools from machine | ||
7 | (or in OpenEmbedded built with separate native recipe) when building for target | ||
8 | |||
9 | * this way we can skip bootstraping tools we already have | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
14 | --- | ||
15 | configure | 15 ++++++++++++++- | ||
16 | mkspecs/features/qt_functions.prf | 5 ++++- | ||
17 | mkspecs/features/qt_tool.prf | 2 +- | ||
18 | qmake/property.cpp | 1 + | ||
19 | qtbase.pro | 15 +++++++++++---- | ||
20 | src/corelib/global/qlibraryinfo.cpp | 3 ++- | ||
21 | src/corelib/global/qlibraryinfo.h | 1 + | ||
22 | tools/configure/configureapp.cpp | 8 ++++++++ | ||
23 | 8 files changed, 42 insertions(+), 8 deletions(-) | ||
24 | |||
25 | diff --git a/configure b/configure | ||
26 | index 6db4577..1ca5b4e 100755 | ||
27 | --- a/configure | ||
28 | +++ b/configure | ||
29 | @@ -930,6 +930,7 @@ CFG_GCC_SYSROOT="yes" | ||
30 | QT_HOST_PREFIX= | ||
31 | QT_HOST_BINS= | ||
32 | QT_HOST_DATA= | ||
33 | +QT_EXTERNAL_HOST_BINS= | ||
34 | |||
35 | #flags for SQL drivers | ||
36 | QT_CFLAGS_PSQL= | ||
37 | @@ -1028,7 +1029,7 @@ while [ "$#" -gt 0 ]; do | ||
38 | VAL=no | ||
39 | ;; | ||
40 | #Qt style options that pass an argument | ||
41 | - -prefix|-docdir|-headerdir|-plugindir|-importdir|-qmldir|-archdatadir|-datadir|-libdir|-bindir|-libexecdir|-translationdir|-sysconfdir|-examplesdir|-testsdir|-depths|-make|-nomake|-skip|-platform|-xplatform|-device|-device-option|-sdk|-arch|-host-arch|-mysql_config|-sysroot|-hostdatadir|-hostbindir|-qpa|-qconfig) | ||
42 | + -prefix|-docdir|-headerdir|-plugindir|-importdir|-qmldir|-archdatadir|-datadir|-libdir|-bindir|-libexecdir|-translationdir|-sysconfdir|-examplesdir|-testsdir|-depths|-make|-nomake|-skip|-platform|-xplatform|-device|-device-option|-sdk|-arch|-host-arch|-mysql_config|-sysroot|-hostdatadir|-hostbindir|-qpa|-qconfig|-external-hostbindir) | ||
43 | VAR=`echo $1 | sed "s,^-\(.*\),\1,"` | ||
44 | shift | ||
45 | VAL="$1" | ||
46 | @@ -1213,6 +1214,9 @@ while [ "$#" -gt 0 ]; do | ||
47 | hostbindir) | ||
48 | QT_HOST_BINS="$VAL" | ||
49 | ;; | ||
50 | + external-hostbindir) | ||
51 | + QT_EXTERNAL_HOST_BINS="$VAL" | ||
52 | + ;; | ||
53 | pkg-config) | ||
54 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
55 | CFG_PKGCONFIG="$VAL" | ||
56 | @@ -2941,6 +2945,11 @@ else | ||
57 | QT_HOST_DATA=`"$relpath/config.tests/unix/makeabs" "$QT_HOST_DATA"` | ||
58 | fi | ||
59 | |||
60 | +# default is empty, don't call makeabs if it is empty | ||
61 | +if [ ! -z "$QT_EXTERNAL_HOST_BINS" ]; then | ||
62 | + QT_EXTERNAL_HOST_BINS=`"$relpath/config.tests/unix/makeabs" "$QT_EXTERNAL_HOST_BINS"` | ||
63 | +fi | ||
64 | + | ||
65 | #------------------------------------------------------------------------------- | ||
66 | # help - interactive parts of the script _after_ this section please | ||
67 | #------------------------------------------------------------------------------- | ||
68 | @@ -3107,6 +3116,9 @@ Installation options: | ||
69 | -hostdatadir <dir> . Data used by qmake will be installed to <dir> | ||
70 | (default HOSTPREFIX) | ||
71 | |||
72 | + -external-hostbindir <dir> Use external host executables instead of building them | ||
73 | + (not used by defaut) | ||
74 | + | ||
75 | Configure options: | ||
76 | |||
77 | The defaults (*) are usually acceptable. A plus (+) denotes a default value | ||
78 | @@ -3584,6 +3596,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { | ||
79 | "qt_hpfxpath=$QT_HOST_PREFIX", | ||
80 | "qt_hbinpath=$QT_HOST_BINS", | ||
81 | "qt_hdatpath=$QT_HOST_DATA", | ||
82 | + "qt_ebinpath=$QT_EXTERNAL_HOST_BINS", | ||
83 | "qt_targspec=$shortxspec", | ||
84 | "qt_hostspec=$shortspec", | ||
85 | #endif | ||
86 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf | ||
87 | index 8cd2473..876f657 100644 | ||
88 | --- a/mkspecs/features/qt_functions.prf | ||
89 | +++ b/mkspecs/features/qt_functions.prf | ||
90 | @@ -193,7 +193,10 @@ defineTest(qtAddRpathLink) { | ||
91 | defineTest(qtPrepareTool) { | ||
92 | $$1 = $$eval(QT_TOOL.$${2}.command) | ||
93 | isEmpty($$1) { | ||
94 | - $$1 = $$[QT_HOST_BINS]/$$2 | ||
95 | + $$1 = $$[QT_EXTERNAL_HOST_BINS]/$$2 | ||
96 | + isEmpty($$[QT_EXTERNAL_HOST_BINS]) { | ||
97 | + $$1 = $$[QT_HOST_BINS]/$$2 | ||
98 | + } | ||
99 | contains(QMAKE_HOST.os, Windows):!contains($$1, .*\\.(exe|bat)$) { | ||
100 | exists($$eval($$1).bat) { | ||
101 | $$1 = $$eval($$1).bat | ||
102 | diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf | ||
103 | index 9d50856..8a636c7 100644 | ||
104 | --- a/mkspecs/features/qt_tool.prf | ||
105 | +++ b/mkspecs/features/qt_tool.prf | ||
106 | @@ -31,7 +31,7 @@ load(qt_targets) | ||
107 | |||
108 | # If we are doing a prefix build, create a "module" pri which enables | ||
109 | # qtPrepareTool() to work with the non-installed build. | ||
110 | -!build_pass:force_independent { | ||
111 | +!build_pass:force_independent:isEmpty($$[QT_EXTERNAL_HOST_BINS]) { | ||
112 | |||
113 | isEmpty(MODULE):MODULE = $$TARGET | ||
114 | |||
115 | diff --git a/qmake/property.cpp b/qmake/property.cpp | ||
116 | index c4fbcd6..c1b7a9f 100644 | ||
117 | --- a/qmake/property.cpp | ||
118 | +++ b/qmake/property.cpp | ||
119 | @@ -74,6 +74,7 @@ static const struct { | ||
120 | { "QT_HOST_PREFIX", QLibraryInfo::HostPrefixPath, true }, | ||
121 | { "QT_HOST_DATA", QLibraryInfo::HostDataPath, true }, | ||
122 | { "QT_HOST_BINS", QLibraryInfo::HostBinariesPath, true }, | ||
123 | + { "QT_EXTERNAL_HOST_BINS", QLibraryInfo::ExternalHostBinariesPath, true }, | ||
124 | { "QMAKE_SPEC", QLibraryInfo::HostSpecPath, true }, | ||
125 | { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true }, | ||
126 | }; | ||
127 | diff --git a/qtbase.pro b/qtbase.pro | ||
128 | index 4c41cff..997ea6d 100644 | ||
129 | --- a/qtbase.pro | ||
130 | +++ b/qtbase.pro | ||
131 | @@ -68,17 +68,24 @@ CONFIG -= qt | ||
132 | |||
133 | #qmake | ||
134 | qmake.path = $$[QT_HOST_BINS] | ||
135 | +qmake.files = $$OUT_PWD/bin/qmake | ||
136 | +!isEmpty($$[QT_EXTERNAL_HOST_BINS]) { | ||
137 | + qmake.files = $$[QT_EXTERNAL_HOST_BINS]/bin/qmake | ||
138 | +} | ||
139 | equals(QMAKE_HOST.os, Windows) { | ||
140 | - qmake.files = $$OUT_PWD/bin/qmake.exe | ||
141 | -} else { | ||
142 | - qmake.files = $$OUT_PWD/bin/qmake | ||
143 | + qmake.files = $${qmake.files}.exe | ||
144 | } | ||
145 | INSTALLS += qmake | ||
146 | |||
147 | #syncqt | ||
148 | syncqt.path = $$[QT_HOST_BINS] | ||
149 | syncqt.files = $$PWD/bin/syncqt | ||
150 | -equals(QMAKE_HOST.os, Windows):syncqt.files += $$PWD/bin/syncqt.bat | ||
151 | +!isEmpty($$[QT_EXTERNAL_HOST_BINS]) { | ||
152 | + syncqt.files = $$[QT_EXTERNAL_HOST_BINS]/bin/syncqt | ||
153 | +} | ||
154 | +equals(QMAKE_HOST.os, Windows) { | ||
155 | + syncqt.files = $${syncqt.files}.bat | ||
156 | +} | ||
157 | INSTALLS += syncqt | ||
158 | |||
159 | # If we are doing a prefix build, create a "module" pri which enables | ||
160 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
161 | index 6b40731..139a60f 100644 | ||
162 | --- a/src/corelib/global/qlibraryinfo.cpp | ||
163 | +++ b/src/corelib/global/qlibraryinfo.cpp | ||
164 | @@ -270,7 +270,7 @@ QLibraryInfo::isDebugBuild() | ||
165 | */ | ||
166 | |||
167 | static const struct { | ||
168 | - char key[19], value[13]; | ||
169 | + char key[21], value[13]; | ||
170 | } qtConfEntries[] = { | ||
171 | { "Prefix", "." }, | ||
172 | { "Documentation", "doc" }, // should be ${Data}/doc | ||
173 | @@ -295,6 +295,7 @@ static const struct { | ||
174 | { "HostPrefix", "" }, | ||
175 | { "HostBinaries", "bin" }, | ||
176 | { "HostData", "." }, | ||
177 | + { "ExternalHostBinaries", "" }, | ||
178 | { "TargetSpec", "" }, | ||
179 | { "HostSpec", "" }, | ||
180 | #endif | ||
181 | diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h | ||
182 | index 054231b..37fe529 100644 | ||
183 | --- a/src/corelib/global/qlibraryinfo.h | ||
184 | +++ b/src/corelib/global/qlibraryinfo.h | ||
185 | @@ -85,6 +85,7 @@ public: | ||
186 | HostPrefixPath, | ||
187 | HostBinariesPath, | ||
188 | HostDataPath, | ||
189 | + ExternalHostBinariesPath, | ||
190 | TargetSpecPath, | ||
191 | HostSpecPath, | ||
192 | LastHostPath = HostSpecPath, | ||
193 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp | ||
194 | index 22ee456..cfc6f97 100644 | ||
195 | --- a/tools/configure/configureapp.cpp | ||
196 | +++ b/tools/configure/configureapp.cpp | ||
197 | @@ -1156,6 +1156,13 @@ void Configure::parseCmdLine() | ||
198 | dictionary[ "QT_HOST_DATA" ] = configCmdLine.at(i); | ||
199 | } | ||
200 | |||
201 | + else if (configCmdLine.at(i) == "-external-hostbindir") { | ||
202 | + ++i; | ||
203 | + if (i == argCount) | ||
204 | + break; | ||
205 | + dictionary[ "QT_EXTERNAL_HOST_BINS" ] = configCmdLine.at(i); | ||
206 | + } | ||
207 | + | ||
208 | else if (configCmdLine.at(i) == "-make-tool") { | ||
209 | ++i; | ||
210 | if (i == argCount) | ||
211 | @@ -3657,6 +3664,7 @@ void Configure::generateQConfigCpp() | ||
212 | << " \"qt_hpfxpath=" << formatPath(dictionary["QT_HOST_PREFIX"]) << "\"," << endl | ||
213 | << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl | ||
214 | << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl | ||
215 | + << " \"qt_ebinpath=" << formatPath(dictionary["QT_EXTERNAL_HOST_BINS"]) << "\"," << endl | ||
216 | << " \"qt_targspec=" << targSpec << "\"," << endl | ||
217 | << " \"qt_hostspec=" << hostSpec << "\"," << endl | ||
218 | << "#endif" << endl | ||
219 | -- | ||
220 | 1.8.3.2 | ||
221 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0004-qt_functions-temporary-remove-isEmpty-check.patch b/recipes-qt/qt5/qtbase-5.0.2/0004-qt_functions-temporary-remove-isEmpty-check.patch deleted file mode 100644 index cd0ca884..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0004-qt_functions-temporary-remove-isEmpty-check.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | From 2a3c7bb40de7ae8f060e69bdaa77522172101f00 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Wed, 17 Apr 2013 18:06:25 +0200 | ||
4 | Subject: [PATCH 04/22] qt_functions: temporary remove isEmpty check | ||
5 | |||
6 | * now we assume that every build will provide QT_EXTERNAL_HOST_BINS value | ||
7 | * isEmpty works correctly only with qmake variables (e.g. $$FOO - | ||
8 | isEmpty(FOO)), but doesn't work with system properties like $$[FOO]. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
13 | --- | ||
14 | mkspecs/features/qt_functions.prf | 6 +++++- | ||
15 | mkspecs/features/qt_tool.prf | 2 +- | ||
16 | 2 files changed, 6 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf | ||
19 | index 876f657..0e094a8 100644 | ||
20 | --- a/mkspecs/features/qt_functions.prf | ||
21 | +++ b/mkspecs/features/qt_functions.prf | ||
22 | @@ -194,7 +194,11 @@ defineTest(qtPrepareTool) { | ||
23 | $$1 = $$eval(QT_TOOL.$${2}.command) | ||
24 | isEmpty($$1) { | ||
25 | $$1 = $$[QT_EXTERNAL_HOST_BINS]/$$2 | ||
26 | - isEmpty($$[QT_EXTERNAL_HOST_BINS]) { | ||
27 | + # for some reason isEmpty does not work here, FIXME before submitting upstream | ||
28 | + # DEBUG 1: mkspecs/features/qt_functions.prf:198: calling built-in isEmpty(/OE/oe-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/qt5) | ||
29 | + # DEBUG 1: mkspecs/features/qt_functions.prf:198: test function returned true | ||
30 | + # DEBUG 1: mkspecs/features/qt_functions.prf:198: taking 'then' branch | ||
31 | + !exists($$[QT_EXTERNAL_HOST_BINS]/$$2) { | ||
32 | $$1 = $$[QT_HOST_BINS]/$$2 | ||
33 | } | ||
34 | contains(QMAKE_HOST.os, Windows):!contains($$1, .*\\.(exe|bat)$) { | ||
35 | diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf | ||
36 | index 8a636c7..0dad97c 100644 | ||
37 | --- a/mkspecs/features/qt_tool.prf | ||
38 | +++ b/mkspecs/features/qt_tool.prf | ||
39 | @@ -31,7 +31,7 @@ load(qt_targets) | ||
40 | |||
41 | # If we are doing a prefix build, create a "module" pri which enables | ||
42 | # qtPrepareTool() to work with the non-installed build. | ||
43 | -!build_pass:force_independent:isEmpty($$[QT_EXTERNAL_HOST_BINS]) { | ||
44 | +!build_pass:force_independent:!exists($$[QT_EXTERNAL_HOST_BINS]) { | ||
45 | |||
46 | isEmpty(MODULE):MODULE = $$TARGET | ||
47 | |||
48 | -- | ||
49 | 1.8.3.2 | ||
50 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0005-qmake-is-already-built-in-qtbase-native.patch b/recipes-qt/qt5/qtbase-5.0.2/0005-qmake-is-already-built-in-qtbase-native.patch deleted file mode 100644 index dd8abfa7..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0005-qmake-is-already-built-in-qtbase-native.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 7b37f7fa8c68c1807eeb45936154a42c34cda666 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 05/22] qmake is already built in qtbase-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 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | configure | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/configure b/configure | ||
16 | index 1ca5b4e..546bed2 100755 | ||
17 | --- a/configure | ||
18 | +++ b/configure | ||
19 | @@ -3667,7 +3667,7 @@ setBootstrapEvalVariable() | ||
20 | |||
21 | |||
22 | # build qmake | ||
23 | -if true; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
24 | +if false; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
25 | echo "Creating qmake..." | ||
26 | |||
27 | mkdir -p "$outpath/qmake" || exit | ||
28 | -- | ||
29 | 1.8.3.2 | ||
30 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0006-Allow-building-a-separate-qmake-for-the-target.patch b/recipes-qt/qt5/qtbase-5.0.2/0006-Allow-building-a-separate-qmake-for-the-target.patch deleted file mode 100644 index 43504c59..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0006-Allow-building-a-separate-qmake-for-the-target.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From 76537aca4118f5f7c336b7d17594c9644b6272b5 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 06/22] 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 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | qmake/qmake.pro | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/qmake/qmake.pro b/qmake/qmake.pro | ||
16 | index 0d92ac2..9be0e9b 100644 | ||
17 | --- a/qmake/qmake.pro | ||
18 | +++ b/qmake/qmake.pro | ||
19 | @@ -9,6 +9,7 @@ CONFIG -= qt shared app_bundle uic | ||
20 | DEFINES += QT_BUILD_QMAKE QT_BOOTSTRAPPED \ | ||
21 | PROEVALUATOR_FULL PROEVALUATOR_DEBUG | ||
22 | DESTDIR = ../bin/ | ||
23 | +TARGET = qmake | ||
24 | |||
25 | OBJECTS_DIR = . | ||
26 | MOC_DIR = . | ||
27 | -- | ||
28 | 1.8.3.2 | ||
29 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0007-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch b/recipes-qt/qt5/qtbase-5.0.2/0007-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch deleted file mode 100644 index 20e5e757..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0007-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From a1d0c7fb8fd689af7d3616ecf5d6aaf5ffd84bc9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sat, 27 Apr 2013 22:33:33 +0200 | ||
4 | Subject: [PATCH 07/22] configureapp: Prefix default LIBDIRS and INCDIRS with | ||
5 | SYSROOT | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
10 | --- | ||
11 | tools/configure/configureapp.cpp | 4 ++-- | ||
12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp | ||
15 | index cfc6f97..d0e17fa 100644 | ||
16 | --- a/tools/configure/configureapp.cpp | ||
17 | +++ b/tools/configure/configureapp.cpp | ||
18 | @@ -3087,8 +3087,8 @@ void Configure::generateQConfigPri() | ||
19 | configStream << "QT_HOST_CPU_FEATURES = " << dictionary["QT_HOST_CPU_FEATURES"] << endl; | ||
20 | if (dictionary.contains("XQMAKESPEC") && !dictionary["XQMAKESPEC"].startsWith("wince")) { | ||
21 | // FIXME: add detection | ||
22 | - configStream << "QMAKE_DEFAULT_LIBDIRS = /lib /usr/lib" << endl; | ||
23 | - configStream << "QMAKE_DEFAULT_INCDIRS = /usr/include /usr/local/include" << endl; | ||
24 | + configStream << "QMAKE_DEFAULT_LIBDIRS = $$[QT_SYSROOT]/lib $$[QT_SYSROOT]/usr/lib" << endl; | ||
25 | + configStream << "QMAKE_DEFAULT_INCDIRS = $$[QT_SYSROOT]/usr/include $$[QT_SYSROOT]/usr/local/include" << endl; | ||
26 | } | ||
27 | if (dictionary["QT_EDITION"].contains("OPENSOURCE")) | ||
28 | configStream << "QT_EDITION = " << QLatin1String("OpenSource") << endl; | ||
29 | -- | ||
30 | 1.8.3.2 | ||
31 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0008-qt_module-Fix-pkgconfig-replacement.patch b/recipes-qt/qt5/qtbase-5.0.2/0008-qt_module-Fix-pkgconfig-replacement.patch deleted file mode 100644 index 83da0d23..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0008-qt_module-Fix-pkgconfig-replacement.patch +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | From 8a97079c1b17f27256a4a816e5cc85344c29ac6f Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sat, 27 Apr 2013 23:15:37 +0200 | ||
4 | Subject: [PATCH 08/22] qt_module: Fix pkgconfig replacement | ||
5 | |||
6 | * in situation like this: | ||
7 | QT_SYSROOT:/OE/oe-core/tmp-eglibc/sysroots/qemuarm | ||
8 | QT_INSTALL_LIBS:/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/lib | ||
9 | QT_INSTALL_LIBS/raw:/usr/lib | ||
10 | QT_INSTALL_LIBS/get:/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib | ||
11 | |||
12 | I don't want the replacement like this: | ||
13 | sed | ||
14 | -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/include,/usr/include/qt5,g" | ||
15 | -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib,/usr/lib,g" | ||
16 | "../../lib/pkgconfig/Qt5Core.pc" | ||
17 | >"/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/image/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/lib/pkgconfig/Qt5Core.pc" | ||
18 | because that way I'll end with -L/usr/lib in .pc file which is | ||
19 | cross-compile unfriendly, keeping ${libdir}/${includedir} works better | ||
20 | in my case | ||
21 | |||
22 | Upstream-Status: Pending | ||
23 | |||
24 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
25 | --- | ||
26 | mkspecs/features/qt_module.prf | 16 ++++++++++++++-- | ||
27 | 1 file changed, 14 insertions(+), 2 deletions(-) | ||
28 | |||
29 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf | ||
30 | index 1132943..7fbfd8d 100644 | ||
31 | --- a/mkspecs/features/qt_module.prf | ||
32 | +++ b/mkspecs/features/qt_module.prf | ||
33 | @@ -128,18 +128,30 @@ unix|win32-g++* { | ||
34 | rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]* | ||
35 | else: \ | ||
36 | rplbase = $$MODULE_BASE_OUTDIR | ||
37 | + pkgconfig_include_replace.match = $$rplbase/include | ||
38 | + pkgconfig_include_replace.replace = "\$$\\{includedir}" | ||
39 | + pkgconfig_lib_replace.match = $$rplbase/lib | ||
40 | + pkgconfig_lib_replace.replace = "\$$\\{libdir}" | ||
41 | include_replace.match = $$rplbase/include | ||
42 | include_replace.replace = $$[QT_INSTALL_HEADERS/raw] | ||
43 | lib_replace.match = $$rplbase/lib | ||
44 | lib_replace.replace = $$[QT_INSTALL_LIBS/raw] | ||
45 | - QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace | ||
46 | + lafile_replace.match = $$rplbase | ||
47 | + lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]" | ||
48 | + | ||
49 | + !isEmpty(SYSROOT): \ | ||
50 | + rplbase = $$[SYSROOT] \ | ||
51 | + lafile_replace.match = $$rplbase \ | ||
52 | + lafile_replace.replace = "=" \ | ||
53 | + | ||
54 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace pkgconfig_lib_replace | ||
55 | QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace | ||
56 | } | ||
57 | |||
58 | unix { | ||
59 | CONFIG += create_libtool explicitlib | ||
60 | QMAKE_LIBTOOL_LIBDIR = $$[QT_INSTALL_LIBS/raw] | ||
61 | - QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace | ||
62 | + QMAKE_LIBTOOL_INSTALL_REPLACE += lafile_replace | ||
63 | } | ||
64 | |||
65 | unix|win32-g++* { | ||
66 | -- | ||
67 | 1.8.3.2 | ||
68 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0009-qt_module-Fix-paths-in-.prl-files.patch b/recipes-qt/qt5/qtbase-5.0.2/0009-qt_module-Fix-paths-in-.prl-files.patch deleted file mode 100644 index 5687e8f1..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0009-qt_module-Fix-paths-in-.prl-files.patch +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | From a70d48880e27586efe5f6aa195385207abf3cead Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sun, 28 Apr 2013 12:56:55 +0200 | ||
4 | Subject: [PATCH 09/22] qt_module: Fix paths in .prl files | ||
5 | |||
6 | * qmake does not prefix them with QT_SYSROOT when using them | ||
7 | so e.g. when building qtdeclarative we get -L/usr/lib to LINKAGE | ||
8 | variable, which is unsafe for cross-compilation | ||
9 | * writting QT_SYSROOT in .prl files is dangerous for sstate when | ||
10 | builds are in different directories, so we need | ||
11 | SSTATE_SCAN_FILES += "*.pri *.prl" | ||
12 | to make them relocateble | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
17 | --- | ||
18 | mkspecs/features/qt_module.prf | 28 +++++++++++++++++----------- | ||
19 | 1 file changed, 17 insertions(+), 11 deletions(-) | ||
20 | |||
21 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf | ||
22 | index 7fbfd8d..226119f 100644 | ||
23 | --- a/mkspecs/features/qt_module.prf | ||
24 | +++ b/mkspecs/features/qt_module.prf | ||
25 | @@ -132,17 +132,23 @@ unix|win32-g++* { | ||
26 | pkgconfig_include_replace.replace = "\$$\\{includedir}" | ||
27 | pkgconfig_lib_replace.match = $$rplbase/lib | ||
28 | pkgconfig_lib_replace.replace = "\$$\\{libdir}" | ||
29 | - include_replace.match = $$rplbase/include | ||
30 | - include_replace.replace = $$[QT_INSTALL_HEADERS/raw] | ||
31 | - lib_replace.match = $$rplbase/lib | ||
32 | - lib_replace.replace = $$[QT_INSTALL_LIBS/raw] | ||
33 | - lafile_replace.match = $$rplbase | ||
34 | - lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]" | ||
35 | - | ||
36 | - !isEmpty(SYSROOT): \ | ||
37 | - rplbase = $$[SYSROOT] \ | ||
38 | - lafile_replace.match = $$rplbase \ | ||
39 | - lafile_replace.replace = "=" \ | ||
40 | + !exists($$[QT_SYSROOT]) { | ||
41 | + include_replace.match = $$rplbase/include | ||
42 | + include_replace.replace = $$[QT_INSTALL_HEADERS/raw] | ||
43 | + lib_replace.match = $$rplbase/lib | ||
44 | + lib_replace.replace = $$[QT_INSTALL_LIBS/raw] | ||
45 | + lafile_replace.match = $$rplbase | ||
46 | + lafile_replace.replace = "$$[QT_INSTALL_PREFIX/raw]" | ||
47 | + } else { | ||
48 | + # include_replace and lib_replace are duplicate, but we don't want to | ||
49 | + # make QMAKE_PKGCONFIG_INSTALL_REPLACE, QMAKE_PRL_INSTALL_REPLACE conditional | ||
50 | + include_replace.match = $$rplbase | ||
51 | + include_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw] | ||
52 | + lib_replace.match = $$rplbase | ||
53 | + lib_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw] | ||
54 | + lafile_replace.match = $$rplbase | ||
55 | + lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]" | ||
56 | + } | ||
57 | |||
58 | QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace pkgconfig_lib_replace | ||
59 | QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace | ||
60 | -- | ||
61 | 1.8.3.2 | ||
62 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0010-wayland-scanner-disable-silent-rules.patch b/recipes-qt/qt5/qtbase-5.0.2/0010-wayland-scanner-disable-silent-rules.patch deleted file mode 100644 index f5b53385..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0010-wayland-scanner-disable-silent-rules.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 505bbe468956de2fdf2f27e8905582fe438d3b35 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sun, 5 May 2013 11:18:34 +0200 | ||
4 | Subject: [PATCH 10/22] wayland-scanner: disable silent rules | ||
5 | |||
6 | * for some reason "$$qtwayland-server-header.commands" on second line gets expanded as -server-header.commands | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | mkspecs/features/wayland-scanner.prf | 6 +++--- | ||
13 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/mkspecs/features/wayland-scanner.prf b/mkspecs/features/wayland-scanner.prf | ||
16 | index 90e1e0f..0750849 100644 | ||
17 | --- a/mkspecs/features/wayland-scanner.prf | ||
18 | +++ b/mkspecs/features/wayland-scanner.prf | ||
19 | @@ -10,7 +10,7 @@ wayland-server-header.variable_out = HEADERS | ||
20 | wayland-server-header.output = wayland-${QMAKE_FILE_BASE}-server-protocol$${first(QMAKE_EXT_H)} | ||
21 | wayland-server-header.commands = $$QMAKE_WAYLAND_SCANNER server-header < ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT} | ||
22 | |||
23 | -silent:wayland-server-header.commands = @echo Wayland server header ${QMAKE_FILE_IN} && $$wayland-server-header.commands | ||
24 | +#silent:wayland-server-header.commands = @echo Wayland server header ${QMAKE_FILE_IN} && $$wayland-server-header.commands | ||
25 | QMAKE_EXTRA_COMPILERS += wayland-server-header | ||
26 | |||
27 | wayland-client-header.name = wayland ${QMAKE_FILE_BASE} | ||
28 | @@ -19,7 +19,7 @@ wayland-client-header.variable_out = HEADERS | ||
29 | wayland-client-header.output = wayland-${QMAKE_FILE_BASE}-client-protocol$${first(QMAKE_EXT_H)} | ||
30 | wayland-client-header.commands = $$QMAKE_WAYLAND_SCANNER client-header < ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT} | ||
31 | |||
32 | -silent:wayland-client-header.commands = @echo Wayland client header ${QMAKE_FILE_IN} && $$wayland-client-header.commands | ||
33 | +#silent:wayland-client-header.commands = @echo Wayland client header ${QMAKE_FILE_IN} && $$wayland-client-header.commands | ||
34 | QMAKE_EXTRA_COMPILERS += wayland-client-header | ||
35 | |||
36 | wayland-code.name = wayland ${QMAKE_FILE_BASE} | ||
37 | @@ -28,5 +28,5 @@ wayland-code.variable_out = SOURCES | ||
38 | wayland-code.output = wayland-${QMAKE_FILE_BASE}-protocol.c | ||
39 | wayland-code.commands = $$QMAKE_WAYLAND_SCANNER code < ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT} | ||
40 | |||
41 | -silent:wayland-code.commands = @echo Wayland code header ${QMAKE_FILE_IN} && $$wayland-code.commands | ||
42 | +#silent:wayland-code.commands = @echo Wayland code header ${QMAKE_FILE_IN} && $$wayland-code.commands | ||
43 | QMAKE_EXTRA_COMPILERS += wayland-code | ||
44 | -- | ||
45 | 1.8.3.2 | ||
46 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0011-configure-don-t-export-SYSTEM_VARIABLES-to-.qmake.va.patch b/recipes-qt/qt5/qtbase-5.0.2/0011-configure-don-t-export-SYSTEM_VARIABLES-to-.qmake.va.patch deleted file mode 100644 index a5e6a6ef..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0011-configure-don-t-export-SYSTEM_VARIABLES-to-.qmake.va.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From a2439736a0efb80aea1746b0aada551ff63ad7e6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Wed, 8 May 2013 23:54:35 +0200 | ||
4 | Subject: [PATCH 11/22] configure: don't export SYSTEM_VARIABLES to .qmake.vars | ||
5 | |||
6 | * linux-oe-g++ should handle this correctly and exporting LD as QMAKE_LINK is | ||
7 | causing issues as we need g++ to be used as linker | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | configure | 15 +-------------- | ||
14 | 1 file changed, 1 insertion(+), 14 deletions(-) | ||
15 | |||
16 | diff --git a/configure b/configure | ||
17 | index 546bed2..34074ee 100755 | ||
18 | --- a/configure | ||
19 | +++ b/configure | ||
20 | @@ -740,20 +740,7 @@ fi'` | ||
21 | done | ||
22 | |||
23 | SYSTEM_VARIABLES="RANLIB STRIP OBJDUMP LD CC CXX CFLAGS CXXFLAGS LDFLAGS" | ||
24 | -for varname in $SYSTEM_VARIABLES; do | ||
25 | - qmakevarname="${varname}" | ||
26 | - # use LDFLAGS for autoconf compat, but qmake uses QMAKE_LFLAGS | ||
27 | - if [ "${varname}" = "LDFLAGS" ]; then | ||
28 | - qmakevarname="LFLAGS" | ||
29 | - elif [ "${varname}" = "LD" ]; then | ||
30 | - qmakevarname="LINK" | ||
31 | - fi | ||
32 | - cmd=`echo \ | ||
33 | -'if [ -n "\$'${varname}'" ]; then | ||
34 | - QMakeVar set QMAKE_'${qmakevarname}' "\$'${varname}'" | ||
35 | -fi'` | ||
36 | - eval "$cmd" | ||
37 | -done | ||
38 | + | ||
39 | # Use CC/CXX to run config.tests | ||
40 | mkdir -p "$outpath/config.tests" | ||
41 | rm -f "$outpath/config.tests/.qmake.cache" | ||
42 | -- | ||
43 | 1.8.3.2 | ||
44 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0012-configure.prf-Allow-to-add-extra-arguments-to-make.patch b/recipes-qt/qt5/qtbase-5.0.2/0012-configure.prf-Allow-to-add-extra-arguments-to-make.patch deleted file mode 100644 index 60d4a5cc..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0012-configure.prf-Allow-to-add-extra-arguments-to-make.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From dd7756dd5a3c3eb677c3bacce257c1c8bbf03098 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Thu, 9 May 2013 10:06:50 +0200 | ||
4 | Subject: [PATCH 12/22] configure.prf: Allow to add extra arguments to make | ||
5 | |||
6 | * sometimes we would like to add -e or define some variable and respect it from both | ||
7 | Makefiles used in configure tests and also Makefiles to build the application | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | mkspecs/features/configure.prf | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf | ||
17 | index 39144e7..de48b07 100644 | ||
18 | --- a/mkspecs/features/configure.prf | ||
19 | +++ b/mkspecs/features/configure.prf | ||
20 | @@ -54,12 +54,12 @@ defineTest(qtCompileTest) { | ||
21 | qmake_configs = "\"CONFIG -= qt debug_and_release app_bundle lib_bundle\"" | ||
22 | |||
23 | # Clean up after previous run | ||
24 | - exists($$test_out_dir/Makefile):qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE distclean") | ||
25 | + exists($$test_out_dir/Makefile):qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE $$(QMAKE_MAKE_ARGS) distclean") | ||
26 | |||
27 | mkpath($$test_out_dir)|error("Aborting.") | ||
28 | |||
29 | qtRunLoggedCommand("$$test_cmd_base $$system_quote($$system_path($$QMAKE_QMAKE)) $$qmake_configs $$shell_quote($$test_dir)") { | ||
30 | - qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE") { | ||
31 | + qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE $$(QMAKE_MAKE_ARGS)") { | ||
32 | log("yes$$escape_expand(\\n)") | ||
33 | msg = "test $$1 succeeded" | ||
34 | write_file($$QMAKE_CONFIG_LOG, msg, append) | ||
35 | -- | ||
36 | 1.8.3.2 | ||
37 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0013-Disable-mkv8snapshot.patch b/recipes-qt/qt5/qtbase-5.0.2/0013-Disable-mkv8snapshot.patch deleted file mode 100644 index 7f4d47e7..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0013-Disable-mkv8snapshot.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 78b716520396b5317a8b91dbca183483bea8b1d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Tue, 8 Jan 2013 15:58:29 -0800 | ||
4 | Subject: [PATCH 13/22] Disable mkv8snapshot | ||
5 | |||
6 | It seems to generate code that throws SIGILL, so disabling it | ||
7 | |||
8 | Program received signal SIGILL, Illegal instruction. | ||
9 | 0x26312c60 in ?? () | ||
10 | (gdb) bt | ||
11 | function=..., receiver=..., argc=1978934572, args=0x7efff254, | ||
12 | has_pending_exception=0x7efff277, qml=...) | ||
13 | at ../3rdparty/v8/src/execution.cc:125 | ||
14 | argc=1, argv=0x7efff254, pending_exception=0x7efff277, | ||
15 | convert_receiver=false, qml=...) at ../3rdparty/v8/src/execution.cc:194 | ||
16 | receiver=<optimized out>, argc=<optimized out>, argv=<optimized out>, | ||
17 | pending_exception=0x7efff277, convert_receiver=false) | ||
18 | at ../3rdparty/v8/src/execution.cc:161 | ||
19 | data=<optimized out>, exc=0x7efff277) | ||
20 | at ../3rdparty/v8/src/execution.cc:734 | ||
21 | at ../3rdparty/v8/src/api.cc:4742 | ||
22 | at qml/v8/qv8contextwrapper.cpp:155 | ||
23 | ownership=<optimized out>) at qml/v8/qv8engine.cpp:155 | ||
24 | parent=<optimized out>) at qml/v8/qjsengine.cpp:192 | ||
25 | |||
26 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
27 | --- | ||
28 | configure | 2 +- | ||
29 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
30 | |||
31 | diff --git a/configure b/configure | ||
32 | index 34074ee..ac09bbf 100755 | ||
33 | --- a/configure | ||
34 | +++ b/configure | ||
35 | @@ -799,7 +799,7 @@ CFG_NOBUILD_PARTS="" | ||
36 | CFG_SKIP_MODULES="" | ||
37 | CFG_RELEASE_QMAKE=no | ||
38 | CFG_AUDIO_BACKEND=auto | ||
39 | -CFG_V8SNAPSHOT=auto | ||
40 | +CFG_V8SNAPSHOT=no | ||
41 | CFG_QML_DEBUG=yes | ||
42 | CFG_JAVASCRIPTCORE_JIT=auto | ||
43 | CFG_PKGCONFIG=auto | ||
44 | -- | ||
45 | 1.8.3.2 | ||
46 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch b/recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch deleted file mode 100644 index d407deb4..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From f8336efd143109c3478e5548360248f99b645548 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Mon, 27 May 2013 18:32:37 +0200 | ||
4 | Subject: [PATCH 14/22] enables tslib device to be read from env variable | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | from : | ||
10 | https://github.com/prabindh/qt-configs/blob/master/qt5_1.0_Feb13/tslib.patch | ||
11 | |||
12 | Signed-off-by: Eric Bénard <eric@eukrea.com> | ||
13 | --- | ||
14 | src/plugins/generic/tslib/qtslib.cpp | 4 +++- | ||
15 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/plugins/generic/tslib/qtslib.cpp b/src/plugins/generic/tslib/qtslib.cpp | ||
18 | index 6986fd5..2ed4a69 100644 | ||
19 | --- a/src/plugins/generic/tslib/qtslib.cpp | ||
20 | +++ b/src/plugins/generic/tslib/qtslib.cpp | ||
21 | @@ -64,7 +64,9 @@ QTsLibMouseHandler::QTsLibMouseHandler(const QString &key, | ||
22 | qDebug() << "QTsLibMouseHandler" << key << specification; | ||
23 | setObjectName(QLatin1String("TSLib Mouse Handler")); | ||
24 | |||
25 | - QByteArray device = "/dev/input/event1"; | ||
26 | + QByteArray device = qgetenv("TSLIB_TSDEVICE"); | ||
27 | + if(device.isEmpty()) | ||
28 | + device = "/dev/input/event1"; | ||
29 | if (specification.startsWith("/dev/")) | ||
30 | device = specification.toLocal8Bit(); | ||
31 | |||
32 | -- | ||
33 | 1.8.3.2 | ||
34 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0015-qtbase-allow-build-of-examples.patch b/recipes-qt/qt5/qtbase-5.0.2/0015-qtbase-allow-build-of-examples.patch deleted file mode 100644 index d824eed1..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0015-qtbase-allow-build-of-examples.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From a21c676a69388cd8cdf0bb28184de2bee58def0e Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Sat, 25 May 2013 17:34:32 +0200 | ||
4 | Subject: [PATCH 15/22] qtbase: allow build of examples | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | this revert the following commit : | ||
10 | |||
11 | commit 2b397f985e4ef6ae5c0571a928bb1320fb048c61 | ||
12 | Author: Oswald Buddenhagen <oswald.buddenhagen@digia.com> | ||
13 | Date: Fri Dec 21 19:36:12 2012 +0100 | ||
14 | |||
15 | do not actually build examples in production builds | ||
16 | |||
17 | -developer-build enables an actual build of examples, based on the | ||
18 | assumption that developers want to test it (it can be still disabled | ||
19 | with -nomake examples). regular users otoh want only the examples | ||
20 | sources installed. | ||
21 | |||
22 | Change-Id: Ifc6a108099929175a3960480802b271a758fdd38 | ||
23 | Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> | ||
24 | |||
25 | Signed-off-by: Eric Bénard <eric@eukrea.com> | ||
26 | --- | ||
27 | mkspecs/features/qt_example_installs.prf | 8 -------- | ||
28 | 1 file changed, 8 deletions(-) | ||
29 | |||
30 | diff --git a/mkspecs/features/qt_example_installs.prf b/mkspecs/features/qt_example_installs.prf | ||
31 | index 479a16a..ca1b0c7 100644 | ||
32 | --- a/mkspecs/features/qt_example_installs.prf | ||
33 | +++ b/mkspecs/features/qt_example_installs.prf | ||
34 | @@ -92,12 +92,4 @@ probase = $$relative_path($$_PRO_FILE_PWD_, $$dirname(_QMAKE_CONF_)/examples) | ||
35 | allfiles -= doc | ||
36 | !isEmpty(allfiles): warning("remaining files in $$_PRO_FILE_PWD_: $$allfiles") | ||
37 | } | ||
38 | - | ||
39 | - # Do not actually build the examples in production builds with -prefix | ||
40 | - !equals(TEMPLATE, subdirs):prefix_build:!contains(QT_CONFIG, private_tests) { | ||
41 | - TEMPLATE = aux | ||
42 | - CONFIG -= have_target qt staticlib dll | ||
43 | - SOURCES = | ||
44 | - INSTALLS -= target | ||
45 | - } | ||
46 | } | ||
47 | -- | ||
48 | 1.8.3.2 | ||
49 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0016-Allow-tslib-to-be-specified-at-configure-time.patch b/recipes-qt/qt5/qtbase-5.0.2/0016-Allow-tslib-to-be-specified-at-configure-time.patch deleted file mode 100644 index 882d7de5..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0016-Allow-tslib-to-be-specified-at-configure-time.patch +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | From 665841d6c38faecbf7848c0f4bbf3b0537b6a0a1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Brasser <michael.brasser@live.com> | ||
3 | Date: Tue, 26 Mar 2013 09:22:51 -0500 | ||
4 | Subject: [PATCH 16/22] Allow tslib to be specified at configure time. | ||
5 | |||
6 | Change-Id: I0ebf0eeea7e6a0b8136fb805f34f04082bc58c5e | ||
7 | Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> | ||
8 | --- | ||
9 | configure | 20 ++++++++++++++++++++ | ||
10 | src/plugins/generic/generic.pro | 4 ++++ | ||
11 | 2 files changed, 24 insertions(+) | ||
12 | |||
13 | diff --git a/configure b/configure | ||
14 | index ac09bbf..188e941 100755 | ||
15 | --- a/configure | ||
16 | +++ b/configure | ||
17 | @@ -829,6 +829,7 @@ CFG_KMS=auto | ||
18 | CFG_LIBUDEV=auto | ||
19 | CFG_OBSOLETE_WAYLAND=no | ||
20 | CFG_EVDEV=auto | ||
21 | +CFG_TSLIB=no | ||
22 | CFG_NIS=auto | ||
23 | CFG_CUPS=auto | ||
24 | CFG_ICONV=auto | ||
25 | @@ -1805,6 +1806,13 @@ while [ "$#" -gt 0 ]; do | ||
26 | UNKNOWN_OPT=yes | ||
27 | fi | ||
28 | ;; | ||
29 | + tslib) | ||
30 | + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
31 | + CFG_TSLIB="$VAL" | ||
32 | + else | ||
33 | + UNKNOWN_OPT=yes | ||
34 | + fi | ||
35 | + ;; | ||
36 | cups) | ||
37 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
38 | CFG_CUPS="$VAL" | ||
39 | @@ -4815,6 +4823,18 @@ if [ "$CFG_EVDEV" = "no" ]; then | ||
40 | QMakeVar add DEFINES QT_NO_EVDEV | ||
41 | fi | ||
42 | |||
43 | +if [ "$CFG_TSLIB" != "no" ]; then | ||
44 | + if compileTest unix/tslib "tslib"; then | ||
45 | + CFG_TSLIB=yes | ||
46 | + QT_CONFIG="$QT_CONFIG tslib" | ||
47 | + elif [ "$CFG_TSLIB" = "yes" ]; then | ||
48 | + echo "The tslib functionality test failed!" | ||
49 | + exit 1 | ||
50 | + else | ||
51 | + CFG_TSLIB=no | ||
52 | + fi | ||
53 | +fi | ||
54 | + | ||
55 | # Check we actually have X11 :-) | ||
56 | if compileTest x11/xlib "XLib"; then | ||
57 | QT_CONFIG="$QT_CONFIG xlib" | ||
58 | diff --git a/src/plugins/generic/generic.pro b/src/plugins/generic/generic.pro | ||
59 | index 078db2f..18a8295 100644 | ||
60 | --- a/src/plugins/generic/generic.pro | ||
61 | +++ b/src/plugins/generic/generic.pro | ||
62 | @@ -5,3 +5,7 @@ TEMPLATE = subdirs | ||
63 | contains(QT_CONFIG, evdev) { | ||
64 | SUBDIRS += evdevmouse evdevtouch evdevkeyboard evdevtablet | ||
65 | } | ||
66 | + | ||
67 | +contains(QT_CONFIG, tslib) { | ||
68 | + SUBDIRS += tslib | ||
69 | +} | ||
70 | -- | ||
71 | 1.8.3.2 | ||
72 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0017-Rename-qAbs-Function-for-timeval.patch b/recipes-qt/qt5/qtbase-5.0.2/0017-Rename-qAbs-Function-for-timeval.patch deleted file mode 100644 index 78a6b48a..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0017-Rename-qAbs-Function-for-timeval.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From 126d2c4beff40bc51a1912a752b23c178eac59b5 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= <david.narvaez@computer.org> | ||
3 | Date: Sat, 23 Feb 2013 23:14:50 -0500 | ||
4 | Subject: [PATCH 17/22] Rename qAbs Function for timeval | ||
5 | |||
6 | This decouples it from qAbs which is declared as a constexpr under | ||
7 | certain compilation flags and enables for qtbase to be compiled with | ||
8 | GCC 4.8 | ||
9 | |||
10 | Change-Id: I78e02256ffc8b460ca74ae5241e77dfac4e09ba9 | ||
11 | Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> | ||
12 | |||
13 | Upstream-Status: Backported from stable branch | ||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | --- | ||
16 | src/corelib/kernel/qtimerinfo_unix.cpp | 5 ++--- | ||
17 | 1 file changed, 2 insertions(+), 3 deletions(-) | ||
18 | |||
19 | diff --git a/src/corelib/kernel/qtimerinfo_unix.cpp b/src/corelib/kernel/qtimerinfo_unix.cpp | ||
20 | index 0eee425..7a29247 100644 | ||
21 | --- a/src/corelib/kernel/qtimerinfo_unix.cpp | ||
22 | +++ b/src/corelib/kernel/qtimerinfo_unix.cpp | ||
23 | @@ -94,8 +94,7 @@ timeval QTimerInfoList::updateCurrentTime() | ||
24 | |||
25 | #if ((_POSIX_MONOTONIC_CLOCK-0 <= 0) && !defined(Q_OS_MAC) && !defined(Q_OS_INTEGRITY)) || defined(QT_BOOTSTRAPPED) | ||
26 | |||
27 | -template <> | ||
28 | -timeval qAbs(const timeval &t) | ||
29 | +timeval qAbsTimeval(const timeval &t) | ||
30 | { | ||
31 | timeval tmp = t; | ||
32 | if (tmp.tv_sec < 0) { | ||
33 | @@ -144,7 +143,7 @@ bool QTimerInfoList::timeChanged(timeval *delta) | ||
34 | timeval tickGranularity; | ||
35 | tickGranularity.tv_sec = 0; | ||
36 | tickGranularity.tv_usec = msPerTick * 1000; | ||
37 | - return elapsedTimeTicks < ((qAbs(*delta) - tickGranularity) * 10); | ||
38 | + return elapsedTimeTicks < ((qAbsTimeval(*delta) - tickGranularity) * 10); | ||
39 | } | ||
40 | |||
41 | /* | ||
42 | -- | ||
43 | 1.8.3.2 | ||
44 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0018-QOpenGLPaintDevice-sub-area-support.patch b/recipes-qt/qt5/qtbase-5.0.2/0018-QOpenGLPaintDevice-sub-area-support.patch deleted file mode 100644 index cbf4aed1..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0018-QOpenGLPaintDevice-sub-area-support.patch +++ /dev/null | |||
@@ -1,152 +0,0 @@ | |||
1 | From c2c17a3198c85366f34b24abc80b20f27307d751 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jani Hautakangas <jani.hautakangas@ixonos.com> | ||
3 | Date: Thu, 16 May 2013 09:52:07 +0300 | ||
4 | Subject: [PATCH 18/22] QOpenGLPaintDevice sub-area support | ||
5 | |||
6 | Allows creating QOpenGLPaintDevice targetting sub-area | ||
7 | of binded framebuffer. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Change-Id: Ida2f079aa1ac0b87d36b54129e226399dbcdda80 | ||
12 | --- | ||
13 | src/gui/opengl/qopenglpaintdevice.cpp | 12 ++++++++++++ | ||
14 | src/gui/opengl/qopenglpaintdevice.h | 2 ++ | ||
15 | src/gui/opengl/qopenglpaintengine.cpp | 10 +++++++--- | ||
16 | src/gui/opengl/qopenglpaintengine_p.h | 1 + | ||
17 | src/gui/opengl/qopengltextureglyphcache.cpp | 2 +- | ||
18 | 5 files changed, 23 insertions(+), 4 deletions(-) | ||
19 | |||
20 | diff --git a/src/gui/opengl/qopenglpaintdevice.cpp b/src/gui/opengl/qopenglpaintdevice.cpp | ||
21 | index 0b3d9dc..5f4f1c9 100644 | ||
22 | --- a/src/gui/opengl/qopenglpaintdevice.cpp | ||
23 | +++ b/src/gui/opengl/qopenglpaintdevice.cpp | ||
24 | @@ -111,6 +111,7 @@ class QOpenGLPaintDevicePrivate | ||
25 | public: | ||
26 | QOpenGLPaintDevicePrivate(const QSize &size); | ||
27 | |||
28 | + QPoint offset; | ||
29 | QSize size; | ||
30 | QOpenGLContext *ctx; | ||
31 | |||
32 | @@ -158,6 +159,12 @@ QOpenGLPaintDevice::QOpenGLPaintDevice(int width, int height) | ||
33 | { | ||
34 | } | ||
35 | |||
36 | +QOpenGLPaintDevice::QOpenGLPaintDevice(int x, int y, int width, int height) | ||
37 | + : d_ptr(new QOpenGLPaintDevicePrivate(QSize(width, height))) | ||
38 | +{ | ||
39 | + d_ptr->offset = QPoint(x,y); | ||
40 | +} | ||
41 | + | ||
42 | /*! | ||
43 | Destroys the QOpenGLPaintDevice. | ||
44 | */ | ||
45 | @@ -226,6 +233,11 @@ QOpenGLContext *QOpenGLPaintDevice::context() const | ||
46 | return d_ptr->ctx; | ||
47 | } | ||
48 | |||
49 | +QPoint QOpenGLPaintDevice::offset() const | ||
50 | +{ | ||
51 | + return d_ptr->offset; | ||
52 | +} | ||
53 | + | ||
54 | /*! | ||
55 | Returns the pixel size of the paint device. | ||
56 | |||
57 | diff --git a/src/gui/opengl/qopenglpaintdevice.h b/src/gui/opengl/qopenglpaintdevice.h | ||
58 | index 66850c7..6f8a849 100644 | ||
59 | --- a/src/gui/opengl/qopenglpaintdevice.h | ||
60 | +++ b/src/gui/opengl/qopenglpaintdevice.h | ||
61 | @@ -62,12 +62,14 @@ public: | ||
62 | QOpenGLPaintDevice(); | ||
63 | explicit QOpenGLPaintDevice(const QSize &size); | ||
64 | QOpenGLPaintDevice(int width, int height); | ||
65 | + QOpenGLPaintDevice(int x, int y, int width, int height); | ||
66 | virtual ~QOpenGLPaintDevice(); | ||
67 | |||
68 | int devType() const { return QInternal::OpenGL; } | ||
69 | QPaintEngine *paintEngine() const; | ||
70 | |||
71 | QOpenGLContext *context() const; | ||
72 | + QPoint offset() const; | ||
73 | QSize size() const; | ||
74 | void setSize(const QSize &size); | ||
75 | |||
76 | diff --git a/src/gui/opengl/qopenglpaintengine.cpp b/src/gui/opengl/qopenglpaintengine.cpp | ||
77 | index 9fd8a7a..df29159 100644 | ||
78 | --- a/src/gui/opengl/qopenglpaintengine.cpp | ||
79 | +++ b/src/gui/opengl/qopenglpaintengine.cpp | ||
80 | @@ -1935,7 +1935,10 @@ bool QOpenGL2PaintEngineEx::begin(QPaintDevice *pdev) | ||
81 | for (int i = 0; i < QT_GL_VERTEX_ARRAY_TRACKED_COUNT; ++i) | ||
82 | d->vertexAttributeArraysEnabledState[i] = false; | ||
83 | |||
84 | + const QPoint offset = d->device->offset(); | ||
85 | const QSize sz = d->device->size(); | ||
86 | + d->x = offset.x(); | ||
87 | + d->y = offset.y(); | ||
88 | d->width = sz.width(); | ||
89 | d->height = sz.height(); | ||
90 | d->mode = BrushDrawingMode; | ||
91 | @@ -2023,7 +2026,7 @@ void QOpenGL2PaintEngineEx::ensureActive() | ||
92 | d->device->ensureActiveTarget(); | ||
93 | |||
94 | d->transferMode(BrushDrawingMode); | ||
95 | - glViewport(0, 0, d->width, d->height); | ||
96 | + glViewport(d->x, d->y, d->width, d->height); | ||
97 | d->needsSync = false; | ||
98 | d->lastMaskTextureUsed = 0; | ||
99 | d->shaderManager->setDirty(); | ||
100 | @@ -2066,6 +2069,7 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() | ||
101 | if (bounds == QRect(0, 0, width, height)) { | ||
102 | glDisable(GL_SCISSOR_TEST); | ||
103 | } else { | ||
104 | + bounds = QRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()); | ||
105 | glEnable(GL_SCISSOR_TEST); | ||
106 | setScissor(bounds); | ||
107 | } | ||
108 | @@ -2074,14 +2078,14 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() | ||
109 | |||
110 | void QOpenGL2PaintEngineExPrivate::setScissor(const QRect &rect) | ||
111 | { | ||
112 | - const int left = rect.left(); | ||
113 | + const int left = rect.left() + x; | ||
114 | const int width = rect.width(); | ||
115 | int bottom = height - (rect.top() + rect.height()); | ||
116 | if (device->paintFlipped()) { | ||
117 | bottom = rect.top(); | ||
118 | } | ||
119 | + bottom += y; | ||
120 | const int height = rect.height(); | ||
121 | - | ||
122 | glScissor(left, bottom, width, height); | ||
123 | } | ||
124 | |||
125 | diff --git a/src/gui/opengl/qopenglpaintengine_p.h b/src/gui/opengl/qopenglpaintengine_p.h | ||
126 | index 93e1b42..d84e8c7 100644 | ||
127 | --- a/src/gui/opengl/qopenglpaintengine_p.h | ||
128 | +++ b/src/gui/opengl/qopenglpaintengine_p.h | ||
129 | @@ -261,6 +261,7 @@ public: | ||
130 | QOpenGL2PaintEngineEx* q; | ||
131 | QOpenGLEngineShaderManager* shaderManager; | ||
132 | QOpenGLPaintDevice* device; | ||
133 | + int x, y; | ||
134 | int width, height; | ||
135 | QOpenGLContext *ctx; | ||
136 | EngineMode mode; | ||
137 | diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp | ||
138 | index b751629..8822faf 100644 | ||
139 | --- a/src/gui/opengl/qopengltextureglyphcache.cpp | ||
140 | +++ b/src/gui/opengl/qopengltextureglyphcache.cpp | ||
141 | @@ -268,7 +268,7 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) | ||
142 | funcs.glBindFramebuffer(GL_FRAMEBUFFER, ctx->d_func()->current_fbo); | ||
143 | |||
144 | if (pex != 0) { | ||
145 | - glViewport(0, 0, pex->width, pex->height); | ||
146 | + glViewport(pex->x, pex->y, pex->width, pex->height); | ||
147 | pex->updateClipScissorTest(); | ||
148 | } else { | ||
149 | m_blitProgram->disableAttributeArray(int(QT_VERTEX_COORDS_ATTR)); | ||
150 | -- | ||
151 | 1.8.3.2 | ||
152 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0019-Fix-FBO-restoring-in-QOpenGLTextureGlyphCache.patch b/recipes-qt/qt5/qtbase-5.0.2/0019-Fix-FBO-restoring-in-QOpenGLTextureGlyphCache.patch deleted file mode 100644 index e47c7b6d..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0019-Fix-FBO-restoring-in-QOpenGLTextureGlyphCache.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | From edea45b25b50932c8c072679d36e97b3cc3c1326 Mon Sep 17 00:00:00 2001 | ||
2 | From: Valery Volgutov <valery.volgutov@lge.com> | ||
3 | Date: Tue, 21 May 2013 12:02:19 -0700 | ||
4 | Subject: [PATCH 19/22] Fix FBO restoring in QOpenGLTextureGlyphCache | ||
5 | |||
6 | QOpenGLTextureGlyphCache::restoreTextureData restores FBO which | ||
7 | was binded before restoreTextureData call. More specifically, | ||
8 | it restores QOpenGLContextPrivate's current_fbo member. This works | ||
9 | if FBO was binded by QOpenGLFramebufferObject but not if FBO was | ||
10 | binded using glBindFramebufferObject and rendering done via | ||
11 | QOpenGLPaintDevice. | ||
12 | |||
13 | This patch fixes it by querying current FBO using | ||
14 | GL_FRAMEBUFFER_BINDING query and restoring it. | ||
15 | |||
16 | Upstream-Status: Backport | ||
17 | https://codereview.qt-project.org/#change,56608 | ||
18 | --- | ||
19 | src/gui/opengl/qopengltextureglyphcache.cpp | 5 ++++- | ||
20 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp | ||
23 | index 8822faf..022356a 100644 | ||
24 | --- a/src/gui/opengl/qopengltextureglyphcache.cpp | ||
25 | +++ b/src/gui/opengl/qopengltextureglyphcache.cpp | ||
26 | @@ -147,6 +147,9 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) | ||
27 | return; | ||
28 | } | ||
29 | |||
30 | + GLuint saveFbo; | ||
31 | + glGetIntegerv(GL_FRAMEBUFFER_BINDING, &saveFbo); | ||
32 | + | ||
33 | int oldWidth = m_textureResource->m_width; | ||
34 | int oldHeight = m_textureResource->m_height; | ||
35 | |||
36 | @@ -265,7 +268,7 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) | ||
37 | glDeleteTextures(1, &tmp_texture); | ||
38 | glDeleteTextures(1, &oldTexture); | ||
39 | |||
40 | - funcs.glBindFramebuffer(GL_FRAMEBUFFER, ctx->d_func()->current_fbo); | ||
41 | + funcs.glBindFramebuffer(GL_FRAMEBUFFER, saveFbo); | ||
42 | |||
43 | if (pex != 0) { | ||
44 | glViewport(pex->x, pex->y, pex->width, pex->height); | ||
45 | -- | ||
46 | 1.8.3.2 | ||
47 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0020-Use-BGRA-extension-in-bindTexture.patch b/recipes-qt/qt5/qtbase-5.0.2/0020-Use-BGRA-extension-in-bindTexture.patch deleted file mode 100644 index fb384f76..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0020-Use-BGRA-extension-in-bindTexture.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From 87380175cdb88ceadeec5773d8bc40ec08c4e3d6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jani Hautakangas <jani.hautakangas@ixonos.com> | ||
3 | Date: Mon, 27 May 2013 15:25:25 -0700 | ||
4 | Subject: [PATCH 20/22] Use BGRA extension in bindTexture | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Change-Id: I18aecc87c5c7d4483cabe5555da33ca6bb8580f1 | ||
9 | --- | ||
10 | src/gui/opengl/qopengltexturecache.cpp | 6 ++---- | ||
11 | 1 file changed, 2 insertions(+), 4 deletions(-) | ||
12 | |||
13 | diff --git a/src/gui/opengl/qopengltexturecache.cpp b/src/gui/opengl/qopengltexturecache.cpp | ||
14 | index fffc368..11c8b59 100644 | ||
15 | --- a/src/gui/opengl/qopengltexturecache.cpp | ||
16 | +++ b/src/gui/opengl/qopengltexturecache.cpp | ||
17 | @@ -171,7 +171,7 @@ static inline void qgl_byteSwapImage(QImage &img) | ||
18 | } | ||
19 | } | ||
20 | } | ||
21 | - | ||
22 | +#include <QDebug> | ||
23 | GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, qint64 key, const QImage &image) | ||
24 | { | ||
25 | GLuint id; | ||
26 | @@ -180,9 +180,7 @@ GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, qint64 key, con | ||
27 | |||
28 | QImage tx = image.convertToFormat(QImage::Format_ARGB32_Premultiplied); | ||
29 | |||
30 | - qgl_byteSwapImage(tx); | ||
31 | - | ||
32 | - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tx.width(), tx.height(), 0, GL_RGBA, GL_UNSIGNED_BYTE, const_cast<const QImage &>(tx).bits()); | ||
33 | + glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT, tx.width(), tx.height(), 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, const_cast<const QImage &>(tx).bits()); | ||
34 | |||
35 | int cost = tx.width() * tx.height() * 4 / 1024; | ||
36 | m_cache.insert(key, new QOpenGLCachedTexture(id, context), cost); | ||
37 | -- | ||
38 | 1.8.3.2 | ||
39 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0021-configure-make-pulseaudio-a-configurable-option.patch b/recipes-qt/qt5/qtbase-5.0.2/0021-configure-make-pulseaudio-a-configurable-option.patch deleted file mode 100644 index 3c723f6f..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0021-configure-make-pulseaudio-a-configurable-option.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 647c9bb3a33e8cc5093d46b1a08d38f3f2002b74 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Tue, 28 Feb 2012 15:10:24 +0000 | ||
4 | Subject: [PATCH 21/23] configure: make pulseaudio a configurable option | ||
5 | |||
6 | Allows disabling pulseaudio support at configure time. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | configure | 7 +++++++ | ||
14 | 1 file changed, 7 insertions(+) | ||
15 | |||
16 | diff --git a/configure b/configure | ||
17 | index 188e941..24dcd3a 100755 | ||
18 | --- a/configure | ||
19 | +++ b/configure | ||
20 | @@ -1848,6 +1848,13 @@ while [ "$#" -gt 0 ]; do | ||
21 | UNKNOWN_OPT=yes | ||
22 | fi | ||
23 | ;; | ||
24 | + pulseaudio) | ||
25 | + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
26 | + CFG_PULSEAUDIO="$VAL" | ||
27 | + else | ||
28 | + UNKNOWN_OPT=yes | ||
29 | + fi | ||
30 | + ;; | ||
31 | gtkstyle) | ||
32 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
33 | CFG_QGTKSTYLE="$VAL" | ||
34 | -- | ||
35 | 1.8.3.2 | ||
36 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0022-configure-make-alsa-a-configurable-option.patch b/recipes-qt/qt5/qtbase-5.0.2/0022-configure-make-alsa-a-configurable-option.patch deleted file mode 100644 index b5e0bf77..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0022-configure-make-alsa-a-configurable-option.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 33a0f6ff196e366eb51dc2fb937636b087f1719f Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Fri, 19 Jul 2013 23:21:28 +0200 | ||
4 | Subject: [PATCH 22/23] configure: make alsa a configurable option | ||
5 | |||
6 | Allows disabling alsa support at configure time. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | configure | 7 +++++++ | ||
13 | 1 file changed, 7 insertions(+) | ||
14 | |||
15 | diff --git a/configure b/configure | ||
16 | index 24dcd3a..2f46604 100755 | ||
17 | --- a/configure | ||
18 | +++ b/configure | ||
19 | @@ -1855,6 +1855,13 @@ while [ "$#" -gt 0 ]; do | ||
20 | UNKNOWN_OPT=yes | ||
21 | fi | ||
22 | ;; | ||
23 | + alsa) | ||
24 | + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
25 | + CFG_ALSA="$VAL" | ||
26 | + else | ||
27 | + UNKNOWN_OPT=yes | ||
28 | + fi | ||
29 | + ;; | ||
30 | gtkstyle) | ||
31 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
32 | CFG_QGTKSTYLE="$VAL" | ||
33 | -- | ||
34 | 1.8.3.2 | ||
35 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0023-configure-make-freetype-a-configurable-option.patch b/recipes-qt/qt5/qtbase-5.0.2/0023-configure-make-freetype-a-configurable-option.patch deleted file mode 100644 index f88bb7e0..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0023-configure-make-freetype-a-configurable-option.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 113e48ed082315424931407717b72a7a5c011944 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sat, 20 Jul 2013 10:56:37 +0200 | ||
4 | Subject: [PATCH 23/23] configure: make freetype a configurable option | ||
5 | |||
6 | Allows disabling freetype support at configure time. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | configure | 7 +++++++ | ||
13 | 1 file changed, 7 insertions(+) | ||
14 | |||
15 | diff --git a/configure b/configure | ||
16 | index 2f46604..c2cf3b5 100755 | ||
17 | --- a/configure | ||
18 | +++ b/configure | ||
19 | @@ -1862,6 +1862,13 @@ while [ "$#" -gt 0 ]; do | ||
20 | UNKNOWN_OPT=yes | ||
21 | fi | ||
22 | ;; | ||
23 | + freetype) | ||
24 | + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "system" ]; then | ||
25 | + CFG_LIBFREETYPE="$VAL" | ||
26 | + else | ||
27 | + UNKNOWN_OPT=yes | ||
28 | + fi | ||
29 | + ;; | ||
30 | gtkstyle) | ||
31 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
32 | CFG_QGTKSTYLE="$VAL" | ||
33 | -- | ||
34 | 1.8.3.2 | ||
35 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0024-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-determine-pa.patch b/recipes-qt/qt5/qtbase-5.0.2/0024-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-determine-pa.patch deleted file mode 100644 index 9419b81b..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0024-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-determine-pa.patch +++ /dev/null | |||
@@ -1,84 +0,0 @@ | |||
1 | From 0e6b7bcb1c02750368722d1770b0098ce9b28327 Mon Sep 17 00:00:00 2001 | ||
2 | From: Simon Busch <morphis@gravedo.de> | ||
3 | Date: Mon, 22 Jul 2013 21:09:41 +0000 | ||
4 | Subject: [PATCH] Use OE_QMAKE_PATH_EXTERNAL_HOST_BINS to determine path to | ||
5 | host binaries | ||
6 | |||
7 | Upstream-Status: Inappropiate (configuration) | ||
8 | |||
9 | Signed-off-by: Simon Busch <morphis@gravedo.de> | ||
10 | --- | ||
11 | src/corelib/Qt5CoreConfigExtras.cmake.in | 6 +++--- | ||
12 | src/dbus/Qt5DBusConfigExtras.cmake.in | 4 ++-- | ||
13 | src/widgets/Qt5WidgetsConfigExtras.cmake.in | 2 +- | ||
14 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
15 | |||
16 | diff --git a/src/corelib/Qt5CoreConfigExtras.cmake.in b/src/corelib/Qt5CoreConfigExtras.cmake.in | ||
17 | index 4e0fcda..925a335 100644 | ||
18 | --- a/src/corelib/Qt5CoreConfigExtras.cmake.in | ||
19 | +++ b/src/corelib/Qt5CoreConfigExtras.cmake.in | ||
20 | @@ -6,7 +6,7 @@ if (NOT TARGET Qt5::qmake) | ||
21 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
22 | IMPORTED_LOCATION \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\" | ||
23 | !!ELSE | ||
24 | - IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\" | ||
25 | + IMPORTED_LOCATION \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake$$CMAKE_BIN_SUFFIX\" | ||
26 | !!ENDIF | ||
27 | ) | ||
28 | endif() | ||
29 | @@ -18,7 +18,7 @@ if (NOT TARGET Qt5::moc) | ||
30 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
31 | IMPORTED_LOCATION \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\" | ||
32 | !!ELSE | ||
33 | - IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\" | ||
34 | + IMPORTED_LOCATION \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/moc$$CMAKE_BIN_SUFFIX\" | ||
35 | !!ENDIF | ||
36 | ) | ||
37 | # For CMake automoc feature | ||
38 | @@ -32,7 +32,7 @@ if (NOT TARGET Qt5::rcc) | ||
39 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
40 | IMPORTED_LOCATION \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\" | ||
41 | !!ELSE | ||
42 | - IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\" | ||
43 | + IMPORTED_LOCATION \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/rcc$$CMAKE_BIN_SUFFIX\" | ||
44 | !!ENDIF | ||
45 | ) | ||
46 | endif() | ||
47 | diff --git a/src/dbus/Qt5DBusConfigExtras.cmake.in b/src/dbus/Qt5DBusConfigExtras.cmake.in | ||
48 | index 8ecf7ce..af86a88 100644 | ||
49 | --- a/src/dbus/Qt5DBusConfigExtras.cmake.in | ||
50 | +++ b/src/dbus/Qt5DBusConfigExtras.cmake.in | ||
51 | @@ -6,7 +6,7 @@ if (NOT TARGET Qt5::qdbuscpp2xml) | ||
52 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
53 | IMPORTED_LOCATION \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\" | ||
54 | !!ELSE | ||
55 | - IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\" | ||
56 | + IMPORTED_LOCATION \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdbuscpp2xml$$CMAKE_BIN_SUFFIX\" | ||
57 | !!ENDIF | ||
58 | ) | ||
59 | endif() | ||
60 | @@ -18,7 +18,7 @@ if (NOT TARGET Qt5::qdbusxml2cpp) | ||
61 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
62 | IMPORTED_LOCATION \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\" | ||
63 | !!ELSE | ||
64 | - IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\" | ||
65 | + IMPORTED_LOCATION \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdbusxml2cpp$$CMAKE_BIN_SUFFIX\" | ||
66 | !!ENDIF | ||
67 | ) | ||
68 | endif() | ||
69 | diff --git a/src/widgets/Qt5WidgetsConfigExtras.cmake.in b/src/widgets/Qt5WidgetsConfigExtras.cmake.in | ||
70 | index d9abb45..ca17862 100644 | ||
71 | --- a/src/widgets/Qt5WidgetsConfigExtras.cmake.in | ||
72 | +++ b/src/widgets/Qt5WidgetsConfigExtras.cmake.in | ||
73 | @@ -6,7 +6,7 @@ if (NOT TARGET Qt5::uic) | ||
74 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
75 | IMPORTED_LOCATION \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\" | ||
76 | !!ELSE | ||
77 | - IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\" | ||
78 | + IMPORTED_LOCATION \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/uic$$CMAKE_BIN_SUFFIX\" | ||
79 | !!ENDIF | ||
80 | ) | ||
81 | endif() | ||
82 | -- | ||
83 | 1.8.1.2 | ||
84 | |||
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0025-QHttpMultiPart-fix-data-corruption-in-readData-metho.patch b/recipes-qt/qt5/qtbase-5.0.2/0025-QHttpMultiPart-fix-data-corruption-in-readData-metho.patch deleted file mode 100644 index 33e77eac..00000000 --- a/recipes-qt/qt5/qtbase-5.0.2/0025-QHttpMultiPart-fix-data-corruption-in-readData-metho.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From af96c6fed931564c95037539f07e9c8e33c69529 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Hartmann <phartmann@blackberry.com> | ||
3 | Date: Thu, 25 Jul 2013 12:05:29 -0400 | ||
4 | Subject: [PATCH] QHttpMultiPart: fix data corruption in readData method | ||
5 | |||
6 | When readData() is called repeatedly, we need to keep track which | ||
7 | part of the multipart message we are currently reading from. | ||
8 | Hereby we also need to take the boundary size into account, and not | ||
9 | only the size of the multipart; otherwise we would skip a not | ||
10 | completely read part. This would then later lead to advancing the | ||
11 | read pointer by negative indexes and data loss. | ||
12 | |||
13 | Upstream-Status: Backport [https://codereview.qt-project.org/#change,61698] | ||
14 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
15 | |||
16 | Task-number: QTBUG-32534 | ||
17 | Change-Id: Ibb6dff16adaf4ea67181d23d1d0c8459e33a0ed0 | ||
18 | Reviewed-by: Jonathan Liu <net147@gmail.com> | ||
19 | Reviewed-by: Shane Kearns <shane.kearns@accenture.com> | ||
20 | --- | ||
21 | src/network/access/qhttpmultipart.cpp | 3 +- | ||
22 | .../access/qnetworkreply/tst_qnetworkreply.cpp | 44 ++++++++++++++++++++++ | ||
23 | 2 files changed, 46 insertions(+), 1 deletion(-) | ||
24 | |||
25 | diff --git a/src/network/access/qhttpmultipart.cpp b/src/network/access/qhttpmultipart.cpp | ||
26 | index 4397ef8..5985ed9 100644 | ||
27 | --- a/src/network/access/qhttpmultipart.cpp | ||
28 | +++ b/src/network/access/qhttpmultipart.cpp | ||
29 | @@ -497,7 +497,8 @@ qint64 QHttpMultiPartIODevice::readData(char *data, qint64 maxSize) | ||
30 | |||
31 | // skip the parts we have already read | ||
32 | while (index < multiPart->parts.count() && | ||
33 | - readPointer >= partOffsets.at(index) + multiPart->parts.at(index).d->size()) | ||
34 | + readPointer >= partOffsets.at(index) + multiPart->parts.at(index).d->size() | ||
35 | + + multiPart->boundary.count() + 6) // 6 == 2 boundary dashes, \r\n after boundary, \r\n after multipart | ||
36 | index++; | ||
37 | |||
38 | // read the data | ||
39 | -- | ||
40 | 1.8.3.4 | ||
41 | |||
diff --git a/recipes-qt/qt5/qtbase-native_5.0.2.bb b/recipes-qt/qt5/qtbase-native_5.0.2.bb deleted file mode 100644 index b2bdcab0..00000000 --- a/recipes-qt/qt5/qtbase-native_5.0.2.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r3" | ||
5 | |||
6 | SRC_URI += " \ | ||
7 | file://0017-Rename-qAbs-Function-for-timeval.patch \ | ||
8 | " | ||
9 | |||
10 | SRC_URI[md5sum] = "a4fec8ed03867c4ee4fe5a46001a11f0" | ||
11 | SRC_URI[sha256sum] = "31851ee2f844c100554506a9a446d4b6abb5270bca799c2a683e5f937456a9c8" | ||
diff --git a/recipes-qt/qt5/qtbase_5.0.2.bb b/recipes-qt/qt5/qtbase_5.0.2.bb deleted file mode 100644 index be7bcf53..00000000 --- a/recipes-qt/qt5/qtbase_5.0.2.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r3" | ||
5 | |||
6 | SRC_URI += " \ | ||
7 | file://0016-Allow-tslib-to-be-specified-at-configure-time.patch \ | ||
8 | file://0017-Rename-qAbs-Function-for-timeval.patch \ | ||
9 | file://0019-Fix-FBO-restoring-in-QOpenGLTextureGlyphCache.patch \ | ||
10 | " | ||
11 | |||
12 | SRC_URI[md5sum] = "a4fec8ed03867c4ee4fe5a46001a11f0" | ||
13 | SRC_URI[sha256sum] = "31851ee2f844c100554506a9a446d4b6abb5270bca799c2a683e5f937456a9c8" | ||
diff --git a/recipes-qt/qt5/qtdeclarative-5.0.2/0001-qmltestexample-fix-link.patch b/recipes-qt/qt5/qtdeclarative-5.0.2/0001-qmltestexample-fix-link.patch deleted file mode 100644 index 7ed95e4b..00000000 --- a/recipes-qt/qt5/qtdeclarative-5.0.2/0001-qmltestexample-fix-link.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From e22cb54286083886be5081332de2f64ab0b78b4b Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Sun, 26 May 2013 14:26:19 +0200 | ||
4 | Subject: [PATCH] qmltestexample: fix link | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | else we get : | ||
10 | ld: warning: libQt5Quick.so.5, needed by libQt5QuickTest.so, not found | ||
11 | |||
12 | Upstream-Status: Inappropriate | ||
13 | |||
14 | Signed-off-by: Eric Bénard <eric@eukrea.com> | ||
15 | --- | ||
16 | examples/qmltest/qmltest/qmltest.pro | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/examples/qmltest/qmltest/qmltest.pro b/examples/qmltest/qmltest/qmltest.pro | ||
20 | index b5893c5..1b00e6c 100644 | ||
21 | --- a/examples/qmltest/qmltest/qmltest.pro | ||
22 | +++ b/examples/qmltest/qmltest/qmltest.pro | ||
23 | @@ -14,7 +14,7 @@ TESTDATA += tst_basic.qml tst_item.qml | ||
24 | # This code exists solely for the purpose of building this example | ||
25 | # inside the examples/ hierarchy. | ||
26 | |||
27 | -QT += qml qmltest | ||
28 | +QT += qml qmltest quick | ||
29 | |||
30 | macx: CONFIG -= app_bundle | ||
31 | |||
32 | -- | ||
33 | 1.8.1.4 | ||
34 | |||
diff --git a/recipes-qt/qt5/qtdeclarative-5.0.2/0002-Fix-displacement-transition-bug-for-horizontal-case.patch b/recipes-qt/qt5/qtdeclarative-5.0.2/0002-Fix-displacement-transition-bug-for-horizontal-case.patch deleted file mode 100644 index 91740ac7..00000000 --- a/recipes-qt/qt5/qtdeclarative-5.0.2/0002-Fix-displacement-transition-bug-for-horizontal-case.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From eb11863cc40048e84cb383ae9e29b5929170a63d Mon Sep 17 00:00:00 2001 | ||
2 | From: Guenter Schwann <guenter.schwann@canonical.com> | ||
3 | Date: Wed, 27 Feb 2013 15:52:03 +0100 | ||
4 | Subject: [PATCH 2/5] Fix displacement transition bug for horizontal case | ||
5 | |||
6 | Task-number: QTBUG-29944 | ||
7 | |||
8 | Upstream-Status: Backport https://codereview.qt-project.org/49226 | ||
9 | Signed-off-by: Florian Haenel <florian.haenel@lge.com> | ||
10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | |||
12 | Change-Id: I23381f7a1d2c8d3c6df007b5b11c12b0db3bb1e9 | ||
13 | --- | ||
14 | src/quick/items/qquickitemview.cpp | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/quick/items/qquickitemview.cpp b/src/quick/items/qquickitemview.cpp | ||
18 | index b73fb8c..1c74288 100644 | ||
19 | --- a/src/quick/items/qquickitemview.cpp | ||
20 | +++ b/src/quick/items/qquickitemview.cpp | ||
21 | @@ -2115,7 +2115,7 @@ void QQuickItemViewPrivate::prepareVisibleItemTransitions() | ||
22 | return; | ||
23 | |||
24 | // must call for every visible item to init or discard transitions | ||
25 | - QRectF viewBounds(0, position(), q->width(), q->height()); | ||
26 | + QRectF viewBounds(q->contentX(), q->contentY(), q->width(), q->height()); | ||
27 | for (int i=0; i<visibleItems.count(); i++) | ||
28 | visibleItems[i]->prepareTransition(transitioner, viewBounds); | ||
29 | } | ||
30 | -- | ||
31 | 1.8.2.1 | ||
32 | |||
diff --git a/recipes-qt/qt5/qtdeclarative-5.0.2/0003-Fix-wrong-calculation-of-viewPort-for-transitions.patch b/recipes-qt/qt5/qtdeclarative-5.0.2/0003-Fix-wrong-calculation-of-viewPort-for-transitions.patch deleted file mode 100644 index 05451af5..00000000 --- a/recipes-qt/qt5/qtdeclarative-5.0.2/0003-Fix-wrong-calculation-of-viewPort-for-transitions.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 3dfa028b27e171cb2494b22f0346be1390310ea6 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Florian=20H=C3=A4nel?= <florian.haenel@basyskom.com> | ||
3 | Date: Wed, 5 Jun 2013 19:23:32 +0200 | ||
4 | Subject: [PATCH 3/5] Fix wrong calculation of viewPort for transitions | ||
5 | |||
6 | Viewport is calculated wrong for horizontal layout in a second instance | ||
7 | |||
8 | Task-number: QTBUG-29944 | ||
9 | Task-Number: QTBUG-31546 | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Looks like backport of https://codereview.qt-project.org/49226 but this | ||
14 | one was applied in previous patch, this change looks the same but is | ||
15 | in different part of qquickitemview.cpp and ISN'T applied yet in dev | ||
16 | branch. | ||
17 | |||
18 | Signed-off-by: Florian Haenel <florian.haenel@lge.com> | ||
19 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
20 | |||
21 | Change-Id: I136ae4484278d14f796613505e3f38c65ec51ebe | ||
22 | --- | ||
23 | src/quick/items/qquickitemview.cpp | 2 +- | ||
24 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
25 | |||
26 | diff --git a/src/quick/items/qquickitemview.cpp b/src/quick/items/qquickitemview.cpp | ||
27 | index 1c74288..b316af9 100644 | ||
28 | --- a/src/quick/items/qquickitemview.cpp | ||
29 | +++ b/src/quick/items/qquickitemview.cpp | ||
30 | @@ -1816,7 +1816,7 @@ void QQuickItemViewPrivate::layout() | ||
31 | |||
32 | prepareVisibleItemTransitions(); | ||
33 | |||
34 | - QRectF viewBounds(0, position(), q->width(), q->height()); | ||
35 | + QRectF viewBounds(q->contentX(), q->contentY(), q->width(), q->height()); | ||
36 | for (QList<FxViewItem*>::Iterator it = releasePendingTransition.begin(); | ||
37 | it != releasePendingTransition.end(); ) { | ||
38 | FxViewItem *item = *it; | ||
39 | -- | ||
40 | 1.8.2.1 | ||
41 | |||
diff --git a/recipes-qt/qt5/qtdeclarative-5.0.2/0004-Fix-null-pointer-access-in-QQuickVisualDataModelPriv.patch b/recipes-qt/qt5/qtdeclarative-5.0.2/0004-Fix-null-pointer-access-in-QQuickVisualDataModelPriv.patch deleted file mode 100644 index 0182248e..00000000 --- a/recipes-qt/qt5/qtdeclarative-5.0.2/0004-Fix-null-pointer-access-in-QQuickVisualDataModelPriv.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From adb69cabeacbe14a4439473107000d6e94d8d033 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Florian=20H=C3=A4nel?= <florian.haenel@basyskom.com> | ||
3 | Date: Mon, 3 Jun 2013 13:40:09 +0200 | ||
4 | Subject: [PATCH 4/5] Fix null-pointer access in QQuickVisualDataModelPrivate | ||
5 | |||
6 | I observed null cachItem->contextData which lead to null-pointer access | ||
7 | on cacheItem->contextData->destroy(). | ||
8 | |||
9 | Task-number: QTBUG-31439 | ||
10 | |||
11 | Upstream-Status: Backport https://codereview.qt-project.org/57789 | ||
12 | |||
13 | Signed-of-by: Florian Haenel <florian.haenel@lge.com> | ||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | |||
16 | Change-Id: I91f28a3ee1ac83446ecde1801a1cb7962fb883f3 | ||
17 | --- | ||
18 | src/quick/items/qquickvisualdatamodel.cpp | 3 ++- | ||
19 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/src/quick/items/qquickvisualdatamodel.cpp b/src/quick/items/qquickvisualdatamodel.cpp | ||
22 | index d2e50e8..a460e7f 100644 | ||
23 | --- a/src/quick/items/qquickvisualdatamodel.cpp | ||
24 | +++ b/src/quick/items/qquickvisualdatamodel.cpp | ||
25 | @@ -817,7 +817,8 @@ void QQuickVisualDataModelPrivate::incubatorStatusChanged(QVDMIncubationTask *in | ||
26 | delete cacheItem->object; | ||
27 | cacheItem->object = 0; | ||
28 | cacheItem->scriptRef -= 1; | ||
29 | - cacheItem->contextData->destroy(); | ||
30 | + if (cacheItem->contextData) | ||
31 | + cacheItem->contextData->destroy(); | ||
32 | cacheItem->contextData = 0; | ||
33 | if (!cacheItem->isReferenced()) { | ||
34 | removeCacheItem(cacheItem); | ||
35 | -- | ||
36 | 1.8.2.1 | ||
37 | |||
diff --git a/recipes-qt/qt5/qtdeclarative-5.0.2/0005-Avoid-swizzling-on-OpenGL-ES-when-possible.patch b/recipes-qt/qt5/qtdeclarative-5.0.2/0005-Avoid-swizzling-on-OpenGL-ES-when-possible.patch deleted file mode 100644 index 92be7ef8..00000000 --- a/recipes-qt/qt5/qtdeclarative-5.0.2/0005-Avoid-swizzling-on-OpenGL-ES-when-possible.patch +++ /dev/null | |||
@@ -1,88 +0,0 @@ | |||
1 | From 9d85c3c5823c6f73db245d4de786d911fd96edfd Mon Sep 17 00:00:00 2001 | ||
2 | From: Florian Haenel <florian.haenel@lge.com> | ||
3 | Date: Sat, 8 Jun 2013 00:34:35 +0200 | ||
4 | Subject: [PATCH 5/5] Avoid swizzling on OpenGL ES when possible | ||
5 | |||
6 | Add support for APPLE_texture_format_BGRA8888, | ||
7 | IMG_texture_format_BGRA8888, | ||
8 | EXT_texture_format_BGRA8888 and EXT_bgra. The apple one acts | ||
9 | just like the desktop EXT_bgra one, so they need slightly | ||
10 | different handling than the ES extensions. | ||
11 | |||
12 | This change also has the benefit that we no longer have a dedicated | ||
13 | ES path. | ||
14 | |||
15 | Upstream-Status: Backport https://codereview.qt-project.org/46549 | ||
16 | Signed-off-by: Florian Haenel <florian.haenel@lge.com> | ||
17 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
18 | |||
19 | Change-Id: I5ecb0a02c3a7bd984d6752fa87163726118b93de | ||
20 | --- | ||
21 | src/quick/scenegraph/util/qsgtexture.cpp | 28 ++++++++++++++++++++++------ | ||
22 | 1 file changed, 22 insertions(+), 6 deletions(-) | ||
23 | |||
24 | diff --git a/src/quick/scenegraph/util/qsgtexture.cpp b/src/quick/scenegraph/util/qsgtexture.cpp | ||
25 | index 16cc461..3d574f3 100644 | ||
26 | --- a/src/quick/scenegraph/util/qsgtexture.cpp | ||
27 | +++ b/src/quick/scenegraph/util/qsgtexture.cpp | ||
28 | @@ -65,6 +65,10 @@ | ||
29 | #include <QHash> | ||
30 | #endif | ||
31 | |||
32 | +#ifndef GL_BGRA | ||
33 | +#define GL_BGRA 0x80E1 | ||
34 | +#endif | ||
35 | + | ||
36 | QT_BEGIN_NAMESPACE | ||
37 | |||
38 | inline static bool isPowerOfTwo(int x) | ||
39 | @@ -523,7 +527,6 @@ QSGPlainTexture::~QSGPlainTexture() | ||
40 | glDeleteTextures(1, &m_texture_id); | ||
41 | } | ||
42 | |||
43 | -#ifdef QT_OPENGL_ES | ||
44 | void qsg_swizzleBGRAToRGBA(QImage *image) | ||
45 | { | ||
46 | const int width = image->width(); | ||
47 | @@ -534,7 +537,6 @@ void qsg_swizzleBGRAToRGBA(QImage *image) | ||
48 | p[x] = ((p[x] << 16) & 0xff0000) | ((p[x] >> 16) & 0xff) | (p[x] & 0xff00ff00); | ||
49 | } | ||
50 | } | ||
51 | -#endif | ||
52 | |||
53 | void QSGPlainTexture::setImage(const QImage &image) | ||
54 | { | ||
55 | @@ -621,12 +623,26 @@ void QSGPlainTexture::bind() | ||
56 | |||
57 | updateBindOptions(m_dirty_bind_options); | ||
58 | |||
59 | + GLenum externalFormat = GL_RGBA; | ||
60 | + GLenum internalFormat = GL_RGBA; | ||
61 | + | ||
62 | + const char *extensions = (const char *) glGetString(GL_EXTENSIONS); | ||
63 | + if (strstr(extensions, "GL_EXT_bgra")) { | ||
64 | + externalFormat = GL_BGRA; | ||
65 | #ifdef QT_OPENGL_ES | ||
66 | - qsg_swizzleBGRAToRGBA(&tmp); | ||
67 | - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, tmp.constBits()); | ||
68 | -#else | ||
69 | - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_BGRA, GL_UNSIGNED_BYTE, tmp.constBits()); | ||
70 | + internalFormat = GL_BGRA; | ||
71 | #endif | ||
72 | + } else if (strstr(extensions, "GL_APPLE_texture_format_BGRA8888")) { | ||
73 | + externalFormat = GL_BGRA; | ||
74 | + } else if (strstr(extensions, "GL_EXT_texture_format_BGRA8888") | ||
75 | + || strstr(extensions, "GL_IMG_texture_format_BGRA8888")) { | ||
76 | + externalFormat = GL_BGRA; | ||
77 | + internalFormat = GL_BGRA; | ||
78 | + } else { | ||
79 | + qsg_swizzleBGRAToRGBA(&tmp); | ||
80 | + } | ||
81 | + | ||
82 | + glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, w, h, 0, externalFormat, GL_UNSIGNED_BYTE, tmp.constBits()); | ||
83 | |||
84 | if (m_has_mipmaps) { | ||
85 | QOpenGLContext *ctx = QOpenGLContext::currentContext(); | ||
86 | -- | ||
87 | 1.8.2.1 | ||
88 | |||
diff --git a/recipes-qt/qt5/qtdeclarative_5.0.2.bb b/recipes-qt/qt5/qtdeclarative_5.0.2.bb deleted file mode 100644 index 71f8ff55..00000000 --- a/recipes-qt/qt5/qtdeclarative_5.0.2.bb +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI += " \ | ||
7 | file://0001-qmltestexample-fix-link.patch \ | ||
8 | file://0002-Fix-displacement-transition-bug-for-horizontal-case.patch \ | ||
9 | file://0003-Fix-wrong-calculation-of-viewPort-for-transitions.patch \ | ||
10 | file://0004-Fix-null-pointer-access-in-QQuickVisualDataModelPriv.patch \ | ||
11 | file://0005-Avoid-swizzling-on-OpenGL-ES-when-possible.patch \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[md5sum] = "55ab45a7a17db5b202b225603a35a37c" | ||
15 | SRC_URI[sha256sum] = "dcfcc6c0d1913d285dd7b42dd9bc457c304f3e3074a1e0d875fff1e9a8318520" | ||
diff --git a/recipes-qt/qt5/qtgraphicaleffects_5.0.2.bb b/recipes-qt/qt5/qtgraphicaleffects_5.0.2.bb deleted file mode 100644 index ee5f3abe..00000000 --- a/recipes-qt/qt5/qtgraphicaleffects_5.0.2.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | # LICENSE files are missing in 5.0.2 | ||
5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780 \ | ||
6 | file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891 \ | ||
7 | file://${COMMON_LICENSE_DIR}/GFDL-1.3;md5=1083add59b39991c748ea70a92166959 \ | ||
8 | " | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | SRC_URI[md5sum] = "3d4475a4702f7bbe8064f69e17f1e8dd" | ||
13 | SRC_URI[sha256sum] = "944399c5795b83b8f6b5e4ccec763ce5192f0e99b5e6d256f2b43a3165ee3016" | ||
diff --git a/recipes-qt/qt5/qtimageformats_5.0.2.bb b/recipes-qt/qt5/qtimageformats_5.0.2.bb deleted file mode 100644 index e53c8633..00000000 --- a/recipes-qt/qt5/qtimageformats_5.0.2.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI[md5sum] = "e397a4237f51cfef7a3b38ad29b831d7" | ||
7 | SRC_URI[sha256sum] = "93bd13a47002f188a8a83a5c742d396a2008a545fc22d58df442c4c070a463b7" | ||
diff --git a/recipes-qt/qt5/qtjsbackend-5.0.2/0001-Install-the-mkv8snapshot-tool-to-the-native-side.patch b/recipes-qt/qt5/qtjsbackend-5.0.2/0001-Install-the-mkv8snapshot-tool-to-the-native-side.patch deleted file mode 100644 index ec0c22d0..00000000 --- a/recipes-qt/qt5/qtjsbackend-5.0.2/0001-Install-the-mkv8snapshot-tool-to-the-native-side.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 293e982e084661e0caf686737dcdcda9e2e3e083 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Tue, 4 Dec 2012 11:20:13 -0800 | ||
4 | Subject: [PATCH 1/3] Install the mkv8snapshot tool to the native side | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
9 | --- | ||
10 | src/tools/mkv8snapshot/mkv8snapshot.pro | 9 +++++++-- | ||
11 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/src/tools/mkv8snapshot/mkv8snapshot.pro b/src/tools/mkv8snapshot/mkv8snapshot.pro | ||
14 | index 16beb02..5e327f7 100644 | ||
15 | --- a/src/tools/mkv8snapshot/mkv8snapshot.pro | ||
16 | +++ b/src/tools/mkv8snapshot/mkv8snapshot.pro | ||
17 | @@ -24,5 +24,10 @@ unix:LIBS += -lpthread | ||
18 | |||
19 | # We don't need to install this tool, it's only used for building v8. | ||
20 | # However we do have to make sure that 'make install' builds it. | ||
21 | -dummytarget.CONFIG = dummy_install | ||
22 | -INSTALLS += dummytarget | ||
23 | +#dummytarget.CONFIG = dummy_install | ||
24 | +#INSTALLS += dummytarget | ||
25 | + | ||
26 | +# Install the tool so that during target cross compilation we have access to the native side binary | ||
27 | +target.path = $$[QT_HOST_BINS] | ||
28 | +INSTALLS += target | ||
29 | + | ||
30 | -- | ||
31 | 1.8.3.2 | ||
32 | |||
diff --git a/recipes-qt/qt5/qtjsbackend-5.0.2/0002-v8.pro-respect-external-host-bindir-when-set.patch b/recipes-qt/qt5/qtjsbackend-5.0.2/0002-v8.pro-respect-external-host-bindir-when-set.patch deleted file mode 100644 index 86d84139..00000000 --- a/recipes-qt/qt5/qtjsbackend-5.0.2/0002-v8.pro-respect-external-host-bindir-when-set.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From fa85676a52fb6e12e6db85ace4b6a2cfc1d5239a Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sun, 28 Apr 2013 02:45:01 +0200 | ||
4 | Subject: [PATCH 2/3] v8.pro: respect external-host-bindir, when set | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | src/v8/v8.pro | 5 ++++- | ||
11 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/src/v8/v8.pro b/src/v8/v8.pro | ||
14 | index 2be6a19..d3da4e1 100644 | ||
15 | --- a/src/v8/v8.pro | ||
16 | +++ b/src/v8/v8.pro | ||
17 | @@ -25,7 +25,10 @@ INCLUDEPATH -= $$MODULE_INCLUDES $$MODULE_INCLUDES/.. | ||
18 | include(v8.pri) | ||
19 | |||
20 | contains(QT_CONFIG, v8snapshot) { | ||
21 | - mkv8snapshot.commands = ../../bin/mkv8snapshot$$qtPlatformTargetSuffix() ${QMAKE_FILE_OUT} | ||
22 | + mkv8snapshot.tool=$$[QT_EXTERNAL_HOST_BINS]/mkv8snapshot$$qtPlatformTargetSuffix() | ||
23 | + !exists($$mkv8snapshot.tool): \ | ||
24 | + mkv8snapshot.tool=../../bin/mkv8snapshot$$qtPlatformTargetSuffix() | ||
25 | + mkv8snapshot.commands = $$mkv8snapshot.tool ${QMAKE_FILE_OUT} | ||
26 | DUMMY_FILE = v8.pro | ||
27 | mkv8snapshot.input = DUMMY_FILE | ||
28 | mkv8snapshot.output = $$V8_GENERATED_SOURCES_DIR/snapshot.cpp | ||
29 | -- | ||
30 | 1.8.3.2 | ||
31 | |||
diff --git a/recipes-qt/qt5/qtjsbackend-5.0.2/0003-V8-Cleanup-hardfp-ABI-detection.-This-work-was-trigg.patch b/recipes-qt/qt5/qtjsbackend-5.0.2/0003-V8-Cleanup-hardfp-ABI-detection.-This-work-was-trigg.patch deleted file mode 100644 index 6688d8d4..00000000 --- a/recipes-qt/qt5/qtjsbackend-5.0.2/0003-V8-Cleanup-hardfp-ABI-detection.-This-work-was-trigg.patch +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | From d8a3566b013ba581e638cf2b960a8488d5fc9d64 Mon Sep 17 00:00:00 2001 | ||
2 | From: Sergio Martins <sergio.martins@kdab.com> | ||
3 | Date: Wed, 20 Feb 2013 22:34:46 +0000 | ||
4 | Subject: [PATCH 3/3] [V8] Cleanup hardfp ABI detection. This work was | ||
5 | triggered by issue 2140. | ||
6 | |||
7 | Upstream Patch: https://chromiumcodereview.appspot.com/10713009 | ||
8 | |||
9 | Task-Number: QTBUG-28890 | ||
10 | Change-Id: Id073388fbbffa2ad9b1cea0ab42e1d6e47862a36 | ||
11 | Reviewed-by: Sean Harmer <sean.harmer@kdab.com> | ||
12 | Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> | ||
13 | --- | ||
14 | src/3rdparty/v8/src/platform-linux.cc | 70 ++++++++++++++++------------------ | ||
15 | src/3rdparty/v8/src/platform-qnx.cc | 71 ++++++++++++++++------------------- | ||
16 | 2 files changed, 65 insertions(+), 76 deletions(-) | ||
17 | |||
18 | diff --git a/src/3rdparty/v8/src/platform-linux.cc b/src/3rdparty/v8/src/platform-linux.cc | ||
19 | index f6db423..18f59dd 100644 | ||
20 | --- a/src/3rdparty/v8/src/platform-linux.cc | ||
21 | +++ b/src/3rdparty/v8/src/platform-linux.cc | ||
22 | @@ -161,47 +161,41 @@ bool OS::ArmCpuHasFeature(CpuFeature feature) { | ||
23 | } | ||
24 | |||
25 | |||
26 | -// Simple helper function to detect whether the C code is compiled with | ||
27 | -// option -mfloat-abi=hard. The register d0 is loaded with 1.0 and the register | ||
28 | -// pair r0, r1 is loaded with 0.0. If -mfloat-abi=hard is pased to GCC then | ||
29 | -// calling this will return 1.0 and otherwise 0.0. | ||
30 | -static void ArmUsingHardFloatHelper() { | ||
31 | - asm("mov r0, #0":::"r0"); | ||
32 | -#if defined(__VFP_FP__) && !defined(__SOFTFP__) | ||
33 | - // Load 0x3ff00000 into r1 using instructions available in both ARM | ||
34 | - // and Thumb mode. | ||
35 | - asm("mov r1, #3":::"r1"); | ||
36 | - asm("mov r2, #255":::"r2"); | ||
37 | - asm("lsl r1, r1, #8":::"r1"); | ||
38 | - asm("orr r1, r1, r2":::"r1"); | ||
39 | - asm("lsl r1, r1, #20":::"r1"); | ||
40 | - // For vmov d0, r0, r1 use ARM mode. | ||
41 | -#ifdef __thumb__ | ||
42 | - asm volatile( | ||
43 | - "@ Enter ARM Mode \n\t" | ||
44 | - " adr r3, 1f \n\t" | ||
45 | - " bx r3 \n\t" | ||
46 | - " .ALIGN 4 \n\t" | ||
47 | - " .ARM \n" | ||
48 | - "1: vmov d0, r0, r1 \n\t" | ||
49 | - "@ Enter THUMB Mode\n\t" | ||
50 | - " adr r3, 2f+1 \n\t" | ||
51 | - " bx r3 \n\t" | ||
52 | - " .THUMB \n" | ||
53 | - "2: \n\t":::"r3"); | ||
54 | +bool OS::ArmUsingHardFloat() { | ||
55 | + // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify | ||
56 | + // the Floating Point ABI used (PCS stands for Procedure Call Standard). | ||
57 | + // We use these as well as a couple of other defines to statically determine | ||
58 | + // what FP ABI used. | ||
59 | + // GCC versions 4.4 and below don't support hard-fp. | ||
60 | + // GCC versions 4.5 may support hard-fp without defining __ARM_PCS or | ||
61 | + // __ARM_PCS_VFP. | ||
62 | + | ||
63 | +#define GCC_VERSION (__GNUC__ * 10000 \ | ||
64 | + + __GNUC_MINOR__ * 100 \ | ||
65 | + + __GNUC_PATCHLEVEL__) | ||
66 | +#if GCC_VERSION >= 40600 | ||
67 | +#if defined(__ARM_PCS_VFP) | ||
68 | + return true; | ||
69 | #else | ||
70 | - asm("vmov d0, r0, r1"); | ||
71 | -#endif // __thumb__ | ||
72 | -#endif // defined(__VFP_FP__) && !defined(__SOFTFP__) | ||
73 | - asm("mov r1, #0":::"r1"); | ||
74 | -} | ||
75 | + return false; | ||
76 | +#endif | ||
77 | |||
78 | +#elif GCC_VERSION < 40500 | ||
79 | + return false; | ||
80 | |||
81 | -bool OS::ArmUsingHardFloat() { | ||
82 | - // Cast helper function from returning void to returning double. | ||
83 | - typedef double (*F)(); | ||
84 | - F f = FUNCTION_CAST<F>(FUNCTION_ADDR(ArmUsingHardFloatHelper)); | ||
85 | - return f() == 1.0; | ||
86 | +#else | ||
87 | +#if defined(__ARM_PCS_VFP) | ||
88 | + return true; | ||
89 | +#elif defined(__ARM_PCS) || defined(__SOFTFP) || !defined(__VFP_FP__) | ||
90 | + return false; | ||
91 | +#else | ||
92 | +#error "Your version of GCC does not report the FP ABI compiled for." \ | ||
93 | + "Please report it on this issue" \ | ||
94 | + "http://code.google.com/p/v8/issues/detail?id=2140" | ||
95 | + | ||
96 | +#endif | ||
97 | +#endif | ||
98 | +#undef GCC_VERSION | ||
99 | } | ||
100 | #endif // def __arm__ | ||
101 | |||
102 | diff --git a/src/3rdparty/v8/src/platform-qnx.cc b/src/3rdparty/v8/src/platform-qnx.cc | ||
103 | index bf9f5ba..46d69b8 100644 | ||
104 | --- a/src/3rdparty/v8/src/platform-qnx.cc | ||
105 | +++ b/src/3rdparty/v8/src/platform-qnx.cc | ||
106 | @@ -139,48 +139,43 @@ bool OS::ArmCpuHasFeature(CpuFeature feature) { | ||
107 | } | ||
108 | |||
109 | |||
110 | -// Simple helper function to detect whether the C code is compiled with | ||
111 | -// option -mfloat-abi=hard. The register d0 is loaded with 1.0 and the register | ||
112 | -// pair r0, r1 is loaded with 0.0. If -mfloat-abi=hard is pased to GCC then | ||
113 | -// calling this will return 1.0 and otherwise 0.0. | ||
114 | -static void ArmUsingHardFloatHelper() { | ||
115 | - asm("mov r0, #0"); | ||
116 | -#if defined(__VFP_FP__) && !defined(__SOFTFP__) | ||
117 | - // Load 0x3ff00000 into r1 using instructions available in both ARM | ||
118 | - // and Thumb mode. | ||
119 | - asm("mov r1, #3"); | ||
120 | - asm("mov r2, #255"); | ||
121 | - asm("lsl r1, r1, #8"); | ||
122 | - asm("orr r1, r1, r2"); | ||
123 | - asm("lsl r1, r1, #20"); | ||
124 | - // For vmov d0, r0, r1 use ARM mode. | ||
125 | -#ifdef __thumb__ | ||
126 | - asm volatile( | ||
127 | - "@ Enter ARM Mode \n\t" | ||
128 | - " adr r3, 1f \n\t" | ||
129 | - " bx r3 \n\t" | ||
130 | - " .ALIGN 4 \n\t" | ||
131 | - " .ARM \n" | ||
132 | - "1: vmov d0, r0, r1 \n\t" | ||
133 | - "@ Enter THUMB Mode\n\t" | ||
134 | - " adr r3, 2f+1 \n\t" | ||
135 | - " bx r3 \n\t" | ||
136 | - " .THUMB \n" | ||
137 | - "2: \n\t"); | ||
138 | +bool OS::ArmUsingHardFloat() { | ||
139 | + // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify | ||
140 | + // the Floating Point ABI used (PCS stands for Procedure Call Standard). | ||
141 | + // We use these as well as a couple of other defines to statically determine | ||
142 | + // what FP ABI used. | ||
143 | + // GCC versions 4.4 and below don't support hard-fp. | ||
144 | + // GCC versions 4.5 may support hard-fp without defining __ARM_PCS or | ||
145 | + // __ARM_PCS_VFP. | ||
146 | + | ||
147 | +#define GCC_VERSION (__GNUC__ * 10000 \ | ||
148 | + + __GNUC_MINOR__ * 100 \ | ||
149 | + + __GNUC_PATCHLEVEL__) | ||
150 | +#if GCC_VERSION >= 40600 | ||
151 | +#if defined(__ARM_PCS_VFP) | ||
152 | + return true; | ||
153 | #else | ||
154 | - asm("vmov d0, r0, r1"); | ||
155 | -#endif // __thumb__ | ||
156 | -#endif // defined(__VFP_FP__) && !defined(__SOFTFP__) | ||
157 | - asm("mov r1, #0"); | ||
158 | -} | ||
159 | + return false; | ||
160 | +#endif | ||
161 | |||
162 | +#elif GCC_VERSION < 40500 | ||
163 | + return false; | ||
164 | |||
165 | -bool OS::ArmUsingHardFloat() { | ||
166 | - // Cast helper function from returning void to returning double. | ||
167 | - typedef double (*F)(); | ||
168 | - F f = FUNCTION_CAST<F>(FUNCTION_ADDR(ArmUsingHardFloatHelper)); | ||
169 | - return f() == 1.0; | ||
170 | +#else | ||
171 | +#if defined(__ARM_PCS_VFP) | ||
172 | + return true; | ||
173 | +#elif defined(__ARM_PCS) || defined(__SOFTFP) || !defined(__VFP_FP__) | ||
174 | + return false; | ||
175 | +#else | ||
176 | +#error "Your version of GCC does not report the FP ABI compiled for." \ | ||
177 | + "Please report it on this issue" \ | ||
178 | + "http://code.google.com/p/v8/issues/detail?id=2140" | ||
179 | + | ||
180 | +#endif | ||
181 | +#endif | ||
182 | +#undef GCC_VERSION | ||
183 | } | ||
184 | + | ||
185 | #endif // def __arm__ | ||
186 | |||
187 | |||
188 | -- | ||
189 | 1.8.3.2 | ||
190 | |||
diff --git a/recipes-qt/qt5/qtjsbackend-native_5.0.2.bb b/recipes-qt/qt5/qtjsbackend-native_5.0.2.bb deleted file mode 100644 index 83832d86..00000000 --- a/recipes-qt/qt5/qtjsbackend-native_5.0.2.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI[md5sum] = "610f011757755888153cb2004c04446f" | ||
7 | SRC_URI[sha256sum] = "65071ab9ab7d9024b7ba6d128a1c97ac09cf1b37818affb4238e4ba7d6665cc0" | ||
diff --git a/recipes-qt/qt5/qtjsbackend_5.0.2.bb b/recipes-qt/qt5/qtjsbackend_5.0.2.bb deleted file mode 100644 index b59a3ebb..00000000 --- a/recipes-qt/qt5/qtjsbackend_5.0.2.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI += " \ | ||
7 | file://0003-V8-Cleanup-hardfp-ABI-detection.-This-work-was-trigg.patch \ | ||
8 | " | ||
9 | |||
10 | SRC_URI[md5sum] = "610f011757755888153cb2004c04446f" | ||
11 | SRC_URI[sha256sum] = "65071ab9ab7d9024b7ba6d128a1c97ac09cf1b37818affb4238e4ba7d6665cc0" | ||
diff --git a/recipes-qt/qt5/qtmultimedia_5.0.2.bb b/recipes-qt/qt5/qtmultimedia_5.0.2.bb deleted file mode 100644 index 17d9de0a..00000000 --- a/recipes-qt/qt5/qtmultimedia_5.0.2.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | # LICENSE files are missing in 5.0.2 | ||
5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780 \ | ||
6 | file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891 \ | ||
7 | file://${COMMON_LICENSE_DIR}/GFDL-1.3;md5=1083add59b39991c748ea70a92166959 \ | ||
8 | " | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | SRC_URI[md5sum] = "f0902250974440c9c63569112a67440c" | ||
13 | SRC_URI[sha256sum] = "fffc7bd71e6cb2853da3c90d7f9794583e7a83e4eeb6fea039a2efac53688834" | ||
diff --git a/recipes-qt/qt5/qtquick1_5.0.2.bb b/recipes-qt/qt5/qtquick1_5.0.2.bb deleted file mode 100644 index ddef81af..00000000 --- a/recipes-qt/qt5/qtquick1_5.0.2.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI[md5sum] = "22cd03e2e2aadbc5e2ce324a3526fa8b" | ||
7 | SRC_URI[sha256sum] = "2a2235f4f4afd5bf8c6960efafbe89f8c443f174fb22931d48f566660cfcea9a" | ||
diff --git a/recipes-qt/qt5/qtscript_5.0.2.bb b/recipes-qt/qt5/qtscript_5.0.2.bb deleted file mode 100644 index 9d334ce2..00000000 --- a/recipes-qt/qt5/qtscript_5.0.2.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI[md5sum] = "929db18c2f4f66cb2ba204076f9f0c22" | ||
7 | SRC_URI[sha256sum] = "def1b60e5ff5513cbda27200554fb568ef822e0ee790476facfe3bcf3438598f" | ||
diff --git a/recipes-qt/qt5/qtsvg_5.0.2.bb b/recipes-qt/qt5/qtsvg_5.0.2.bb deleted file mode 100644 index 6f6706f7..00000000 --- a/recipes-qt/qt5/qtsvg_5.0.2.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | # LICENSE files are missing in 5.0.2 | ||
5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780 \ | ||
6 | file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891 \ | ||
7 | file://${COMMON_LICENSE_DIR}/GFDL-1.3;md5=1083add59b39991c748ea70a92166959 \ | ||
8 | " | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | SRC_URI[md5sum] = "a000016afd3672540b2488c2f8e8d8b3" | ||
13 | SRC_URI[sha256sum] = "5983485ade365a9e809d4614cc76fb106c35d5c514e0312a9013bb25227a6521" | ||
diff --git a/recipes-qt/qt5/qttools-5.0.2/0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch b/recipes-qt/qt5/qttools-5.0.2/0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch deleted file mode 100644 index c5abceee..00000000 --- a/recipes-qt/qt5/qttools-5.0.2/0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch +++ /dev/null | |||
@@ -1,127 +0,0 @@ | |||
1 | From f5d7b5cd073eb6b5a60658b9622c59a682fd828d Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.jansa@gmail.com> | ||
3 | Date: Wed, 11 Sep 2013 18:30:08 +0200 | ||
4 | Subject: [PATCH] Allow to build only lrelease + lupdate + lconvert | ||
5 | |||
6 | This is useful e.g. when cross compiling with OpenEmbedded where qtbase-native | ||
7 | is built without GUI support (no-png is set) and we still want to build | ||
8 | native lrelease + lupdate + lconvert tools. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Martin Jansa <Martin.jansa@gmail.com> | ||
13 | --- | ||
14 | examples/examples.pro | 4 ++-- | ||
15 | src/designer/src/src.pro | 14 ++++++++------ | ||
16 | src/linguist/linguist.pro | 2 +- | ||
17 | src/src.pro | 10 ++++++---- | ||
18 | tests/auto/auto.pro | 20 +++++++++++--------- | ||
19 | 5 files changed, 28 insertions(+), 22 deletions(-) | ||
20 | |||
21 | diff --git a/examples/examples.pro b/examples/examples.pro | ||
22 | index 4955969..8e86419 100644 | ||
23 | --- a/examples/examples.pro | ||
24 | +++ b/examples/examples.pro | ||
25 | @@ -1,3 +1,3 @@ | ||
26 | TEMPLATE = subdirs | ||
27 | -qtHaveModule(widgets): SUBDIRS += help designer linguist uitools assistant | ||
28 | - | ||
29 | +!linguistonly:qtHaveModule(widgets): SUBDIRS += help designer assistant | ||
30 | +qtHaveModule(widgets): SUBDIRS += linguist uitools | ||
31 | diff --git a/src/designer/src/src.pro b/src/designer/src/src.pro | ||
32 | index 64d1c37..6e6912d 100644 | ||
33 | --- a/src/designer/src/src.pro | ||
34 | +++ b/src/designer/src/src.pro | ||
35 | @@ -1,10 +1,12 @@ | ||
36 | TEMPLATE = subdirs | ||
37 | CONFIG += ordered | ||
38 | |||
39 | -SUBDIRS = \ | ||
40 | - uitools \ | ||
41 | - lib \ | ||
42 | - components \ | ||
43 | - designer | ||
44 | +!linguistonly { | ||
45 | + SUBDIRS = \ | ||
46 | + lib \ | ||
47 | + components \ | ||
48 | + designer | ||
49 | +} | ||
50 | +SUBDIRS += uitools | ||
51 | |||
52 | -contains(QT_CONFIG, shared): SUBDIRS += plugins | ||
53 | +!linguistonly:contains(QT_CONFIG, shared): SUBDIRS += plugins | ||
54 | diff --git a/src/linguist/linguist.pro b/src/linguist/linguist.pro | ||
55 | index 04b0ab6..8c63bb4 100644 | ||
56 | --- a/src/linguist/linguist.pro | ||
57 | +++ b/src/linguist/linguist.pro | ||
58 | @@ -3,7 +3,7 @@ SUBDIRS = \ | ||
59 | lrelease \ | ||
60 | lupdate \ | ||
61 | lconvert | ||
62 | -!no-png:qtHaveModule(widgets): SUBDIRS += linguist | ||
63 | +!linguistonly:!no-png:qtHaveModule(widgets): SUBDIRS += linguist | ||
64 | |||
65 | win32:CMAKE_BIN_SUFFIX = ".exe" | ||
66 | |||
67 | diff --git a/src/src.pro b/src/src.pro | ||
68 | index 3799567..7deb785 100644 | ||
69 | --- a/src/src.pro | ||
70 | +++ b/src/src.pro | ||
71 | @@ -5,10 +5,12 @@ qtHaveModule(widgets) { | ||
72 | no-png { | ||
73 | message("Some graphics-related tools are unavailable without PNG support") | ||
74 | } else { | ||
75 | - SUBDIRS = assistant \ | ||
76 | + !linguistonly { | ||
77 | + SUBDIRS = assistant \ | ||
78 | pixeltool \ | ||
79 | - qtestlib \ | ||
80 | - designer | ||
81 | + qtestlib | ||
82 | + } | ||
83 | + SUBDIRS += designer | ||
84 | # unix:!mac:!embedded:!qpa:SUBDIRS += qtconfig | ||
85 | } | ||
86 | } | ||
87 | @@ -21,7 +23,7 @@ mac { | ||
88 | |||
89 | embedded:SUBDIRS += kmap2qmap | ||
90 | |||
91 | -qtHaveModule(dbus): SUBDIRS += qdbus | ||
92 | +!linguistonly:qtHaveModule(dbus): SUBDIRS += qdbus | ||
93 | # We don't need these command line utilities on embedded platforms. | ||
94 | embedded: SUBDIRS += makeqpf | ||
95 | |||
96 | diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro | ||
97 | index 074aa34..d38e05d 100644 | ||
98 | --- a/tests/auto/auto.pro | ||
99 | +++ b/tests/auto/auto.pro | ||
100 | @@ -1,13 +1,15 @@ | ||
101 | TEMPLATE=subdirs | ||
102 | -SUBDIRS=\ | ||
103 | - linguist \ | ||
104 | - host.pro \ | ||
105 | - qhelpcontentmodel \ | ||
106 | - qhelpenginecore \ | ||
107 | - qhelpgenerator \ | ||
108 | - qhelpindexmodel \ | ||
109 | - qhelpprojectdata \ | ||
110 | - cmake | ||
111 | +!linguistonly { | ||
112 | + SUBDIRS=\ | ||
113 | + linguist \ | ||
114 | + host.pro \ | ||
115 | + qhelpcontentmodel \ | ||
116 | + qhelpenginecore \ | ||
117 | + qhelpgenerator \ | ||
118 | + qhelpindexmodel \ | ||
119 | + qhelpprojectdata \ | ||
120 | + cmake | ||
121 | +} | ||
122 | |||
123 | # These tests don't make sense for cross-compiled builds | ||
124 | cross_compile:SUBDIRS -= host.pro | ||
125 | -- | ||
126 | 1.7.10.4 | ||
127 | |||
diff --git a/recipes-qt/qt5/qttools-native_5.0.2.bb b/recipes-qt/qt5/qttools-native_5.0.2.bb deleted file mode 100644 index 2ce71679..00000000 --- a/recipes-qt/qt5/qttools-native_5.0.2.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | SRC_URI[md5sum] = "93ddcfdb87c6a784b0a921d09eafbdad" | ||
5 | SRC_URI[sha256sum] = "bb9bcf38dbb429cf884d688793681257876f97a2c0fba08528393a39eec7755b" | ||
diff --git a/recipes-qt/qt5/qtwayland-5.1.0+git/0001-xcbcommon-should-not-be-a-mandatory-dependency.patch b/recipes-qt/qt5/qtwayland-5.1.0+git/0001-xcbcommon-should-not-be-a-mandatory-dependency.patch deleted file mode 100644 index 0571ea5e..00000000 --- a/recipes-qt/qt5/qtwayland-5.1.0+git/0001-xcbcommon-should-not-be-a-mandatory-dependency.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 7f97da120b5b3dde22c9d89a8da8a4f35a9f2a26 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Tue, 19 Feb 2013 11:16:05 -0800 | ||
4 | Subject: [PATCH 1/3] xcbcommon should not be a mandatory dependency | ||
5 | |||
6 | Not all platforms that use qtwayland depend on xcbcommon to be present | ||
7 | for them to be functional | ||
8 | |||
9 | This change won't be needed when this commit from dev branch is merged | ||
10 | to stable: | ||
11 | commit 894adf8a447865119be7c6c4d01577d8032f4177 | ||
12 | Author: Oswald Buddenhagen <oswald.buddenhagen@digia.com> | ||
13 | Date: Mon Apr 8 12:54:58 2013 +0200 | ||
14 | |||
15 | make failure to configure wayland non-fatal for a top-level build of qt | ||
16 | |||
17 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
18 | --- | ||
19 | qtwayland.pro | 4 ++-- | ||
20 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/qtwayland.pro b/qtwayland.pro | ||
23 | index 24e104b..66dd38a 100644 | ||
24 | --- a/qtwayland.pro | ||
25 | +++ b/qtwayland.pro | ||
26 | @@ -11,7 +11,7 @@ qtCompileTest(xcomposite) | ||
27 | load(qt_parts) | ||
28 | |||
29 | !config_wayland { | ||
30 | - error(QtWayland requires Wayland 1.0.3 or higher) | ||
31 | + error("QtWayland requires Wayland 1.0.3 or higher") | ||
32 | } | ||
33 | |||
34 | !config_xkbcommon { | ||
35 | @@ -19,7 +19,7 @@ load(qt_parts) | ||
36 | } | ||
37 | |||
38 | !config_wayland_scanner { | ||
39 | - error(QtWayland requires wayland-scanner) | ||
40 | + error("QtWayland requires wayland-scanner") | ||
41 | } | ||
42 | |||
43 | !config_wayland_egl { | ||
44 | -- | ||
45 | 1.8.2.1 | ||
46 | |||
diff --git a/recipes-qt/qt5/qtwayland-5.1.0+git/0002-Temporarily-patching-this-out-as-Qt5.0.0-does-not-ha.patch b/recipes-qt/qt5/qtwayland-5.1.0+git/0002-Temporarily-patching-this-out-as-Qt5.0.0-does-not-ha.patch deleted file mode 100644 index 77172908..00000000 --- a/recipes-qt/qt5/qtwayland-5.1.0+git/0002-Temporarily-patching-this-out-as-Qt5.0.0-does-not-ha.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | From 5b7c89d211a193acfd182eb0519b658629af3193 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Fri, 1 Mar 2013 13:00:53 -0800 | ||
4 | Subject: [PATCH 2/3] Temporarily patching this out as Qt5.0.0 does not have | ||
5 | qtHaveModule | ||
6 | |||
7 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
8 | --- | ||
9 | src/compositor/compositor_api/compositor_api.pri | 4 ++-- | ||
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/src/compositor/compositor_api/compositor_api.pri b/src/compositor/compositor_api/compositor_api.pri | ||
13 | index f0bbe76..e7905e5 100644 | ||
14 | --- a/src/compositor/compositor_api/compositor_api.pri | ||
15 | +++ b/src/compositor/compositor_api/compositor_api.pri | ||
16 | @@ -12,7 +12,7 @@ SOURCES += \ | ||
17 | |||
18 | QT += core-private | ||
19 | |||
20 | -qtHaveModule(quick) { | ||
21 | +#qtHaveModule(quick) { | ||
22 | SOURCES += \ | ||
23 | compositor_api/qwaylandsurfaceitem.cpp \ | ||
24 | compositor_api/qwaylandsurfacenode.cpp \ | ||
25 | @@ -27,4 +27,4 @@ qtHaveModule(quick) { | ||
26 | |||
27 | QT += qml quick | ||
28 | QT += quick-private gui-private | ||
29 | -} | ||
30 | +#} | ||
31 | -- | ||
32 | 1.8.2.1 | ||
33 | |||
diff --git a/recipes-qt/qt5/qtwayland-5.1.0+git/0003-eglCreateImageKHR-requires-the-context-to-be-NULL.patch b/recipes-qt/qt5/qtwayland-5.1.0+git/0003-eglCreateImageKHR-requires-the-context-to-be-NULL.patch deleted file mode 100644 index 58f82663..00000000 --- a/recipes-qt/qt5/qtwayland-5.1.0+git/0003-eglCreateImageKHR-requires-the-context-to-be-NULL.patch +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | From 2d707f8dc9f0658d889aef4f4c5a62595598402c Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | ||
3 | Date: Wed, 6 Mar 2013 10:18:49 -0800 | ||
4 | Subject: [PATCH 3/3] eglCreateImageKHR requires the context to be NULL | ||
5 | |||
6 | As per the EGL spec the context passed to that function should | ||
7 | be null. | ||
8 | |||
9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
10 | --- | ||
11 | .../wayland-egl/waylandeglintegration.cpp | 16 ++-------------- | ||
12 | 1 file changed, 2 insertions(+), 14 deletions(-) | ||
13 | |||
14 | diff --git a/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp b/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp | ||
15 | index 73877c4..16e77fb 100644 | ||
16 | --- a/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp | ||
17 | +++ b/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp | ||
18 | @@ -101,7 +101,6 @@ public: | ||
19 | |||
20 | PFNGLEGLIMAGETARGETTEXTURE2DOESPROC gl_egl_image_target_texture_2d; | ||
21 | |||
22 | - QPlatformNativeInterface::NativeResourceForContextFunction get_egl_context; | ||
23 | }; | ||
24 | |||
25 | WaylandEglIntegration::WaylandEglIntegration() | ||
26 | @@ -121,10 +120,6 @@ void WaylandEglIntegration::initializeHardware(QtWayland::Display *waylandDispla | ||
27 | const char *extensionString = eglQueryString(d->egl_display, EGL_EXTENSIONS); | ||
28 | if (extensionString && strstr(extensionString, "EGL_WL_bind_wayland_display")) | ||
29 | { | ||
30 | - d->get_egl_context = nativeInterface->nativeResourceFunctionForContext("get_egl_context"); | ||
31 | - if (!d->get_egl_context) { | ||
32 | - qWarning("Failed to retrieve the get_egl_context function"); | ||
33 | - } | ||
34 | d->egl_bind_wayland_display = | ||
35 | reinterpret_cast<PFNEGLBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglBindWaylandDisplayWL")); | ||
36 | d->egl_unbind_wayland_display = | ||
37 | @@ -137,7 +132,6 @@ void WaylandEglIntegration::initializeHardware(QtWayland::Display *waylandDispla | ||
38 | reinterpret_cast<PFNGLEGLIMAGETARGETTEXTURE2DOESPROC>(eglGetProcAddress("glEGLImageTargetTexture2DOES")); | ||
39 | |||
40 | if (d->egl_bind_wayland_display | ||
41 | - && d->get_egl_context | ||
42 | && d->egl_unbind_wayland_display | ||
43 | && d->egl_create_image | ||
44 | && d->egl_destroy_image | ||
45 | @@ -162,10 +156,7 @@ GLuint WaylandEglIntegration::createTextureFromBuffer(wl_buffer *buffer, QOpenGL | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | - QPlatformNativeInterface *nativeInterface = QGuiApplication::platformNativeInterface(); | ||
50 | - EGLContext egl_context = d->get_egl_context(context); | ||
51 | - | ||
52 | - EGLImageKHR image = d->egl_create_image(d->egl_display, egl_context, | ||
53 | + EGLImageKHR image = d->egl_create_image(d->egl_display, NULL, | ||
54 | EGL_WAYLAND_BUFFER_WL, | ||
55 | buffer, NULL); | ||
56 | |||
57 | @@ -229,10 +220,7 @@ void *WaylandEglIntegration::lockNativeBuffer(struct wl_buffer *buffer, QOpenGLC | ||
58 | { | ||
59 | Q_D(const WaylandEglIntegration); | ||
60 | |||
61 | - QPlatformNativeInterface *nativeInterface = QGuiApplication::platformNativeInterface(); | ||
62 | - EGLContext egl_context = d->get_egl_context(context); | ||
63 | - | ||
64 | - EGLImageKHR image = d->egl_create_image(d->egl_display, egl_context, | ||
65 | + EGLImageKHR image = d->egl_create_image(d->egl_display, NULL, | ||
66 | EGL_WAYLAND_BUFFER_WL, | ||
67 | buffer, NULL); | ||
68 | return image; | ||
69 | -- | ||
70 | 1.8.2.1 | ||
71 | |||
diff --git a/recipes-qt/qt5/qtwayland-git/0001-xcbcommon-should-not-be-a-mandatory-dependency.patch b/recipes-qt/qt5/qtwayland-git/0001-xcbcommon-should-not-be-a-mandatory-dependency.patch index e9e705cd..0571ea5e 100644 --- a/recipes-qt/qt5/qtwayland-git/0001-xcbcommon-should-not-be-a-mandatory-dependency.patch +++ b/recipes-qt/qt5/qtwayland-git/0001-xcbcommon-should-not-be-a-mandatory-dependency.patch | |||
@@ -1,33 +1,38 @@ | |||
1 | From c8417a2b0b66c26eaa0569c19422f87598e29629 Mon Sep 17 00:00:00 2001 | 1 | From 7f97da120b5b3dde22c9d89a8da8a4f35a9f2a26 Mon Sep 17 00:00:00 2001 |
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | 2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> |
3 | Date: Tue, 19 Feb 2013 11:16:05 -0800 | 3 | Date: Tue, 19 Feb 2013 11:16:05 -0800 |
4 | Subject: [PATCH 1/4] xcbcommon should not be a mandatory dependency | 4 | Subject: [PATCH 1/3] xcbcommon should not be a mandatory dependency |
5 | 5 | ||
6 | Not all platforms that use qtwayland depend on xcbcommon to be present | 6 | Not all platforms that use qtwayland depend on xcbcommon to be present |
7 | for them to be functional | 7 | for them to be functional |
8 | 8 | ||
9 | Change-Id: I899d9314bdf772a9d5b8b7c143636f9f12c8ad1d | 9 | This change won't be needed when this commit from dev branch is merged |
10 | to stable: | ||
11 | commit 894adf8a447865119be7c6c4d01577d8032f4177 | ||
12 | Author: Oswald Buddenhagen <oswald.buddenhagen@digia.com> | ||
13 | Date: Mon Apr 8 12:54:58 2013 +0200 | ||
14 | |||
15 | make failure to configure wayland non-fatal for a top-level build of qt | ||
10 | 16 | ||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 17 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
12 | --- | 18 | --- |
13 | qtwayland.pro | 6 +++--- | 19 | qtwayland.pro | 4 ++-- |
14 | 1 file changed, 3 insertions(+), 3 deletions(-) | 20 | 1 file changed, 2 insertions(+), 2 deletions(-) |
15 | 21 | ||
16 | diff --git a/qtwayland.pro b/qtwayland.pro | 22 | diff --git a/qtwayland.pro b/qtwayland.pro |
17 | index ee0e5ac..f1a6b6f 100644 | 23 | index 24e104b..66dd38a 100644 |
18 | --- a/qtwayland.pro | 24 | --- a/qtwayland.pro |
19 | +++ b/qtwayland.pro | 25 | +++ b/qtwayland.pro |
20 | @@ -11,15 +11,15 @@ qtCompileTest(xcomposite) | 26 | @@ -11,7 +11,7 @@ qtCompileTest(xcomposite) |
21 | load(qt_parts) | 27 | load(qt_parts) |
22 | 28 | ||
23 | !config_wayland { | 29 | !config_wayland { |
24 | - error(QtWayland requires Wayland 1.0.0 or higher) | 30 | - error(QtWayland requires Wayland 1.0.3 or higher) |
25 | + error("QtWayland requires Wayland 1.0.0 or higher") | 31 | + error("QtWayland requires Wayland 1.0.3 or higher") |
26 | } | 32 | } |
27 | 33 | ||
28 | !config_xkbcommon { | 34 | !config_xkbcommon { |
29 | - error(QtWayland requires xkbcommon 0.2.0 or higher) | 35 | @@ -19,7 +19,7 @@ load(qt_parts) |
30 | + warning("No xkbcommon 0.2.0 or higher found, disabling support for it") | ||
31 | } | 36 | } |
32 | 37 | ||
33 | !config_wayland_scanner { | 38 | !config_wayland_scanner { |
diff --git a/recipes-qt/qt5/qtwayland-git/0002-Temporarily-patching-this-out-as-Qt5.0.0-does-not-ha.patch b/recipes-qt/qt5/qtwayland-git/0002-Temporarily-patching-this-out-as-Qt5.0.0-does-not-ha.patch index 0c9bbbe7..77172908 100644 --- a/recipes-qt/qt5/qtwayland-git/0002-Temporarily-patching-this-out-as-Qt5.0.0-does-not-ha.patch +++ b/recipes-qt/qt5/qtwayland-git/0002-Temporarily-patching-this-out-as-Qt5.0.0-does-not-ha.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From ae72fc41609c15293b1027ca3f2c4d712e4ae478 Mon Sep 17 00:00:00 2001 | 1 | From 5b7c89d211a193acfd182eb0519b658629af3193 Mon Sep 17 00:00:00 2001 |
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | 2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> |
3 | Date: Fri, 1 Mar 2013 13:00:53 -0800 | 3 | Date: Fri, 1 Mar 2013 13:00:53 -0800 |
4 | Subject: [PATCH 2/4] Temporarily patching this out as Qt5.0.0 does not have | 4 | Subject: [PATCH 2/3] Temporarily patching this out as Qt5.0.0 does not have |
5 | qtHaveModule | 5 | qtHaveModule |
6 | 6 | ||
7 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 7 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
diff --git a/recipes-qt/qt5/qtwayland-git/0003-eglCreateImageKHR-requires-the-context-to-be-NULL.patch b/recipes-qt/qt5/qtwayland-git/0003-eglCreateImageKHR-requires-the-context-to-be-NULL.patch index 48eb870b..58f82663 100644 --- a/recipes-qt/qt5/qtwayland-git/0003-eglCreateImageKHR-requires-the-context-to-be-NULL.patch +++ b/recipes-qt/qt5/qtwayland-git/0003-eglCreateImageKHR-requires-the-context-to-be-NULL.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From ca1f46a6192061e254deca1810d25ba423acb8de Mon Sep 17 00:00:00 2001 | 1 | From 2d707f8dc9f0658d889aef4f4c5a62595598402c Mon Sep 17 00:00:00 2001 |
2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> | 2 | From: Mikko Levonmaa <mikko.levonmaa@palm.com> |
3 | Date: Wed, 6 Mar 2013 10:18:49 -0800 | 3 | Date: Wed, 6 Mar 2013 10:18:49 -0800 |
4 | Subject: [PATCH 3/4] eglCreateImageKHR requires the context to be NULL | 4 | Subject: [PATCH 3/3] eglCreateImageKHR requires the context to be NULL |
5 | 5 | ||
6 | As per the EGL spec the context passed to that function should | 6 | As per the EGL spec the context passed to that function should |
7 | be null. | 7 | be null. |
@@ -12,7 +12,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
12 | 1 file changed, 2 insertions(+), 14 deletions(-) | 12 | 1 file changed, 2 insertions(+), 14 deletions(-) |
13 | 13 | ||
14 | diff --git a/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp b/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp | 14 | diff --git a/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp b/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp |
15 | index 2a923ce..2be1e4c 100644 | 15 | index 73877c4..16e77fb 100644 |
16 | --- a/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp | 16 | --- a/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp |
17 | +++ b/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp | 17 | +++ b/src/plugins/waylandcompositors/wayland-egl/waylandeglintegration.cpp |
18 | @@ -101,7 +101,6 @@ public: | 18 | @@ -101,7 +101,6 @@ public: |
diff --git a/recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch b/recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch deleted file mode 100644 index 47ea65fd..00000000 --- a/recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 5c70644070803b665f64c2d3212b55a4a3270765 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Stone <daniel@fooishbar.org> | ||
3 | Date: Sun, 10 Mar 2013 11:29:38 -0700 | ||
4 | Subject: [PATCH 4/4] EGL: Specify vec2d precision qualifier in fragment shader | ||
5 | |||
6 | GLSL does not specify a default precision qualifier here, so we have to | ||
7 | explicitly define it. Use highp, as it gets redefined to mediump by | ||
8 | QGLShaderProgram when not available. | ||
9 | |||
10 | Signed-off-by: Daniel Stone <daniel@fooishbar.org> | ||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp b/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | ||
17 | index 4d8017d..a0ac6d9 100644 | ||
18 | --- a/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | ||
19 | +++ b/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | ||
20 | @@ -124,7 +124,7 @@ void QWaylandGLContext::swapBuffers(QPlatformSurface *surface) | ||
21 | gl_Position = position;\n\ | ||
22 | outTexCoords = texCoords.xy;\n\ | ||
23 | }"); | ||
24 | - m_blitProgram->addShaderFromSourceCode(QOpenGLShader::Fragment, "varying vec2 outTexCoords;\n\ | ||
25 | + m_blitProgram->addShaderFromSourceCode(QOpenGLShader::Fragment, "varying highp vec2 outTexCoords;\n\ | ||
26 | uniform sampler2D texture;\n\ | ||
27 | void main()\n\ | ||
28 | {\n\ | ||
29 | -- | ||
30 | 1.8.2.1 | ||
31 | |||
diff --git a/recipes-qt/qt5/qtwayland.inc b/recipes-qt/qt5/qtwayland.inc index 40dd803a..15802235 100644 --- a/recipes-qt/qt5/qtwayland.inc +++ b/recipes-qt/qt5/qtwayland.inc | |||
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://${S}/src/compositor/compositor_api/qwaylandsurfacenod | |||
11 | # make it easier to remove by .bbappend (e.g. for building qtwayland with danny which doesn't | 11 | # make it easier to remove by .bbappend (e.g. for building qtwayland with danny which doesn't |
12 | # have libxkbcommon in oe-core). | 12 | # have libxkbcommon in oe-core). |
13 | XKB_DEPENDS = "libxkbcommon xproto" | 13 | XKB_DEPENDS = "libxkbcommon xproto" |
14 | DEPENDS += "qtbase qtdeclarative wayland wayland-native ${XKB_DEPENDS}" | 14 | DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native ${XKB_DEPENDS}" |
15 | 15 | ||
16 | SRC_URI += " \ | 16 | SRC_URI += " \ |
17 | file://0001-xcbcommon-should-not-be-a-mandatory-dependency.patch \ | 17 | file://0001-xcbcommon-should-not-be-a-mandatory-dependency.patch \ |
diff --git a/recipes-qt/qt5/qtwayland_5.1.0+git.bb b/recipes-qt/qt5/qtwayland_5.1.0+git.bb deleted file mode 100644 index 31ed85c3..00000000 --- a/recipes-qt/qt5/qtwayland_5.1.0+git.bb +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | require qt5-git.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${BPN}-5.1.0+git:" | ||
5 | |||
6 | DEPENDS += "qtwayland-native" | ||
7 | |||
8 | # qtwayland_git has -1 and should be default | ||
9 | DEFAULT_PREFERRENCE = "-2" | ||
10 | |||
11 | # qtwayland wasn't released yet, last tag before this SRCREV is 5.0.0-beta1 | ||
12 | # this PV is only to indicate that this recipe is compatible with qt5 5.1.0 | ||
13 | # while qtwayland_git stays compatible with 5.0.2 | ||
14 | PV = "5.1.0+git${SRCPV}" | ||
15 | |||
16 | # newer revisions depend on newer wayland-1.1 APIs | ||
17 | SRCREV = "87dba733acfddecd8562e8e26ce5f994aa499fe3" | ||
18 | # SRCREV = "ede872db1cdfdc2810c2dd29edd5fb6e1cdac0f5" | ||
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb index 170b3673..ca7f3de1 100644 --- a/recipes-qt/qt5/qtwayland_git.bb +++ b/recipes-qt/qt5/qtwayland_git.bb | |||
@@ -1,22 +1,10 @@ | |||
1 | require qt5-git.inc | 1 | require qt5-git.inc |
2 | require ${PN}.inc | 2 | require ${PN}.inc |
3 | 3 | ||
4 | # qtwayland wasn't released yet, last tag before this SRCREV is 5.0.0-beta1, | 4 | # qtwayland wasn't released yet, last tag before this SRCREV is 5.0.0-beta1 |
5 | # but we'll use 5.0.2+git to indicate this version is compatible with 5.0.2 | 5 | # this PV is only to indicate that this recipe is compatible with qt5 5.1.0 |
6 | PV = "5.0.2+git${SRCPV}" | 6 | PV = "5.1.0+git${SRCPV}" |
7 | 7 | ||
8 | # drop when bumping SRCREV | 8 | # newer revisions depend on newer wayland-1.1 APIs |
9 | PR = "r2" | 9 | SRCREV = "87dba733acfddecd8562e8e26ce5f994aa499fe3" |
10 | 10 | # SRCREV = "ede872db1cdfdc2810c2dd29edd5fb6e1cdac0f5" | |
11 | SRCREV = "5cb159395eccb1d96fb73a78e499eef30aacb46d" | ||
12 | |||
13 | SRC_URI += " \ | ||
14 | file://0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch \ | ||
15 | " | ||
16 | |||
17 | do_configure_prepend() { | ||
18 | # Temporary hack to get qtwayland build for Qt 5.0.2 | ||
19 | if ! grep -q MODULE_VERSION ${S}/.qmake.conf; then | ||
20 | echo "MODULE_VERSION = 0.0.0" >> ${S}/.qmake.conf | ||
21 | fi | ||
22 | } | ||
diff --git a/recipes-qt/qt5/qtwebkit-examples_5.0.2.bb b/recipes-qt/qt5/qtwebkit-examples_5.0.2.bb deleted file mode 100644 index 42a2264b..00000000 --- a/recipes-qt/qt5/qtwebkit-examples_5.0.2.bb +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | # was renamed to just qtwebkit-examples in 5.1 | ||
5 | QT_MODULE = "qtwebkit-examples-and-demos" | ||
6 | |||
7 | SRC_URI[md5sum] = "9c48df80ba9bb3587b4d6ec35daf840a" | ||
8 | SRC_URI[sha256sum] = "10981ae3a6775387badce33542733d63895c5a62b3b33e0973d782ec1b9174e6" | ||
diff --git a/recipes-qt/qt5/qtwebkit_5.0.2.bb b/recipes-qt/qt5/qtwebkit_5.0.2.bb deleted file mode 100644 index ab1cacd5..00000000 --- a/recipes-qt/qt5/qtwebkit_5.0.2.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI[md5sum] = "85aad9f287910c21c8464d7d1ea010a9" | ||
7 | SRC_URI[sha256sum] = "6ff4038f8db68be51661d1a6646f510b26f6ebbecbdeefb76cd8361f808768f6" | ||
diff --git a/recipes-qt/qt5/qtxmlpatterns_5.0.2.bb b/recipes-qt/qt5/qtxmlpatterns_5.0.2.bb deleted file mode 100644 index 47cdb320..00000000 --- a/recipes-qt/qt5/qtxmlpatterns_5.0.2.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | require qt5-${PV}.inc | ||
2 | require ${PN}.inc | ||
3 | |||
4 | # LICENSE.FDL is missing in 5.0.2, added a bit later: | ||
5 | # commit 3bc0756a63d348d3446d9581f45429c417fd9c29 | ||
6 | # Author: Sergio Ahumada <sergio.ahumada@digia.com> | ||
7 | # Date: Thu Apr 18 11:38:32 2013 +0200 | ||
8 | # Add missing LICENSE.FDL file | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
10 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
11 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
12 | " | ||
13 | |||
14 | PR = "r1" | ||
15 | |||
16 | SRC_URI[md5sum] = "29e6776165e43e9f3a865338121b4e1d" | ||
17 | SRC_URI[sha256sum] = "c05ae43fffc911ffda808deecebddd1b31916714cefc9cfd840689fc52ae20a6" | ||