qtopcua: add opcua tools to sdk

QtOpcua has host tools that need to be included in the SDK.
Add additional PACKAGECONFIG for open62541 which has openssl
dependency. Mingw32 does not support this in nativesdk builds,
but it's also not necessary for either native or nativesdk builds.

Pick-to: 6.9 6.8
Fixes: QTBUG-132822
Change-Id: Ib0c9f7634ac578882ca5585be430312736f61470
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
Samuli Piippo 2025-01-15 14:45:58 +00:00
parent 60db51682c
commit edce4936b4
2 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,8 @@ RDEPENDS:${PN} += " \
nativesdk-qtgrpc-tools \
nativesdk-qtquick3d-dev \
nativesdk-qtquick3d-tools \
nativesdk-qtopcua-dev \
nativesdk-qtopcua-tools \
nativesdk-qtremoteobjects-dev \
nativesdk-qtremoteobjects-tools \
nativesdk-qtscxml-dev \

View File

@ -24,8 +24,11 @@ inherit qt6-cmake
include recipes-qt/qt6/qt6-git.inc
include recipes-qt/qt6/qt6.inc
PACKAGECONFIG ?= "qml"
PACKAGECONFIG ?= "qml open62541"
PACKAGECONFIG:class-native ?= ""
PACKAGECONFIG:class-nativesdk ?= ""
PACKAGECONFIG[qml] = ",,qtdeclarative qtdeclarative-native"
PACKAGECONFIG[open62541] = "-DFEATURE_open62541=ON,-DFEATURE_open62541=OFF,openssl"
# src/3rdparty/open62541.pri adds -Wno-format, causing following error
# because -Wformat-security cannot be used together with -Wno-format