#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-Denable_gtk_doc=true \
		-Denable_tests=true \
		-Dwith_introspection=true \
		-Dwith_vapi=true \

# The stress test is sensitive to timing so disable parallel
# as suggested by hergertme
override_dh_auto_test:
	dh_auto_test --no-parallel
