#!/usr/bin/make -f

NULL =

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	@echo 'blhc: ignore-line-regexp: .*c\+\+ -std=gnu\+\+11 -dM -E -c .*'
	@echo 'blhc: ignore-line-regexp: .*c\+\+ -DQT_CORE_LIB.*'
	dh_auto_configure --	\
		-DCLICK_MODE=OFF	\
		-DINSTALL_TESTS=OFF	\
		$(NULL)

execute_after_dh_install:
	dh_apparmor -plomiri-gallery-app --profile-name=lomiri-gallery-app

override_dh_auto_test:
	QT_QPA_PLATFORM=minimal CTEST_OUTPUT_ON_FAILURE=1 dh_auto_test

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
