From 7d9ada3c7cd8fb30fa1f98fb464421bce7d082eb Mon Sep 17 00:00:00 2001 From: Andreas Naumann Date: Wed, 17 Jul 2024 21:48:08 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/qt6/Config.in | 1 + package/qt6/qt6opcua/Config.in | 14 ++++++++++ package/qt6/qt6opcua/qt6opcua.hash | 9 ++++++ package/qt6/qt6opcua/qt6opcua.mk | 44 ++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 package/qt6/qt6opcua/Config.in create mode 100644 package/qt6/qt6opcua/qt6opcua.hash create mode 100644 package/qt6/qt6opcua/qt6opcua.mk diff --git a/DEVELOPERS b/DEVELOPERS index b39df9bae2..9462fe0459 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -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 F: board/versal/ diff --git a/package/qt6/Config.in b/package/qt6/Config.in index e84806d5e4..29c1c25c7f 100644 --- a/package/qt6/Config.in +++ b/package/qt6/Config.in @@ -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" diff --git a/package/qt6/qt6opcua/Config.in b/package/qt6/qt6opcua/Config.in new file mode 100644 index 0000000000..84a51f544f --- /dev/null +++ b/package/qt6/qt6opcua/Config.in @@ -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 diff --git a/package/qt6/qt6opcua/qt6opcua.hash b/package/qt6/qt6opcua/qt6opcua.hash new file mode 100644 index 0000000000..cf54bef98e --- /dev/null +++ b/package/qt6/qt6opcua/qt6opcua.hash @@ -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 diff --git a/package/qt6/qt6opcua/qt6opcua.mk b/package/qt6/qt6opcua/qt6opcua.mk new file mode 100644 index 0000000000..6c8ff7af89 --- /dev/null +++ b/package/qt6/qt6opcua/qt6opcua.mk @@ -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))