From 08d101c2eb5c5367469551fb0dbea2aecc19dd0c Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 11 Sep 2020 07:39:08 +0300 Subject: [PATCH] Add support for mingw32 build Add support for building nativesdk components with meta-mingw layer for Windows SDK. Skip some of the nativesdk tools as they cannot be built. Qt6Toolchain.cmake can be used with SDKPATH environment variable set to the SDK installation path using forward slashes as path separators. It depends on the nativesdk-cmake which cannot be built until upstream patches to meta-mingw are approved. Task-number: QTBUG-86431 Change-Id: I482f85f10461e77bb183cf763d6ef531b45e016a Reviewed-by: Mikko Gronoff --- classes/populate_sdk_qt6_base.bbclass | 15 +++++++++++++-- .../nativesdk-packagegroup-qt6-toolchain-host.bb | 6 ++++++ recipes-qt/qt6/qt6.inc | 7 +++++++ recipes-qt/qt6/qtbase_git.bb | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/classes/populate_sdk_qt6_base.bbclass b/classes/populate_sdk_qt6_base.bbclass index ea53f72..5cee736 100644 --- a/classes/populate_sdk_qt6_base.bbclass +++ b/classes/populate_sdk_qt6_base.bbclass @@ -1,6 +1,12 @@ inherit qt6-paths -create_sdk_files_prepend () { +SDK_POSTPROCESS_COMMAND_prepend = "create_qt6_sdk_files;" + + +PATH_DELIM = ":" +PATH_DELIM_sdkmingw32 = ";" + +create_qt6_sdk_files () { # Generate a qt.conf file to be deployed with the SDK qtconf=${SDK_OUTPUT}${SDKPATHNATIVE}${QT6_INSTALL_BINDIR}/qt.conf touch $qtconf @@ -55,7 +61,7 @@ create_sdk_files_prepend () { # Generate a toolchain file for using Qt without running setup-environment script cat > ${SDK_OUTPUT}${SDKPATHNATIVE}/usr/share/cmake/Qt6Toolchain.cmake <