summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 44df372940452e569a4ab329811ba0fcafb5b635 (plain)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

# ITP #946605
ifeq ($(filter pkg.libportal.enable,$(DEB_BUILD_PROFILES)),)
CONFFLAGS += --disable-libportal
else
CONFFLAGS += --enable-libportal
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-docbook-docs \
		--enable-geoclue \
		--enable-installed-tests \
		--enable-pipewire \
		$(CONFFLAGS)
		$(NULL)

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	chmod +x tests/test-document-fuse.py
	G_MESSAGES_DEBUG=all \
	TEST_IN_CI=1 \
	dh_auto_test --no-parallel
endif