diff options
-rw-r--r-- | recipes-qt/qt5/qtdeclarative/0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch | 35 | ||||
-rw-r--r-- | recipes-qt/qt5/qtdeclarative_git.bb | 2 |
2 files changed, 37 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtdeclarative/0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch b/recipes-qt/qt5/qtdeclarative/0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch new file mode 100644 index 00000000..0152574a --- /dev/null +++ b/recipes-qt/qt5/qtdeclarative/0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 793ddd0d9fc0d86425a0aa43709445c5ff12a464 Mon Sep 17 00:00:00 2001 | ||
2 | From: Piotr Tworek <tworaz@tworaz.net> | ||
3 | Date: Wed, 3 Jul 2019 01:13:40 +0200 | ||
4 | Subject: [PATCH] Use OE_QMAKE_PATH_EXTERNAL_HOST_BINS to locate qmlcachegen | ||
5 | |||
6 | Without this cmake will end up using host qmlcachegen instead of | ||
7 | recipe-sysroot-native one. | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE specific] | ||
10 | |||
11 | Signed-off-by: Piotr Tworek <tworaz@tworaz.net> | ||
12 | --- | ||
13 | tools/qmlcachegen/Qt5QuickCompilerConfig.cmake.in | 6 +----- | ||
14 | 1 file changed, 1 insertion(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake.in b/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake.in | ||
17 | index 75fbb0fcf3..1e949cd40c 100644 | ||
18 | --- a/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake.in | ||
19 | +++ b/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake.in | ||
20 | @@ -18,11 +18,7 @@ function(QTQUICK_COMPILER_ADD_RESOURCES outfiles) | ||
21 | |||
22 | find_package(Qt5 COMPONENTS Qml Core) | ||
23 | |||
24 | -!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
25 | - set(compiler_path \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmlcachegen$$CMAKE_BIN_SUFFIX\") | ||
26 | -!!ELSE | ||
27 | - set(compiler_path \"$${CMAKE_BIN_DIR}qmlcachegen$$CMAKE_BIN_SUFFIX\") | ||
28 | -!!ENDIF | ||
29 | + set(compiler_path \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmlcachegen${OE_QMAKE_BIN_SUFFIX}\") | ||
30 | if(NOT EXISTS \"${compiler_path}\" ) | ||
31 | message(FATAL_ERROR \"The package \\\"Qt5QuickCompilerConfig\\\" references the file | ||
32 | \\\"${compiler_path}\\\" | ||
33 | -- | ||
34 | 2.21.0 | ||
35 | |||
diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb index 9d06377d..ad7f1967 100644 --- a/recipes-qt/qt5/qtdeclarative_git.bb +++ b/recipes-qt/qt5/qtdeclarative_git.bb | |||
@@ -12,6 +12,8 @@ LIC_FILES_CHKSUM = " \ | |||
12 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | 12 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ |
13 | " | 13 | " |
14 | 14 | ||
15 | SRC_URI += "file://0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch" | ||
16 | |||
15 | DEPENDS += "qtbase" | 17 | DEPENDS += "qtbase" |
16 | 18 | ||
17 | PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}" | 19 | PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}" |