#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	    -DCMAKE_BUILD_TYPE=Release \
	    -DCRE_BUILD_SHARED=ON \
	    -DCRE_BUILD_STATIC=OFF \
	    -DOFFLINE_BUILD_MODE=ON \
	    -DENABLE_UNITTESTING=OFF \
	    -DUSE_MD4C=ON \
	    -DUSE_CMARK_GFM=OFF \
	    -DUSE_SHASUM=OFF

override_dh_auto_test:
	# Upstream's gtest suite is not built: it needs FreeFont unpacked into
	# the build tree, the zip program, and pixel-exact reference renderings
	# that do not match the FreeType/HarfBuzz in the archive.  See
	# debian/README.source.  debian/tests/ covers the installed library.
