File: rules

package info (click to toggle)
catch2 3.7.1-0.5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 10,296 kB
  • sloc: cpp: 50,696; python: 1,525; sh: 79; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 609 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

# Disable fixfilepath, as it triggers build failures.
export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixfilepath hardening=+pie

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ENABLE_SELFTEST = ON
else
ENABLE_SELFTEST = OFF
endif

ifeq (i386,$(DEB_HOST_ARCH_CPU))
export DEB_CXXFLAGS_MAINT_APPEND=-ffloat-store
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libcatch2-dev/docs \
		-DCATCH_DEVELOPMENT_BUILD=$(ENABLE_SELFTEST) \
		-DCATCH_ENABLE_WERROR=OFF