#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export LC_ALL = C.UTF-8

# No dbgsyms for MX repos
export DEB_BUILD_OPTIONS += noddebs 

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DKEEPASSXC_BUILD_TYPE=Release \
		-DWITH_TESTS=ON \
		-DWITH_GUI_TESTS=OFF \
		-DWITH_X11=ON \
		-DKPXC_FEATURE_DOCS=ON \
		-DKPXC_FEATURE_UPDATES=OFF

override_dh_auto_test:
	dh_auto_test -- \
	ARGS+="-E testgui\|testcli"
