#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# gh#keepassxreboot/keepassxc#667
export LC_ALL := C.UTF-8
export LANG := C.UTF-8
export QT_QPA_PLATFORM := offscreen

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DKEEPASSXC_BUILD_TYPE=Release \
		-DKPXC_FEATURE_UPDATES=OFF

override_dh_auto_test:
	dh_auto_test -- ARGS+="-E 'test(cli|gui)'"
