#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@ --buildsystem=cmake

override_dh_auto_clean:
	dh_auto_clean
	rm -f lang/*.qm

override_dh_auto_configure:
	dh_auto_configure -- -D USE_UPDATES=OFF \
						 -D USE_VULKAN=ON \
						 -D CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
						 -D USE_LINK_TIME_OPTIMIZATION=ON \
						 -D USE_PCH=ON \
						 -D USE_UBSAN=ON \
						 -D USE_FFMPEG_VKVIDEO=OFF

# Don't install the header files, they aren't of any use right now
override_dh_install:
	dh_install
	rm -rf debian/qmplay2/usr/include

override_dh_strip:
	dh_strip --no-automatic-dbgsym
