From a64c9789834fae95498f14debd077b95ac013ef6 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 27 Dec 2021 10:52:33 +0200 Subject: [PATCH] Create Conan profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generate Conan profiles that can then be used with the SDK. Task in qtbase generates profile that has all the architecture bits and configure arguments in place. The profile added in the SDK phase lets Conan recipes know how to use the SDK with the QT_CONFIGURE_MODULE environment variable. Pick-to: 6.3 6.2 Change-Id: I33a9b0f3915417d98ad12559ce7661c92b1cc739 Reviewed-by: Pasi Petäjäjärvi --- classes/populate_sdk_qt6_base.bbclass | 8 +++++ recipes-qt/qt6/conan.inc | 52 +++++++++++++++++++++++++++ recipes-qt/qt6/qtbase_git.bb | 1 + 3 files changed, 61 insertions(+) create mode 100644 recipes-qt/qt6/conan.inc diff --git a/classes/populate_sdk_qt6_base.bbclass b/classes/populate_sdk_qt6_base.bbclass index dafa246..4263afb 100644 --- a/classes/populate_sdk_qt6_base.bbclass +++ b/classes/populate_sdk_qt6_base.bbclass @@ -129,6 +129,14 @@ EOF # resolve absolute paths at runtime sed -i -e 's|${SDKPATH}/sysroots|\${SYSROOTS}|g' \ ${SDK_OUTPUT}${SDKPATHNATIVE}/usr/share/cmake/Qt6Toolchain.cmake + + # Conan profile + mkdir -p ${SDK_OUTPUT}${SDKPATHNATIVE}/usr/share/conan + cat > ${SDK_OUTPUT}${SDKPATHNATIVE}/usr/share/conan/profile < ${D}${datadir}/conan/profile <