summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2017-03-15 08:39:13 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2017-03-22 14:07:02 +0000
commit1d4ab7d047df4e08249b9c3d22bff78c02caf8ed (patch)
tree51cc88f9a63e854ce3d568319711caddff8c5aed /recipes-qt/qt5/qtwebengine
parentb13e04ff53a9b5c232487a61fd0a91073d719dce (diff)
downloadmeta-qt5-1d4ab7d047df4e08249b9c3d22bff78c02caf8ed.tar.gz
qtwebengine: update to use gn based build system
QtWebEngine switched from gyp to gn when generating ninja files. Parts of the build need to be done using host toolchain, which needs to be patched to work with bitbake builds. Change-Id: I5241f215fbaf49a2dedd8699b7984de33f38b5d3 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine')
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch71
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-chromium-base.gypi-include-atomicops_internals_x86_g.patch24
2 files changed, 71 insertions, 24 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch b/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch
new file mode 100644
index 00000000..65d170c5
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch
@@ -0,0 +1,71 @@
1From 5c879db32cde9bee9c9073842ecc281172f19453 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Wed, 15 Mar 2017 13:53:28 +0200
4Subject: [PATCH] Force host toolchain configuration
5
6Force gcc/g++ to be used for parts using host toolchain, since
7the option(host_build) does not work in yocto builds.
8
9Upstream-Status: Inappropriate [OE specific]
10Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
11---
12 src/buildtools/configure_host.pro | 12 ++++++------
13 1 file changed, 6 insertions(+), 6 deletions(-)
14
15diff --git a/src/buildtools/configure_host.pro b/src/buildtools/configure_host.pro
16index d8d731d..89dade4 100644
17--- a/src/buildtools/configure_host.pro
18+++ b/src/buildtools/configure_host.pro
19@@ -16,9 +16,9 @@ GN_CONTENTS = \
20 "import(\"//build/config/sysroot.gni\")" \
21 "import(\"//build/toolchain/gcc_toolchain.gni\")" \
22 "gcc_toolchain(\"host\") {" \
23-" cc = \"$$which($$QMAKE_CC)\" " \
24-" cxx = \"$$which($$QMAKE_CXX)\" " \
25-" ld = \"$$which($$QMAKE_LINK)\" " \
26+" cc = \"$$which(gcc)\" " \
27+" cxx = \"$$which(g++)\" " \
28+" ld = \"$$which(g++)\" " \
29 " ar = \"$$which(ar)\" " \
30 " nm = \"$$which(nm)\" " \
31 " toolchain_args = { " \
32@@ -27,9 +27,9 @@ GN_CONTENTS = \
33 " } " \
34 "}" \
35 "gcc_toolchain(\"v8_snapshot\") {" \
36-" cc = \"$$which($$QMAKE_CC)\" " \
37-" cxx = \"$$which($$QMAKE_CXX)\" " \
38-" ld = \"$$which($$QMAKE_LINK)\" " \
39+" cc = \"$$which(gcc)\" " \
40+" cxx = \"$$which(g++)\" " \
41+" ld = \"$$which(g++)\" " \
42 " ar = \"$$which(ar)\" " \
43 " nm = \"$$which(nm)\" " \
44 " toolchain_args = { " \
45diff --git a/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py b/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
46index 75b9690..601f688 100755
47--- a/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
48+++ b/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
49@@ -298,14 +298,14 @@ def write_gn_ninja(path, root_gen_dir, options):
50 ld = os.environ.get('LD', 'link.exe')
51 ar = os.environ.get('AR', 'lib.exe')
52 else:
53- cc = os.environ.get('CC', 'cc')
54- cxx = os.environ.get('CXX', 'c++')
55- ld = os.environ.get('LD', cxx)
56- ar = os.environ.get('AR', 'ar')
57-
58- cflags = os.environ.get('CFLAGS', '').split()
59- cflags_cc = os.environ.get('CXXFLAGS', '').split()
60- ldflags = os.environ.get('LDFLAGS', '').split()
61+ cc = os.environ.get('CC_host', 'cc')
62+ cxx = os.environ.get('CXX_host', 'c++')
63+ ld = os.environ.get('LD_host', cxx)
64+ ar = os.environ.get('AR_host', 'ar')
65+
66+ cflags = os.environ.get('CFLAGS_host', '').split()
67+ cflags_cc = os.environ.get('CXXFLAGS_host', '').split()
68+ ldflags = os.environ.get('LDFLAGS_host', '').split()
69 include_dirs = [root_gen_dir, SRC_ROOT]
70 libs = []
71
diff --git a/recipes-qt/qt5/qtwebengine/0001-chromium-base.gypi-include-atomicops_internals_x86_g.patch b/recipes-qt/qt5/qtwebengine/0001-chromium-base.gypi-include-atomicops_internals_x86_g.patch
deleted file mode 100644
index ccd43e21..00000000
--- a/recipes-qt/qt5/qtwebengine/0001-chromium-base.gypi-include-atomicops_internals_x86_g.patch
+++ /dev/null
@@ -1,24 +0,0 @@
1From db56cd0fd185a9f3858f5aa6e95b24e63dee119f Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Fri, 3 Oct 2014 03:52:11 +0200
4Subject: [PATCH] <chromium> base.gypi: include atomicops_internals_x86_gcc.cc
5 when building for x64 arch
6
7Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
8---
9 src/3rdparty/chromium/base/base.gypi | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/src/3rdparty/chromium/base/base.gypi b/src/3rdparty/chromium/base/base.gypi
13index 63c3f76..331c975 100644
14--- a/src/3rdparty/chromium/base/base.gypi
15+++ b/src/3rdparty/chromium/base/base.gypi
16@@ -801,7 +801,7 @@
17 ['include', '^nix/'],
18 ],
19 }],
20- ['use_qt==1 and target_arch=="ia32"', {
21+ ['use_qt==1 and target_arch=="ia32" or target_arch=="x64"', {
22 'sources/': [
23 ['include', 'atomicops_internals_x86_gcc.cc'],
24 ],