File: rules

package info (click to toggle)
vecgeom 1.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,928 kB
  • sloc: cpp: 88,717; ansic: 6,894; python: 1,035; sh: 582; sql: 538; makefile: 29
file content (39 lines) | stat: -rwxr-xr-x 930 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
32
33
34
35
36
37
38
39
#!/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

# Use Embree only on any-amd64
ifneq (,$(filter $(DEB_TARGET_ARCH),amd64))
	VECGEOM_EMBREE=ON
else
	VECGEOM_EMBREE=OFF
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_EMBREE=$(VECGEOM_EMBREE) \
		-DVECGEOM_VECTOR=$(VECGEOM_VECTOR) \
		-DVECGEOM_BACKEND=$(VECGEOM_BACKEND) $(VC_TARGET_ARCHITECTURE)