File: rules

package info (click to toggle)
qtkeychain 0.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: cpp: 2,799; xml: 276; makefile: 24
file content (37 lines) | stat: -rwxr-xr-x 1,164 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility=hidden -fvisibility-inlines-hidden
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk

COMMON_CMAKE_ARGS = -DBUILD_TESTING=OFF

%:
	dh $@ --with pkgkde_symbolshelper

ifneq (,$(filter $(DEB_HOST_ARCH), alpha amd64 arm64 armel armhf hppa hurd-amd64 hurd-i386 i386 loong64 mips64el powerpc ppc64 ppc64el riscv64 sh4 sparc64 s390x x32))
override_dh_auto_clean:
	dh_auto_clean
	rm -rf build-Qt6

override_dh_auto_configure:
	dh_auto_configure -- $(COMMON_CMAKE_ARGS) -DBUILD_WITH_QT6=OFF
	dh_auto_configure --builddirectory=build-Qt6  -- $(COMMON_CMAKE_ARGS) -DBUILD_WITH_QT6=ON \
		-DECM_MKSPECS_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/qt6/mkspecs/modules

override_dh_auto_build:
	dh_auto_build
	dh_auto_build --builddirectory=build-Qt6

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --builddirectory=build-Qt6
endif

override_dh_auto_test:
	# the tests require a FreeDesktop Secret service running