package/qt6/qt6opcua: new package

Add qt6 version of qtopcua from git as it's not contained in the
official qt release submodule directory.

Fulfill the mandatory dependency on qt6base, and qt6base-network in
particular, as well as the need for host tool qopcuaxmldatatypes2cpp
which is provided by host-qt6opcua.
For host-qt6opcua set the dependency on host-qt6base-network as well.

Existence of the optional dependency openssl enables
FEATURE_open62541_security. (This has changed from qt5opcua where
mbedtls was supported.)

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Andreas Naumann
2024-07-17 21:48:08 +02:00
committed by Thomas Petazzoni
parent f761a8c451
commit 7d9ada3c7c
5 changed files with 69 additions and 0 deletions

View File

@@ -2384,6 +2384,7 @@ F: package/evemu/
F: package/libevdev/
F: package/pkg-qmake.mk
F: package/qt5/qt5opcua/
F: package/qt6/qt6opcua/
N: Neal Frager <neal.frager@amd.com>
F: board/versal/

View File

@@ -48,6 +48,7 @@ source "package/qt6/qt6core5compat/Config.in"
source "package/qt6/qt6declarative/Config.in"
source "package/qt6/qt6languageserver/Config.in"
source "package/qt6/qt6mqtt/Config.in"
source "package/qt6/qt6opcua/Config.in"
source "package/qt6/qt6serialbus/Config.in"
source "package/qt6/qt6serialport/Config.in"
source "package/qt6/qt6shadertools/Config.in"

View File

@@ -0,0 +1,14 @@
config BR2_PACKAGE_QT6OPCUA
bool "qt6opcua"
select BR2_PACKAGE_QT6BASE_NETWORK
# qt6opcuda needs host-qt6opcua, and host-qt6opcua needs
# network support in qt6base.
select BR2_PACKAGE_HOST_QT6BASE_NETWORK
help
Qt is a cross-platform application and UI framework for
developers using C++.
This package corresponds to the qt6opcua module.
https://doc.qt.io/qt-6/qtopcua-index.html

View File

@@ -0,0 +1,9 @@
sha256 653597e2926ddb512f078bab1e5d2a059202ba1bc1f68ff0b4a0e053ab1272b2 qt6opcua-6.7.2-git4.tar.gz
# Hashes for license files:
sha256 9f0490f18656c6f2435bd14f603ef0c96434d1825615363dce43abb42ed1dcce LICENSES/BSD-3-Clause.txt
sha256 110535522396708cea37c72a802c5e7e81391139f5f7985631c93ef242b206a4 LICENSES/GFDL-1.3-no-invariants-only.txt
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0-only.txt
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSES/GPL-3.0-only.txt
sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 LICENSES/LGPL-3.0-only.txt
sha256 40678d338ce53cd93f8b22b281a2ecbcaa3ee65ce60b25ffb0c462b0530846b2 LICENSES/Qt-GPL-exception-1.0.txt

View File

@@ -0,0 +1,44 @@
################################################################################
#
# qt6opcua
#
################################################################################
QT6OPCUA_VERSION = $(QT6_VERSION)
QT6OPCUA_SITE = $(QT6_GIT)/qt/qtopcua.git
QT6OPCUA_SITE_METHOD = git
QT6OPCUA_INSTALL_STAGING = YES
QT6OPCUA_SUPPORTS_IN_SOURCE_BUILD = NO
QT6OPCUA_CMAKE_BACKEND = ninja
QT6OPCUA_LICENSE = \
GPL-2.0 or GPL-3.0 or LGPL-3.0, \
GFDL-1.3 no invariants (docs), \
BSD-3-Clause (examples + buildsystem)
QT6OPCUA_LICENSE_FILES = \
LICENSES/BSD-3-Clause.txt \
LICENSES/GFDL-1.3-no-invariants-only.txt \
LICENSES/GPL-2.0-only.txt \
LICENSES/GPL-3.0-only.txt \
LICENSES/LGPL-3.0-only.txt
QT6OPCUA_CONF_OPTS = \
-DQT_HOST_PATH=$(HOST_DIR) \
-DBUILD_WITH_PCH=OFF
HOST_QT6OPCUA_CONF_OPTS = \
-DQT_HOST_PATH=$(HOST_DIR) \
-DBUILD_WITH_PCH=OFF
QT6OPCUA_DEPENDENCIES = \
qt6base \
host-qt6opcua
ifeq ($(BR2_PACKAGE_OPENSSL),y)
QT6OPCUA_DEPENDENCIES += openssl
endif
$(eval $(cmake-package))
$(eval $(host-cmake-package))