1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
export NO_DOCS := no
export QMAKE_LIBDIR=/usr/lib
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
export QT_SELECT=qt5
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DOXYGEN_VERSION := $(shell dpkg --status doxygen | grep Version | cut -f 2 -d ' ')
override_dh_auto_configure:
mkdir -p build/qt5
QT_SELECT=qt5 \
dh_auto_configure -Bbuild/qt5 -- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
BUILD_DIR=build/qt5 \
CONFIG+=enable-p2p \
"QMAKE_CXXFLAGS=$(CFLAGS)" ../../signon.pro
override_dh_auto_build:
QT_SELECT=qt5 dh_auto_build -Bbuild/qt5
override_dh_auto_clean:
dh_auto_clean -Bbuild/qt5
-rm src/signond/backupifadaptor.*
override_dh_auto_install-arch:
dh_auto_install -Bbuild/qt5
override_dh_install:
rm -f debian/tmp/usr/include/signon-plugins/*example*.h
rm -f debian/tmp/usr/include/signon-plugins/*test*.h
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libsignon-qt*.*a
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/signon/libexampleplugin.so
dh_install --fail-missing
dh_doxygen -i
override_dh_gencontrol:
dh_gencontrol -- -Vsignond:DoxygenVersion='$(DOXYGEN_VERSION)'
%:
dh $@ -Bbuild/qt5 --parallel
# as of 8.59 tests fail.
# SsoTestClient: "No such object path '/com/google/code/AccountsSSO/SingleSignOn'"
#override_dh_auto_test:
# xvfb-run -a dbus-launch --exit-with-session dh_auto_test
.PHONY: override_dh_auto_test
|