#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto include /usr/share/dpkg/pkg-info.mk %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -DCMAKE_INSTALL_PREFIX=/usr \ -DUNIT_TESTING=ON \ -DBUILD_UPDATER=OFF \ -DPLUGINDIR=/usr/lib/$(DEB_HOST_GNU_TYPE)/qt6/plugins \ -DEXTERNAL_VERSION=$(DEB_VERSION) override_dh_auto_test-arch: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) mkdir -p obj-$(DEB_HOST_GNU_TYPE)/config - LC_ALL=C.UTF-8 XDG_CONFIG_HOME=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/config xvfb-run -a \ -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX" \ -- dh_auto_test --no-parallel rm -r obj-$(DEB_HOST_GNU_TYPE)/config else @echo "** tests disabled" endif override_dh_auto_test-indep: override_dh_auto_build-indep: dh_auto_build -- -C shell_integration/nautilus dh_auto_build -- doc-html dh_auto_build # unfortunately we don't get icons and translations otherwise. override_dh_auto_build-arch: dh_auto_build -- doc-man @echo "blhc: ignore-line-regexp: .*/CMakeCXXCompilerABI.cpp.*" #tests are not built with all hardening, to debug stuff more easily @echo "blhc: ignore-line-regexp: .*Test.dir/.*" @echo "blhc: ignore-line-regexp: .*/check_.*.dir/.*" @echo "blhc: ignore-line-regexp: .*/test/csync/torture_.*" @echo "blhc: ignore-line-regexp: .*/LargeSyncBench\.dir/.*" dh_auto_build -- execute_after_dh_sphinxdoc: $(RM) -v debian/tmp/usr/share/doc/client/nextcloud-client/html/unthemed/.buildinfo execute_after_dh_link-indep: jdupes -rl debian/nextcloud-desktop-doc/usr execute_before_dh_gencontrol: pkgkde-getqmldepends -p nextcloud-desktop --qt 6 -- -qmlFiles src/gui/*qml src/gui/filedetails/*qml src/gui/tray/*qml