#!/usr/bin/make -f

export QT_SELECT := qt6

%:
	dh $@ --buildsystem=cmake+ninja --builddirectory=build

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DQUICKSHELL_BUILD_SHELL=ON \
		-DINSTALL_UDEV_RULES=ON \
		-DUSE_JEMALLOC=ON \
		-DDISTRIBUTOR="OBS" \
		-DNO_PCH=ON

override_dh_auto_test:
	cd build && ctest --output-on-failure

override_dh_auto_install:
	DESTDIR=$(CURDIR)/debian/noctalia-qs ninja -C build install
