diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-02-13 14:53:16 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-02-15 08:31:24 +0200 |
commit | 85e33e5c9998d15fc2af4682b72913bc2f6ea489 (patch) | |
tree | c4f0b9a9ba26bebfcbb717c9d939b4ccc97b4467 | |
parent | 0cc8a8a21e1ba7ffa237c64608b2a6678897c096 (diff) | |
parent | 251beba0ca5f7fae85b8fd9c20851c53347c9722 (diff) | |
download | meta-qt5-85e33e5c9998d15fc2af4682b72913bc2f6ea489.tar.gz |
Merge remote-tracking branch 'qtyocto/5.8' into 5.9
* qtyocto/5.8 (upstream/master):
qtwebkit: depends on gperf-native
qtwebengine: disable generate_character_data
qtwayland: fix build without xkbcommon-evdev
qtwayland: Add libxkbcommon in the dependencies
qtbase: create empty oe-device-extra.pri
cmake_qt5.bbclass: add qtbase-native to DEPENDS
Upgrade to Qt 5.8
qtbase: Remove comments about ICU and QtWebKit
qtwebkit: Always enable icu in QT_CONFIG
qtwebengine: use QT_GIT_PROTOCOL variable
Change-Id: Idf617e8301dfa820b8fbbbdb2e09e53d18bcc8ae
-rw-r--r-- | classes/cmake_qt5.bbclass | 2 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 8 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch | 44 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwayland_git.bb | 4 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwebengine_git.bb | 4 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwebkit_git.bb | 5 |
6 files changed, 58 insertions, 9 deletions
diff --git a/classes/cmake_qt5.bbclass b/classes/cmake_qt5.bbclass index 3180fd6d..5d605a68 100644 --- a/classes/cmake_qt5.bbclass +++ b/classes/cmake_qt5.bbclass | |||
@@ -1,7 +1,7 @@ | |||
1 | inherit cmake | 1 | inherit cmake |
2 | inherit qmake5_paths | 2 | inherit qmake5_paths |
3 | 3 | ||
4 | DEPENDS_prepend = "qtbase " | 4 | DEPENDS_prepend = "qtbase qtbase-native " |
5 | 5 | ||
6 | EXTRA_OECMAKE_prepend = " \ | 6 | EXTRA_OECMAKE_prepend = " \ |
7 | -DOE_QMAKE_PATH_PREFIX=${OE_QMAKE_PATH_PREFIX} \ | 7 | -DOE_QMAKE_PATH_PREFIX=${OE_QMAKE_PATH_PREFIX} \ |
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 9c55997f..c0bcd817 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
@@ -31,10 +31,6 @@ DEPENDS += "qtbase-native" | |||
31 | RDEPENDS_${PN}-tools += "perl" | 31 | RDEPENDS_${PN}-tools += "perl" |
32 | 32 | ||
33 | # separate some parts of PACKAGECONFIG which are often changed | 33 | # separate some parts of PACKAGECONFIG which are often changed |
34 | # be aware that you need to add icu to build qtwebkit, default | ||
35 | # PACKAGECONFIG is kept rather minimal for people who don't need | ||
36 | # stuff like webkit (and it's easier to add options than remove) | ||
37 | |||
38 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" | 34 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" |
39 | PACKAGECONFIG_FB ?= "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}" | 35 | PACKAGECONFIG_FB ?= "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}" |
40 | PACKAGECONFIG_X11 ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcb xrender xinput2 glib xkb xkbcommon-evdev', '', d)}" | 36 | PACKAGECONFIG_X11 ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcb xrender xinput2 glib xkb xkbcommon-evdev', '', d)}" |
@@ -114,7 +110,6 @@ PACKAGECONFIG[directfb] = "-directfb,-no-directfb,directfb" | |||
114 | PACKAGECONFIG[linuxfb] = "-linuxfb,-no-linuxfb" | 110 | PACKAGECONFIG[linuxfb] = "-linuxfb,-no-linuxfb" |
115 | PACKAGECONFIG[kms] = "-kms,-no-kms,drm virtual/egl" | 111 | PACKAGECONFIG[kms] = "-kms,-no-kms,drm virtual/egl" |
116 | PACKAGECONFIG[gbm] = "-gbm,-no-gbm,virtual/mesa" | 112 | PACKAGECONFIG[gbm] = "-gbm,-no-gbm,virtual/mesa" |
117 | # needed for qtwebkit | ||
118 | PACKAGECONFIG[icu] = "-icu,-no-icu,icu" | 113 | PACKAGECONFIG[icu] = "-icu,-no-icu,icu" |
119 | PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev" | 114 | PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev" |
120 | PACKAGECONFIG[openssl] = "-openssl,-no-openssl,openssl,libssl" | 115 | PACKAGECONFIG[openssl] = "-openssl,-no-openssl,openssl,libssl" |
@@ -133,6 +128,9 @@ QT_CONFIG_FLAGS += " \ | |||
133 | " | 128 | " |
134 | 129 | ||
135 | do_configure() { | 130 | do_configure() { |
131 | # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration | ||
132 | touch ${S}/mkspecs/oe-device-extra.pri | ||
133 | |||
136 | ${S}/configure -v \ | 134 | ${S}/configure -v \ |
137 | -opensource -confirm-license \ | 135 | -opensource -confirm-license \ |
138 | -sysroot ${STAGING_DIR_TARGET} \ | 136 | -sysroot ${STAGING_DIR_TARGET} \ |
diff --git a/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch b/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch new file mode 100644 index 00000000..e1e978e8 --- /dev/null +++ b/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From c93dbe53e8a1b2203c750a66c7efe6fc9a326903 Mon Sep 17 00:00:00 2001 | ||
2 | From: Raphael Freudiger <raphael.freudiger@siemens.com> | ||
3 | Date: Thu, 22 Dec 2016 13:54:31 +0100 | ||
4 | Subject: [PATCH] fix build without xkbcommon-evdev | ||
5 | |||
6 | Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com> | ||
7 | --- | ||
8 | src/compositor/compositor_api/qwaylandkeyboard.cpp | 13 +++++++------ | ||
9 | 1 file changed, 7 insertions(+), 6 deletions(-) | ||
10 | |||
11 | diff --git a/src/compositor/compositor_api/qwaylandkeyboard.cpp b/src/compositor/compositor_api/qwaylandkeyboard.cpp | ||
12 | index 55381b4..5c054c6 100644 | ||
13 | --- a/src/compositor/compositor_api/qwaylandkeyboard.cpp | ||
14 | +++ b/src/compositor/compositor_api/qwaylandkeyboard.cpp | ||
15 | @@ -338,12 +338,6 @@ void QWaylandKeyboardPrivate::createXKBState(xkb_keymap *keymap) | ||
16 | xkb_state = xkb_state_new(keymap); | ||
17 | } | ||
18 | |||
19 | -uint QWaylandKeyboardPrivate::toWaylandXkbV1Key(const uint nativeScanCode) | ||
20 | -{ | ||
21 | - const uint offset = 8; | ||
22 | - Q_ASSERT(nativeScanCode >= offset); | ||
23 | - return nativeScanCode - offset; | ||
24 | -} | ||
25 | |||
26 | void QWaylandKeyboardPrivate::createXKBKeymap() | ||
27 | { | ||
28 | @@ -373,6 +367,13 @@ void QWaylandKeyboardPrivate::createXKBKeymap() | ||
29 | } | ||
30 | #endif | ||
31 | |||
32 | +uint QWaylandKeyboardPrivate::toWaylandXkbV1Key(const uint nativeScanCode) | ||
33 | +{ | ||
34 | + const uint offset = 8; | ||
35 | + Q_ASSERT(nativeScanCode >= offset); | ||
36 | + return nativeScanCode - offset; | ||
37 | +} | ||
38 | + | ||
39 | void QWaylandKeyboardPrivate::sendRepeatInfo() | ||
40 | { | ||
41 | Q_FOREACH (Resource *resource, resourceMap()) { | ||
42 | -- | ||
43 | 2.1.4 | ||
44 | |||
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb index 5a7302e0..21ba5e84 100644 --- a/recipes-qt/qt5/qtwayland_git.bb +++ b/recipes-qt/qt5/qtwayland_git.bb | |||
@@ -2,6 +2,7 @@ require qt5.inc | |||
2 | require qt5-git.inc | 2 | require qt5-git.inc |
3 | 3 | ||
4 | DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native" | 4 | DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native" |
5 | DEPENDS_append_class-target = " libxkbcommon" | ||
5 | 6 | ||
6 | LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" | 7 | LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" |
7 | LIC_FILES_CHKSUM = " \ | 8 | LIC_FILES_CHKSUM = " \ |
@@ -42,4 +43,7 @@ EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" | |||
42 | 43 | ||
43 | SRCREV = "e26696524ceb58f4fe0cb7202d873240b6a9478d" | 44 | SRCREV = "e26696524ceb58f4fe0cb7202d873240b6a9478d" |
44 | 45 | ||
46 | # From https://bugreports.qt.io/browse/QTBUG-57767 | ||
47 | SRC_URI += "file://0001-fix-build-without-xkbcommon-evdev.patch" | ||
48 | |||
45 | BBCLASSEXTEND =+ "native nativesdk" | 49 | BBCLASSEXTEND =+ "native nativesdk" |
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb index 5a58bba9..0ee37593 100644 --- a/recipes-qt/qt5/qtwebengine_git.bb +++ b/recipes-qt/qt5/qtwebengine_git.bb | |||
@@ -24,7 +24,7 @@ DEPENDS += " \ | |||
24 | " | 24 | " |
25 | 25 | ||
26 | DEPENDS += "yasm-native" | 26 | DEPENDS += "yasm-native" |
27 | EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm" | 27 | EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm GYP_CONFIG+=generate_character_data=0" |
28 | 28 | ||
29 | # To use system ffmpeg you need to enable also libwebp, opus, vpx | 29 | # To use system ffmpeg you need to enable also libwebp, opus, vpx |
30 | # Only depenedencies available in oe-core are enabled by default | 30 | # Only depenedencies available in oe-core are enabled by default |
@@ -105,7 +105,7 @@ RDEPENDS_${PN}-examples += " \ | |||
105 | QT_MODULE_BRANCH_CHROMIUM = "53-based" | 105 | QT_MODULE_BRANCH_CHROMIUM = "53-based" |
106 | 106 | ||
107 | SRC_URI += " \ | 107 | SRC_URI += " \ |
108 | ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};destsuffix=git/src/3rdparty \ | 108 | ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \ |
109 | file://0001-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch \ | 109 | file://0001-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch \ |
110 | file://0002-functions.prf-Make-sure-we-only-use-the-file-name-to.patch \ | 110 | file://0002-functions.prf-Make-sure-we-only-use-the-file-name-to.patch \ |
111 | file://0003-functions.prf-allow-build-for-linux-oe-g-platform.patch \ | 111 | file://0003-functions.prf-allow-build-for-linux-oe-g-platform.patch \ |
diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb index c90d78e6..0fdfac8a 100644 --- a/recipes-qt/qt5/qtwebkit_git.bb +++ b/recipes-qt/qt5/qtwebkit_git.bb | |||
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = " \ | |||
9 | file://Source/JavaScriptCore/parser/Parser.h;endline=21;md5=bd69f72183a7af673863f057576e21ee \ | 9 | file://Source/JavaScriptCore/parser/Parser.h;endline=21;md5=bd69f72183a7af673863f057576e21ee \ |
10 | " | 10 | " |
11 | 11 | ||
12 | DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt" | 12 | DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt gperf-native" |
13 | 13 | ||
14 | # qemuarm build fails with: | 14 | # qemuarm build fails with: |
15 | # | {standard input}: Assembler messages: | 15 | # | {standard input}: Assembler messages: |
@@ -65,6 +65,9 @@ do_configure_prepend() { | |||
65 | sed -e 's/\s\(config_fontconfig: \)/ OE_FONTCONFIG_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | 65 | sed -e 's/\s\(config_fontconfig: \)/ OE_FONTCONFIG_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf |
66 | } | 66 | } |
67 | 67 | ||
68 | # Forcibly enable ICU, so qtbase doesn't need it. | ||
69 | EXTRA_QMAKEVARS_PRE += "QT_CONFIG+=icu" | ||
70 | |||
68 | # qtwebkit gets terribly big when linking with all debug info, disable by default | 71 | # qtwebkit gets terribly big when linking with all debug info, disable by default |
69 | QTWEBKIT_DEBUG = "QMAKE_CFLAGS+=-g0 QMAKE_CXXFLAGS+=-g0" | 72 | QTWEBKIT_DEBUG = "QMAKE_CFLAGS+=-g0 QMAKE_CXXFLAGS+=-g0" |
70 | EXTRA_QMAKEVARS_PRE += "${QTWEBKIT_DEBUG}" | 73 | EXTRA_QMAKEVARS_PRE += "${QTWEBKIT_DEBUG}" |