diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2017-11-21 13:37:43 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2017-11-23 08:51:04 +0000 |
commit | e015edf046a88ca13dd603265f71a6e05662db72 (patch) | |
tree | f583c5c28c49a5a20c8be2d55e8a7c126ed8f1d4 | |
parent | af9c256fc4e99ec4692b4b95bffa85018bd8c767 (diff) | |
download | meta-qt5-e015edf046a88ca13dd603265f71a6e05662db72.tar.gz |
qtwebengine: update to 61-based chromium
Change-Id: I6f7f023a6517a5813c5243417207f9c872f07ecf
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
4 files changed, 3 insertions, 140 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0001-Build-accessibility-tests-only-when-Qt-is-configured.patch b/recipes-qt/qt5/qtwebengine/0001-Build-accessibility-tests-only-when-Qt-is-configured.patch deleted file mode 100644 index a5fb1d84..00000000 --- a/recipes-qt/qt5/qtwebengine/0001-Build-accessibility-tests-only-when-Qt-is-configured.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 4649f2a11fe4b87e9b79f50ff8ac99ba9a2344f4 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@qt.io> | ||
3 | Date: Wed, 25 Oct 2017 09:47:47 +0200 | ||
4 | Subject: [PATCH] Build accessibility tests only when Qt is configured with | ||
5 | accessibility | ||
6 | |||
7 | Original patch by Daniel Mack <daniel@zonque.org> | ||
8 | |||
9 | Task-number: QTBUG-64015 | ||
10 | Change-Id: I7dd0a1aa9bff08c6d19e818acf0e1b8b4b701f5b | ||
11 | Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> | ||
12 | --- | ||
13 | tests/auto/widgets/widgets.pro | 5 ++++- | ||
14 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/tests/auto/widgets/widgets.pro b/tests/auto/widgets/widgets.pro | ||
17 | index 441eea0..7bab18f 100644 | ||
18 | --- a/tests/auto/widgets/widgets.pro | ||
19 | +++ b/tests/auto/widgets/widgets.pro | ||
20 | @@ -1,7 +1,6 @@ | ||
21 | TEMPLATE = subdirs | ||
22 | |||
23 | SUBDIRS += \ | ||
24 | - qwebengineaccessibility \ | ||
25 | qwebenginedefaultsurfaceformat \ | ||
26 | qwebenginedownloads \ | ||
27 | qwebenginefaviconmanager \ | ||
28 | @@ -14,6 +13,10 @@ SUBDIRS += \ | ||
29 | qwebenginesettings \ | ||
30 | qwebengineview | ||
31 | |||
32 | +qtConfig(accessibility) { | ||
33 | + SUBDIRS += qwebengineaccessibility | ||
34 | +} | ||
35 | + | ||
36 | contains(WEBENGINE_CONFIG, use_spellchecker):!cross_compile { | ||
37 | !contains(WEBENGINE_CONFIG, use_native_spellchecker) { | ||
38 | SUBDIRS += qwebenginespellcheck | ||
39 | -- | ||
40 | 2.7.4 | ||
41 | |||
diff --git a/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch b/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch deleted file mode 100644 index 0e9ea724..00000000 --- a/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | From d559da6ab0834aeb7307008015b6232e586fea00 Mon Sep 17 00:00:00 2001 | ||
2 | From: Cleiton Bueno <cleitonrbueno@gmail.com> | ||
3 | Date: Thu, 24 Dec 2015 12:46:58 -0200 | ||
4 | Subject: [PATCH] chromium: Change false to FALSE and 1 to TRUE, FIX | ||
5 | qtwebengine compile | ||
6 | |||
7 | Signed-off-by: Cleiton Bueno <cleitonrbueno@gmail.com> | ||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | chromium/ui/gfx/codec/jpeg_codec.cc | 12 ++++++------ | ||
11 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
12 | |||
13 | diff --git a/chromium/ui/gfx/codec/jpeg_codec.cc b/chromium/ui/gfx/codec/jpeg_codec.cc | ||
14 | index 6d926378be..738d3fdedf 100644 | ||
15 | --- a/chromium/ui/gfx/codec/jpeg_codec.cc | ||
16 | +++ b/chromium/ui/gfx/codec/jpeg_codec.cc | ||
17 | @@ -121,7 +121,7 @@ boolean EmptyOutputBuffer(jpeg_compress_struct* cinfo) { | ||
18 | // tell libjpeg where to write the next data | ||
19 | cinfo->dest->next_output_byte = &(*state->out)[state->image_buffer_used]; | ||
20 | cinfo->dest->free_in_buffer = state->out->size() - state->image_buffer_used; | ||
21 | - return 1; | ||
22 | + return TRUE; | ||
23 | } | ||
24 | |||
25 | // Cleans up the JpegEncoderState to prepare for returning in the final form. | ||
26 | @@ -262,7 +262,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, | ||
27 | cinfo.data_precision = 8; | ||
28 | |||
29 | jpeg_set_defaults(&cinfo); | ||
30 | - jpeg_set_quality(&cinfo, quality, 1); // quality here is 0-100 | ||
31 | + jpeg_set_quality(&cinfo, quality, TRUE); // quality here is 0-100 | ||
32 | |||
33 | // set up the destination manager | ||
34 | jpeg_destination_mgr destmgr; | ||
35 | @@ -274,7 +274,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, | ||
36 | JpegEncoderState state(output); | ||
37 | cinfo.client_data = &state; | ||
38 | |||
39 | - jpeg_start_compress(&cinfo, 1); | ||
40 | + jpeg_start_compress(&cinfo, TRUE); | ||
41 | |||
42 | // feed it the rows, doing necessary conversions for the color format | ||
43 | #ifdef JCS_EXTENSIONS | ||
44 | @@ -360,7 +360,7 @@ void InitSource(j_decompress_ptr cinfo) { | ||
45 | // set to a positive value if TRUE is returned. A FALSE return should only | ||
46 | // be used when I/O suspension is desired." | ||
47 | boolean FillInputBuffer(j_decompress_ptr cinfo) { | ||
48 | - return false; | ||
49 | + return FALSE; | ||
50 | } | ||
51 | |||
52 | // Skip data in the buffer. Since we have all the data at once, this operation | ||
53 | @@ -488,8 +488,8 @@ bool JPEGCodec::Decode(const unsigned char* input, size_t input_size, | ||
54 | cinfo.client_data = &state; | ||
55 | |||
56 | // fill the file metadata into our buffer | ||
57 | - if (jpeg_read_header(&cinfo, true) != JPEG_HEADER_OK) | ||
58 | - return false; | ||
59 | + if (jpeg_read_header(&cinfo, TRUE) != JPEG_HEADER_OK) | ||
60 | + return FALSE; | ||
61 | |||
62 | // we want to always get RGB data out | ||
63 | switch (cinfo.jpeg_color_space) { | ||
diff --git a/recipes-qt/qt5/qtwebengine/0001-functions.prf-allow-build-for-linux-oe-g-platform.patch b/recipes-qt/qt5/qtwebengine/0001-functions.prf-allow-build-for-linux-oe-g-platform.patch deleted file mode 100644 index 275ef9e8..00000000 --- a/recipes-qt/qt5/qtwebengine/0001-functions.prf-allow-build-for-linux-oe-g-platform.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 96746f09947cc36f6c9fc8631bc6a6e7f59efe24 Mon Sep 17 00:00:00 2001 | ||
2 | From: Frieder Schrempf <frieder.schrempf@online.de> | ||
3 | Date: Mon, 1 Dec 2014 14:34:40 +0000 | ||
4 | Subject: [PATCH] functions.prf: allow build for linux-oe-g++ platform | ||
5 | |||
6 | Upstream-Status: Inappropriate [OE specific] | ||
7 | |||
8 | Signed-off-by: Frieder Schrempf <frieder.schrempf@online.de> | ||
9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
10 | --- | ||
11 | mkspecs/features/functions.prf | 6 ++++++ | ||
12 | 1 file changed, 6 insertions(+) | ||
13 | |||
14 | diff --git a/mkspecs/features/functions.prf b/mkspecs/features/functions.prf | ||
15 | index 56894e58..ef418a4c 100644 | ||
16 | --- a/mkspecs/features/functions.prf | ||
17 | +++ b/mkspecs/features/functions.prf | ||
18 | @@ -21,6 +21,12 @@ defineTest(isPlatformSupported) { | ||
19 | return(false) | ||
20 | } | ||
21 | gcc:!clang:!isGCCVersionSupported(): return(false) | ||
22 | + } else:linux-oe-g++* { | ||
23 | + !gcc:!clang { | ||
24 | + skipBuild("Qt WebEngine on Linux requires clang or GCC.") | ||
25 | + return(false) | ||
26 | + } | ||
27 | + gcc:!clang:!isGCCVersionSupported(): return(false) | ||
28 | } else:win32 { | ||
29 | winrt { | ||
30 | skipBuild("WinRT is not supported.") | ||
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb index f6318e15..f3c7c142 100644 --- a/recipes-qt/qt5/qtwebengine_git.bb +++ b/recipes-qt/qt5/qtwebengine_git.bb | |||
@@ -120,14 +120,12 @@ RDEPENDS_${PN}-examples += " \ | |||
120 | qtdeclarative-qmlplugins \ | 120 | qtdeclarative-qmlplugins \ |
121 | " | 121 | " |
122 | 122 | ||
123 | QT_MODULE_BRANCH_CHROMIUM = "58-based" | 123 | QT_MODULE_BRANCH_CHROMIUM = "61-based" |
124 | 124 | ||
125 | # Patches from https://github.com/meta-qt5/qtwebengine/commits/b5.9 | 125 | # Patches from https://github.com/meta-qt5/qtwebengine/commits/b5.9 |
126 | # 5.9.meta-qt5.3 | 126 | # 5.9.meta-qt5.3 |
127 | SRC_URI += " \ | 127 | SRC_URI += " \ |
128 | ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \ | 128 | ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \ |
129 | file://0001-functions.prf-allow-build-for-linux-oe-g-platform.patch \ | ||
130 | file://0001-Build-accessibility-tests-only-when-Qt-is-configured.patch \ | ||
131 | file://0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch \ | 129 | file://0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch \ |
132 | file://0003-Include-dependency-to-QCoreApplication-translate.patch \ | 130 | file://0003-Include-dependency-to-QCoreApplication-translate.patch \ |
133 | file://0004-Force-host-toolchain-configuration.patch \ | 131 | file://0004-Force-host-toolchain-configuration.patch \ |
@@ -136,7 +134,6 @@ SRC_URI += " \ | |||
136 | # Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/56-based | 134 | # Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/56-based |
137 | # 56-based.meta-qt5.2 | 135 | # 56-based.meta-qt5.2 |
138 | SRC_URI += " \ | 136 | SRC_URI += " \ |
139 | file://0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch;patchdir=src/3rdparty \ | ||
140 | file://0002-chromium-Force-host-toolchain-configuration.patch;patchdir=src/3rdparty \ | 137 | file://0002-chromium-Force-host-toolchain-configuration.patch;patchdir=src/3rdparty \ |
141 | file://0003-chromium-workaround-for-too-long-.rps-file-name.patch;patchdir=src/3rdparty \ | 138 | file://0003-chromium-workaround-for-too-long-.rps-file-name.patch;patchdir=src/3rdparty \ |
142 | " | 139 | " |
@@ -157,8 +154,8 @@ SRC_URI_append_libc-musl = "\ | |||
157 | file://0016-chromium-musl-tcmalloc-Use-off64_t-insread-of-__off6.patch;patchdir=src/3rdparty \ | 154 | file://0016-chromium-musl-tcmalloc-Use-off64_t-insread-of-__off6.patch;patchdir=src/3rdparty \ |
158 | " | 155 | " |
159 | 156 | ||
160 | SRCREV_qtwebengine = "f32b3514a5186bc4f5452f004324bdb7782d30a3" | 157 | SRCREV_qtwebengine = "5617373d9b5ded9d4c724b15132d6989ed9e05f9" |
161 | SRCREV_chromium = "582c5493439ba9ac57c6c14c706f530741f5bfc8" | 158 | SRCREV_chromium = "2366767e6c6f333ef090667aa6838d6781725a78" |
162 | SRCREV = "${SRCREV_qtwebengine}" | 159 | SRCREV = "${SRCREV_qtwebengine}" |
163 | 160 | ||
164 | SRCREV_FORMAT = "qtwebengine_chromium" | 161 | SRCREV_FORMAT = "qtwebengine_chromium" |