#!/usr/bin/make -f
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed

%:
	dh  $@ --with autoreconf,gir,python2

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-static \
		--enable-gtk2 \
		--enable-gtk3 \
		--enable-xim \
		--disable-gtk-doc \
		--enable-introspection \
		--enable-surrounding-text \
		--enable-python-library \
		--libexecdir=/usr/lib/ibus

override_dh_install:
	find . -name *.la -delete
	dh_install --fail-missing

override_dh_makeshlibs:
	dh_makeshlibs -Nibus-gtk -Nibus-gtk3

override_dh_auto_test:
	-dh_auto_test

