diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2021-12-27 10:52:33 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-10 10:51:57 +0000 |
commit | ea7726a0df369f4dd7ca436edce3fdcf70167c9c (patch) | |
tree | 24674de4c15b16cded120aa87e1d3fbc97e71042 /classes | |
parent | f41e3d3139a94e74b80f04db6dc4536ccdab1569 (diff) |
Create Conan profile
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.
Change-Id: I33a9b0f3915417d98ad12559ce7661c92b1cc739
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
(cherry picked from commit a64c9789834fae95498f14debd077b95ac013ef6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/populate_sdk_qt6_base.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
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 <<EOF +include(${SDKTARGETSYSROOT}${datadir}/conan/profile) +[env] +QT_CONFIGURE_MODULE=${SDKPATHNATIVE}${QT6_INSTALL_BINDIR}/qt-configure-module +EOF } # default debug prefix map isn't valid in the SDK |