on 3987688 help sign in
unity8/debian/rules
62 lines 2.0 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
17DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
19# Skip tests on the archs they are known to be flaky with current configuration
20testskip_architectures := arm64
22%:
23 dh $@ --parallel --fail-missing --with python3
25override_dh_auto_configure:
26 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
27 # So until Debian bug 719148 is fixed, do it ourselves.
28 dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var"
30override_dh_auto_build:
31 # doc is not a default target
32 dh_auto_build -- -O all doc
34override_dh_auto_test:
35 # Run the entire test battery
36 # Parallel tests have a risk of starting xvfb on the same DISPLAY multiple times,
37 # causing the whole battery to fail.
38ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
39ifneq (,$(filter $(DEB_HOST_ARCH),$(testskip_architectures)))
40 -dh_auto_test --no-parallel -- -O -k xvfballtests
41else
42 dh_auto_test --no-parallel -- -O -k xvfballtests
43endif
44endif
46override_dh_install:
47 # install autopilot tests
48 cd tests/autopilot; \
49 set -ex; for python in $(shell py3versions -r); do \
50 $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
51 done; \
52 cd $(CURDIR)
53 dh_install -X'*.pyc' --fail-missing
55# use private lib directories
56override_dh_makeshlibs:
57 dh_makeshlibs -Nunity8-private -Nunity8-tests
59override_dh_shlibdeps:
60 # Some mock libraries link against liblightdm-qt5-3.so which we want to
61 # avoid, since we only really link against our mock one, not the system one.
62 dh_shlibdeps -XlibMockAccountsService-qml.so -Lunity8-private