From: Sandro Knauß Date: Sun, 5 Jan 2025 21:01:32 +0000 (+0100) Subject: Build without WebEngine, when not available on the host system. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~46 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=621be9b4462163d919e5d357000f3ad05a1a2cb8;p=nextcloud-desktop.git Build without WebEngine, when not available on the host system. --- diff --git a/debian/control b/debian/control index 5c219ea86..cd70ef71a 100644 --- a/debian/control +++ b/debian/control @@ -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, diff --git a/debian/rules b/debian/rules index 1020ed8d2..f694530c7 100755 --- a/debian/rules +++ b/debian/rules @@ -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)