File: rules

package info (click to toggle)
barrier 2.4.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,252 kB
  • sloc: cpp: 76,042; sh: 85; xml: 46; makefile: 19
file content (30 lines) | stat: -rwxr-xr-x 778 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export BARRIER_VERSION_STAGE=Release

ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	CONFIGURE_FLAGS += -DBARRIER_BUILD_TESTS=no
else ifeq (,$(filter amd64 i386,$(DEB_HOST_ARCH)))
	CONFIGURE_FLAGS += -DBARRIER_BUILD_TESTS=no
endif

%:
	dh $@ --builddirectory=builddir

override_dh_auto_configure:
	dh_auto_configure --builddirectory=builddir -- -DBARRIER_USE_EXTERNAL_GTEST=ON $(CONFIGURE_FLAGS)

override_dh_auto_test:
ifneq (,$(filter amd64 i386,$(DEB_HOST_ARCH)))
	builddir/bin/guiunittests
	xvfb-run -a builddir/bin/integtests
	builddir/bin/unittests
endif