blob: 883bf9c4136060860425b1048e7de261f728df39 (
plain) (
blame)
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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export BARRIER_VERSION_STAGE=Release
ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
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:
builddir/bin/guiunittests
xvfb-run -a builddir/bin/integtests
builddir/bin/unittests
|