[go: up one dir, main page]

File: rules

package info (click to toggle)
racon 1.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 3,448 kB
  • sloc: cpp: 2,559; python: 255; makefile: 36; sh: 27
file content (23 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

DEB_CMAKE_EXTRA_FLAGS = -Dracon_build_tests=ON -Dracon_build_wrapper=ON

ifneq (,$(filter $(DEB_HOST_ARCH), i386))
	export DEB_CXXFLAGS_MAINT_APPEND += -ffloat-store
endif

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
	# Somehow the means in the patch for CMakeLists.txt to replace -lpthread by -pthread to not work
	# Just hack it here
	sed -i 's/-lpthread/-pthread/' obj-*/CMakeFiles/racon_test.dir/link.txt

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd test && ../obj-*/bin/racon_test
endif