diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-05-03 12:24:15 +0300 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-05-03 12:25:44 +0300 |
commit | e26163d066a867ca8f630f7caffff207ef26b4a7 (patch) | |
tree | c55678478e7bb344459d9bdf2528f4e321e9c4d0 /recipes-qt/qt5/qtbase/0014-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch | |
parent | 0778f92089010ac7e2c3ee1f36c8c9d5c102bbf9 (diff) | |
parent | 89ac66bf3969b48eb771ef4c06a0b8df00fd178a (diff) | |
download | meta-qt5-e26163d066a867ca8f630f7caffff207ef26b4a7.tar.gz |
Merge remote-tracking branch 'qtyocto/5.12' into 5.13
* qtyocto/5.12:
89ac66b Merge remote-tracking branch 'qtyocto/upstream/warrior' into 5.12
f087aeb Revert "qtbase: Adjust target mkspec settings"
8586caf qt5: update SRCREVs after v5.12.3 tags were downmerged to 5.12 branch
7dc422d qtwayland: check also that the destination for private headers exists before installing them
84d647a qtwayland: improve manual header installation
3d60f9a qtwayland: workaround upstream bug: install missing headers manually
eb5d6da qtwayland: disable gold for all archs like in qtbase
e2707a0 qt5: upgrade to 5.12.3
0778424 qtbase: disable gold for all archs not just x86
4303873 qtbase-native: use QT_CONFIG_FLAGS variable like qtbase and nativesdk-qtbase
8895ea3 qtbase: Fix build with recent oe-core/pseudo on hosts with glibc >= 2.28
95974f4 qtbase, qtmultimedia: refresh patches to apply cleanly and update them on github.com/meta-qt5 forks
a4bf240 qtbase-native: add native libdir to search path
adf7f60 qt5: patch build paths from installed files
28d4bfd Upgrade to 5.12.2
5a32838 layer.conf: Add warrior to compatible release series
Conflicts:
recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch
recipes-qt/qt5/qtbase_git.bb
recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch
recipes-qt/qt5/qtwebengine/chromium/0001-chromium-Force-host-toolchain-configuration.patch
recipes-qt/qt5/qtwebengine/chromium/0003-chromium-Fix-build-with-gcc8.patch
recipes-qt/qt5/qtwebengine/chromium/0019-chromium-fix-build-with-clang.patch
recipes-qt/qt5/qtwebengine/chromium/0020-chromium-Check-for-__ARM_FP-2-before-using-__fp16.patch
recipes-qt/qt5/qtwebengine/chromium/0021-chromium-Exclude-CRC32-for-32bit-arm.patch
Change-Id: Iec1b6e65f8dfbb73ab96d68a91ff6a5e7d93c7de
Diffstat (limited to 'recipes-qt/qt5/qtbase/0014-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase/0014-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0014-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch b/recipes-qt/qt5/qtbase/0014-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch new file mode 100644 index 00000000..0a641bb2 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0014-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | From f5c88622ac10601e48a14f31d9299692a9ac62e2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Max Krummenacher <max.krummenacher@toradex.com> | ||
3 | Date: Sat, 27 Oct 2018 12:29:31 +0000 | ||
4 | Subject: [PATCH] Qt5GuiConfigExtras.cmake.in: cope with variable path to | ||
5 | sysroot | ||
6 | |||
7 | EGL is configured to need an include path into the recipe-specific sysroot. | ||
8 | However users of the cmake file will have a different absolute path than that | ||
9 | used when creating the cmake file from cmake.in in qtbase. | ||
10 | |||
11 | Change to store the relative path within the sysroot and then prepend the | ||
12 | currently used sysroot in the _qt5gui_find_extra_libs macro. | ||
13 | |||
14 | Upstream-Status: Inappropriate [OE specific] | ||
15 | |||
16 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | ||
17 | --- | ||
18 | src/gui/Qt5GuiConfigExtras.cmake.in | 22 ++++++++-------------- | ||
19 | 1 file changed, 8 insertions(+), 14 deletions(-) | ||
20 | |||
21 | diff --git a/src/gui/Qt5GuiConfigExtras.cmake.in b/src/gui/Qt5GuiConfigExtras.cmake.in | ||
22 | index 84dbbfebd4..ad6956d814 100644 | ||
23 | --- a/src/gui/Qt5GuiConfigExtras.cmake.in | ||
24 | +++ b/src/gui/Qt5GuiConfigExtras.cmake.in | ||
25 | @@ -75,21 +75,15 @@ unset(_qt5gui_OPENGL_INCLUDE_DIR CACHE) | ||
26 | |||
27 | macro(_qt5gui_find_extra_libs Name Libs LibDir IncDirs) | ||
28 | set(Qt5Gui_${Name}_LIBRARIES) | ||
29 | -!!IF !mac | ||
30 | - set(Qt5Gui_${Name}_INCLUDE_DIRS ${IncDirs}) | ||
31 | -!!ELSE | ||
32 | + | ||
33 | foreach(_dir ${IncDirs}) | ||
34 | - if (EXISTS ${_dir}) | ||
35 | - list(APPEND Qt5Gui_${Name}_INCLUDE_DIRS ${_dir}) | ||
36 | - else() | ||
37 | - find_path(_actual_dir ${_dir}) # Look in sdk directories | ||
38 | - if (_actual_dir) | ||
39 | - list(APPEND Qt5Gui_${Name}_INCLUDE_DIRS ${_actual_dir}) | ||
40 | - endif() | ||
41 | - unset(_actual_dir CACHE) | ||
42 | + find_path(_actual_dir ${_dir}) | ||
43 | + if (_actual_dir) | ||
44 | + list(APPEND Qt5Gui_${Name}_INCLUDE_DIRS ${_actual_dir}) | ||
45 | endif() | ||
46 | + unset(_actual_dir CACHE) | ||
47 | endforeach() | ||
48 | -!!ENDIF | ||
49 | + | ||
50 | foreach(_lib ${Libs}) | ||
51 | if (IS_ABSOLUTE ${_lib}) | ||
52 | get_filename_component(_libFile ${_lib} NAME_WE) | ||
53 | @@ -171,11 +165,11 @@ endmacro() | ||
54 | |||
55 | |||
56 | !!IF !isEmpty(CMAKE_EGL_LIBS) | ||
57 | -_qt5gui_find_extra_libs(EGL \"$$CMAKE_EGL_LIBS\" \"$$CMAKE_EGL_LIBDIR\" \"$$CMAKE_EGL_INCDIRS\") | ||
58 | +_qt5gui_find_extra_libs(EGL \"$$CMAKE_EGL_LIBS\" \"$$CMAKE_EGL_LIBDIR\" \"$$replace(CMAKE_EGL_INCDIRS,$$re_escape($$PKG_CONFIG_SYSROOT_DIR),)\") | ||
59 | !!ENDIF | ||
60 | |||
61 | !!IF !isEmpty(CMAKE_OPENGL_LIBS) | ||
62 | -_qt5gui_find_extra_libs(OPENGL \"$$CMAKE_OPENGL_LIBS\" \"$$CMAKE_OPENGL_LIBDIR\" \"$$CMAKE_OPENGL_INCDIRS\") | ||
63 | +_qt5gui_find_extra_libs(OPENGL \"$$CMAKE_OPENGL_LIBS\" \"$$CMAKE_OPENGL_LIBDIR\" \"$$replace(CMAKE_OPENGL_INCDIRS,$$re_escape($$PKG_CONFIG_SYSROOT_DIR),)\") | ||
64 | |||
65 | !!ENDIF | ||
66 | |||