File: rules

package info (click to toggle)
glibmm2.68 2.84.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,384 kB
  • sloc: xml: 118,044; cpp: 15,886; perl: 5,667; python: 2,114; makefile: 366; sh: 260
file content (29 lines) | stat: -rwxr-xr-x 825 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

# Only pay attention to symbols for select architectures
# Only do this on Ubuntu since the benefit of this symbols tracking is unclear
ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 ppc64el s390x hppa ia64 ppc64 sh4 sparc64))
	export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
else
	export DPKG_GENSYMBOLS_CHECK_LEVEL = 0
endif
else
	export DPKG_GENSYMBOLS_CHECK_LEVEL = 0
endif

%:
	dh $@ --buildsystem=meson --without autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		-Dmaintainer-mode=true \
		-Dbuild-documentation=true \
		-Dwarnings=max

# Don't compress doxygen tag files
override_dh_compress:
	dh_compress -X.tag -X.cc