on e1ebb5c help sign in
unity8/debian/rules
57 lines 1.8 kB history raw
1#!/usr/bin/make -f
2# -*- makefile -*-
4include /usr/share/dpkg/default.mk
6# Uncomment this to turn on verbose mode.
7#export DH_VERBOSE=1
8export DPKG_GENSYMBOLS_CHECK_LEVEL=4
9export NO_PNG_PKG_MANGLE=1
10export QT_SELECT=qt5
12DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
14# Skip tests on the archs they are known to be flaky with current configuration
15testskip_architectures := arm64 powerpc ppc64el s390x
17%:
18 dh $@ --parallel --fail-missing --with python3
20override_dh_auto_configure:
21 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
22 # So until Debian bug 719148 is fixed, do it ourselves.
23 dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var"
25override_dh_auto_build:
26 # doc is not a default target
27 dh_auto_build -- -O all doc
29override_dh_auto_test:
30 # Run the entire test battery
31 # Parallel tests have a risk of starting xvfb on the same DISPLAY multiple times,
32 # causing the whole battery to fail.
33ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
34ifneq (,$(filter $(DEB_HOST_ARCH),$(testskip_architectures)))
35 -dh_auto_test --no-parallel -- -O -k xvfballtests
36else
37 dh_auto_test --no-parallel -- -O -k xvfballtests
38endif
39endif
41override_dh_install:
42 # install autopilot tests
43 cd tests/autopilot; \
44 set -ex; for python in $(shell py3versions -r); do \
45 $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
46 done; \
47 cd $(CURDIR)
48 dh_install -X'*.pyc' --fail-missing
50# use private lib directories
51override_dh_makeshlibs:
52 dh_makeshlibs -Nunity8-private -Nunity8-tests
54override_dh_shlibdeps:
55 # Some mock libraries link against liblightdm-qt5-3.so which we want to
56 # avoid, since we only really link against our mock one, not the system one.
57 dh_shlibdeps -XlibMockAccountsService-qml.so -Lunity8-private