#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
#xport DEB_BUILD_OPTIONS = nocheck
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export QT_SELECT := 6
export GIT_HASH := $(shell ls $(CURDIR)/../SOURCES/*.tar.xz | cut -d '.' -f6)

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

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBEARWAVE_BUILD_TESTS=ON \
		-DBEARWAVE_GIT_HASH=$(GIT_HASH)

override_dh_install:
	dh_install --

override_dh_missing:
	dh_missing --fail-missing
