summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2018-11-16 10:19:45 +0200
committerMikko Gronoff <mikko.gronoff@qt.io>2018-11-16 11:15:30 +0200
commit96685678ddb4adf615d037dd4c1dcca23023df19 (patch)
tree41480f2608c514cc1308445e413cfe06e9e91da3 /recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch
parentf0ca39edb8dd0524e8822da813399cce2e70ef53 (diff)
parentff6127ddd318d422f595295d1c189a86b3032873 (diff)
downloadmeta-qt5-96685678ddb4adf615d037dd4c1dcca23023df19.tar.gz
Merge remote-tracking branch 'qtyocto/5.11' into 5.12
* qtyocto/5.11: ff6127d Merge remote-tracking branch 'qtyocto/upstream/master' into 5.11 6b354b9 qt5: update submodules 4064b3b qtdeclarative: fix inconsistent QML_COMPILE_HASH value fd1f0f4 python-pyqt5: Update to 5.11.3 and add python3 recipe. 3fa1993 qtbase-native: disable postgresql support 0edbe1b qtbase: refresh patches and update tags on meta-qt5 4ed4385 qtbase: don't leak absolut path to recipe specific sysroot b3502fb qt5: Disable ltcg for host_build 5832bf2 qtbase: don't use thumb for armv[45] Conflicts: recipes-qt/qt5/nativesdk-qtbase_git.bb recipes-qt/qt5/qt3d_git.bb recipes-qt/qt5/qt5-git.inc recipes-qt/qt5/qtbase-native_git.bb recipes-qt/qt5/qtbase/0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch recipes-qt/qt5/qtbase_git.bb recipes-qt/qt5/qtcanvas3d_git.bb recipes-qt/qt5/qtcharts_git.bb recipes-qt/qt5/qtconnectivity_git.bb recipes-qt/qt5/qtdatavis3d_git.bb recipes-qt/qt5/qtdeclarative_git.bb recipes-qt/qt5/qtgamepad_git.bb recipes-qt/qt5/qtgraphicaleffects_git.bb recipes-qt/qt5/qtimageformats_git.bb recipes-qt/qt5/qtlocation_git.b b recipes-qt/qt5/qtmultimedia_git.bb recipes-qt/qt5/qtnetworkauth_git.bb recipes-qt/qt5/qtpurchasing_git.bb recipes-qt/qt5/qtquickcontrols2_git.bb recipes-qt/qt5/qtquickcontrols_git.bb recipes-qt/qt5/qtremoteobjects_git.bb recipes-qt/qt5/qtscript_git.bb recipes-qt/qt5/qtscxml_git.bb recipes-qt/qt5/qtsensors_git.bb recipes-qt/qt5/qtserialbus_git.bb recipes-qt/qt5/qtserialport_git.bb recipes-qt/qt5/qtsvg_git.bb recipes-qt/qt5/qttools_git.bb recipes-qt/qt5/qttranslations_git.bb recipes-qt/qt5/qtvirtualkeyboard_git.bb recipes-qt/qt5/qtwayland_git.bb recipes-qt/qt5/qtwebchannel_git.bb recipes-qt/qt5/qtwebengine_git.bb recipes-qt/qt5/qtwebglplugin_git.bb recipes-qt/qt5/qtwebsockets_git.bb recipes-qt/qt5/qtwebview_git.bb recipes-qt/qt5/qtx11extras_git.bb recipes-qt/qt5/qtxmlpatterns_git.bb Task-number: QTBUG-70847 Change-Id: I67e23c7020276516fcace20ff6a1eb698724dd22
Diffstat (limited to 'recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch')
-rw-r--r--recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch b/recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch
new file mode 100644
index 00000000..3460568c
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch
@@ -0,0 +1,66 @@
1From a154d5f20d85108fcbf36f9f39cb853438f98127 Mon Sep 17 00:00:00 2001
2From: Max Krummenacher <max.krummenacher@toradex.com>
3Date: Sat, 27 Oct 2018 12:29:31 +0000
4Subject: [PATCH] Qt5GuiConfigExtras.cmake.in: cope with variable path to
5 sysroot
6
7EGL is configured to need an include path into the recipe-specific sysroot.
8However users of the cmake file will have a different absolute path than that
9used when creating the cmake file from cmake.in in qtbase.
10
11Change to store the relative path within the sysroot and then prepend the
12currently used sysroot in the _qt5gui_find_extra_libs macro.
13
14Upstream-Status: Inappropriate [OE specific]
15
16Signed-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
21diff --git a/src/gui/Qt5GuiConfigExtras.cmake.in b/src/gui/Qt5GuiConfigExtras.cmake.in
22index 07869efd7d..671aa82167 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 string(REGEX REPLACE "[^_A-Za-z0-9]" "_" _cmake_lib_name ${_lib})
52 if (NOT TARGET Qt5::Gui_${_cmake_lib_name} AND NOT _Qt5Gui_${_cmake_lib_name}_LIBRARY_DONE)
53@@ -158,11 +152,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