#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_OPTIONS += noautodbgsym

%:
	dh $@

override_dh_auto_clean:
	rm -f modules/juce_audio_processors_headless/format_types/juce_VSTInterface.h
	cd docs/doxygen; rm -Rf doc xml
	dh_auto_clean

override_dh_auto_configure:
	cp -f debian/juce_VSTInterface.h modules/juce_audio_processors_headless/format_types/
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DJUCE_BUILD_EXTRAS=ON \
		-DJUCE_TOOL_INSTALL_DIR=bin

override_dh_auto_build:
	dh_auto_build
	cd docs/doxygen; python3 build.py

override_dh_compress:
	dh_compress -Xdoc/juce-*/html/
