Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 # export DH_VERBOSE=1
6
7 DPKG_EXPORT_BUILDFLAGS = 1
8 include /usr/share/dpkg/default.mk
9 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
10
11 export BARRIER_VERSION_STAGE=Release
12
13 ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
14 CONFIGURE_FLAGS += -DBARRIER_BUILD_TESTS=no
15 else ifeq (,$(filter amd64 i386,$(DEB_HOST_ARCH)))
16 CONFIGURE_FLAGS += -DBARRIER_BUILD_TESTS=no
17 endif
18
19 %:
20 dh $@ --builddirectory=builddir
21
22 override_dh_auto_configure:
23 dh_auto_configure --builddirectory=builddir -- -DBARRIER_USE_EXTERNAL_GTEST=ON $(CONFIGURE_FLAGS)
24
25 override_dh_auto_test:
26 ifneq (,$(filter amd64 i386,$(DEB_HOST_ARCH)))
27 builddir/bin/guiunittests
28 xvfb-run -a builddir/bin/integtests
29 builddir/bin/unittests
30 endif