Build without WebEngine, when not available on the host system.
authorSandro Knauß <hefee@debian.org>
Sun, 5 Jan 2025 21:01:32 +0000 (22:01 +0100)
committerSandro Knauß <hefee@debian.org>
Sun, 5 Jan 2025 21:01:58 +0000 (22:01 +0100)
debian/control
debian/rules

index 5c219ea863246f67e6a1ce973358127a58876e75..cd70ef71a1ffc39a222a6e1456b8ee8cecd3c147 100644 (file)
@@ -30,7 +30,7 @@ Build-Depends: appstream,
                qt6-declarative-dev (>= 6.7.0~),
                qt6-svg-dev,
                qt6-tools-dev,
-               qt6-webengine-dev,
+               qt6-webengine-dev [amd64 arm64 armhf i386],
                qt6-websockets-dev,
                qtkeychain-qt6-dev,
                texlive-latex-base,
index 1020ed8d2d2a615912bd38913323de97d2867797..f694530c773d34545629d478b324e8719217df27 100755 (executable)
@@ -3,6 +3,14 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 
 include /usr/share/dpkg/pkg-info.mk
 
+webengine_archs := amd64 arm64 armhf i386
+ifeq ($(DEB_HOST_ARCH), $(filter $(DEB_HOST_ARCH),$(webengine_archs)))
+BUILD_WEBENGINE := ON
+else
+BUILD_WEBENGINE := OFF
+endif
+
+
 %:
        dh $@
 
@@ -11,6 +19,7 @@ override_dh_auto_configure:
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DUNIT_TESTING=ON \
                -DBUILD_UPDATER=OFF \
+               -DBUILD_WITH_WEBENGINE=$(BUILD_WEBENGINE) \
                -DPLUGINDIR=/usr/lib/$(DEB_HOST_GNU_TYPE)/qt6/plugins \
                -DEXTERNAL_VERSION=$(DEB_VERSION)