#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

CMAKE_OPTS := -DDISABLE_WERROR=ON -DHAVE_DOT=YES \
              -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \
              -DCMAKE_BUILD_TYPE=RelWithDebInfo \
              -DDESIRED_QT_VERSION=5 \
	      -DFORCE_STATIC_SERVICE_LIBRARY=YES


%:
	dh $@ --with pkgkde_symbolshelper

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_OPTS)

# Do not run tests, as they fall into race conditions sometimes
override_dh_auto_test:

override_dh_strip:
	dh_strip --dbgsym-migration='libtelepathy-qt5-dbg (<< 0.9.7~)'

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_clean:
	dh_auto_clean
	find . -name '*.pyc' -exec rm {} \;
