Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 include /usr/share/dpkg/architecture.mk
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 ifeq ($(DEB_HOST_ARCH_CPU),amd64)
5 HAVE_SSE2=ON
6 else
7 HAVE_SSE2=OFF
8 endif
9
10 %:
11 dh $@
12
13 override_dh_auto_configure:
14 dh_auto_configure -- -DSSE2_FOUND=$(HAVE_SSE2)
15
16 override_dh_auto_test:
17 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
18 mkdir -p obj-$(DEB_HOST_GNU_TYPE)/tests-build
19 cd obj-$(DEB_HOST_GNU_TYPE)/tests-build && cmake ../../tests -DSSE2_FOUND=$(HAVE_SSE2) && $(MAKE) && ./tests
20 endif