From: Andreas Naumann <anaumann@ultratronik.de>
To: buildroot@buildroot.org
Cc: Andreas Naumann <anaumann@ultratronik.de>,
Jesse Van Gavere <jesseevg@gmail.com>,
Samuel Martin <s.martin49@gmail.com>,
Roy Kollen Svendsen <roykollensvendsen@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 1/1] package/qt6/qt6opcua: new package
Date: Wed, 17 Jul 2024 21:48:08 +0200 [thread overview]
Message-ID: <20240717194808.126443-1-anaumann@ultratronik.de> (raw)
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>
---
package/qt6/Config.in | 1 +
package/qt6/qt6opcua/Config.in | 14 +++++++++
package/qt6/qt6opcua/qt6opcua.hash | 9 ++++++
package/qt6/qt6opcua/qt6opcua.mk | 46 ++++++++++++++++++++++++++++++
4 files changed, 70 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/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..d8bd492233
--- /dev/null
+++ b/package/qt6/qt6opcua/qt6opcua.mk
@@ -0,0 +1,46 @@
+################################################################################
+#
+# 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, \
+ GPL-3.0 WITH Qt-GPL-exception-1.0 (tools), \
+ 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 \
+ LICENSES/Qt-GPL-exception-1.0.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))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2024-07-17 19:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-17 19:48 Andreas Naumann [this message]
2024-07-17 20:59 ` [Buildroot] [PATCH 1/1] package/qt6/qt6opcua: new package Thomas Petazzoni via buildroot
2024-07-22 8:12 ` Andreas Naumann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240717194808.126443-1-anaumann@ultratronik.de \
--to=anaumann@ultratronik.de \
--cc=buildroot@buildroot.org \
--cc=jesseevg@gmail.com \
--cc=roykollensvendsen@gmail.com \
--cc=s.martin49@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox