#!/usr/bin/make -f
# SPDX-License-Identifier: LGPL-2.1-or-later

export DH_VERBOSE=1

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_C_COMPILER=clang \
		-DCMAKE_CXX_COMPILER=clang++ \
		-DCMAKE_VERBOSE_MAKEFILE=ON \
		-DCMAKE_INSTALL_PREFIX=/usr

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp

override_dh_auto_test:
	dh_auto_test -- CTEST_OUTPUT_ON_FAILURE=1

# dwz does not understand Clang's DWARF sections (e.g. .debug_addr);
# skip it to avoid a spurious build failure.
override_dh_dwz:
