File: rules

package info (click to toggle)
vecgeom 1.2.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,016 kB
  • sloc: cpp: 88,803; ansic: 6,888; python: 1,035; sh: 582; sql: 538; makefile: 23
file content (31 lines) | stat: -rwxr-xr-x 765 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Use Vc only on amd64, arm, arm64 and i386, else Scalar
ifneq (,$(filter $(DEB_TARGET_ARCH),amd64 arm arm64 i386))
	VECGEOM_BACKEND=Vc
	VC_TARGET_ARCHITECTURE=-DTARGET_ARCHITECTURE=none
else
	VECGEOM_BACKEND=Scalar
endif

# Use x86 VC and SSE4.2 only on amd64
ifneq (,$(filter $(DEB_TARGET_ARCH),amd64))
	VECGEOM_VECTOR=sse4.2
	VC_TARGET_ARCHITECTURE=-DTARGET_ARCHITECTURE=x86-64-v2
else
	VECGEOM_VECTOR=empty
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
		-DBUILD_SHARED_LIBS=ON \
		-DBUILD_TESTING=OFF \
		-DVECGEOM_GDML=ON \
		-DVECGEOM_VECTOR=$(VECGEOM_VECTOR) \
		-DVECGEOM_BACKEND=$(VECGEOM_BACKEND) $(VC_TARGET_ARCHITECTURE)