#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_autoreconf:
	NOCONFIGURE=1 dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --enable-qml-plugins \
		--with-twitter-consumer-key="NGOB5S7sICsj6epjh0PhAw" \
		--with-twitter-consumer-secret="rbUEJCBEokMnGZd8bubd0QL2cSmoCjJeyiSJpnx3OM0" \
		--with-facebook-client-id="271112146382618" \
		--with-google-client-id="1032863574955-44edra7uap3789kuc3cmplofd620ombh.apps.googleusercontent.com" \
		--with-google-client-secret="QvEYYpxvrn6Oo-mOWZ_obhre" \
		--with-flickr-consumer-key="d87224f0b467093b2a87fd788d950e27" \
		--with-flickr-consumer-secret="4c7e48102c226509" \
		--with-mcloud-client-id="APP1ZtqoN3R0002" \
		--with-mcloud-client-secret="A70EFCDC91456349E7FDECF0A33574AC" \
		--with-microsoft-client-id="478797ed-02c1-442b-bebd-709401131e7d" \
		--with-vk-client-id="5402699"

override_dh_install:
	rm -f debian/*/usr/lib/*/*/*.la
	mkdir -p debian/tmp/usr/share/lomiri-online-accounts-plugins/tools
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_clean:
	dh_auto_clean
	rm -f po/*.gmo
	rm -f po/stamp-po

%:
	dh $@ --with python3,autoreconf
