File: rules

package info (click to toggle)
pistache 0.0.5%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,420 kB
  • sloc: cpp: 19,169; ansic: 556; sh: 86; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 509 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
#!/usr/bin/make -f

# optimize=-lto because I use Meson's LTO
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto qa=+all
# Required as libpistache-dev ships .a files
export DEB_CXXFLAGS_MAINT_APPEND = -ffat-lto-objects

%:
	dh $@ --buildsystem=meson

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
  test := true
else
  test := false
endif

override_dh_auto_configure:
	dh_auto_configure -- \
		--default-library=both \
		-Db_lto=true \
		-DPISTACHE_BUILD_TESTS=$(test) \
		-DPISTACHE_USE_SSL=true