on 2d12d49 help sign in
unity8/debian/rules
45 lines 1.4 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
11%:
12 dh $@ --parallel --fail-missing --with python3
14override_dh_auto_configure:
15 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
16 # So until Debian bug 719148 is fixed, do it ourselves.
17 dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var"
19override_dh_auto_build:
20 # doc is not a default target
21 dh_auto_build -- -O all doc
23override_dh_auto_test:
24 # Run the entire test battery
25 # Parallel tests have a risk of starting xvfb on the same DISPLAY multiple times,
26 # causing the whole battery to fail.
27 dh_auto_test --no-parallel -- -O -k xvfballtests
29override_dh_install:
30 # install autopilot tests
31 cd tests/autopilot; \
32 set -ex; for python in $(shell py3versions -r); do \
33 $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
34 done; \
35 cd $(CURDIR)
36 dh_install -X'*.pyc' --fail-missing
38# use private lib directories
39override_dh_makeshlibs:
40 dh_makeshlibs -Nunity8-private -Nunity8-tests
42override_dh_shlibdeps:
43 # Some mock libraries link against liblightdm-qt5-3.so which we want to
44 # avoid, since we only really link against our mock one, not the system one.
45 dh_shlibdeps -XlibMockAccountsService-qml.so -Lunity8-private