Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Enable build hardening
4 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
5 DPKG_EXPORT_BUILDFLAGS=1
6 include /usr/share/dpkg/buildflags.mk
7 include /usr/share/dpkg/default.mk
8
9 # provide debian version number to the build system
10 #
11 # Rationale: dspdfviewer --version embeds the information that this
12 # is from the debian package. This is useful when users go
13 # directly to the github-issue-tracker instead of using reportbug.
14
15 override_dh_auto_configure:
16 dh_auto_configure -- \
17 -DDSPDFVIEWER_VERSION=$(DEB_VERSION_UPSTREAM_REVISION) \
18 -DUsePrerenderedPDF=ON \
19 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
20
21 # Run tests inside xvfb, like upstream does in _travis/test script.
22 override_dh_auto_test:
23 xvfb-run -a -s '-screen 0 1920x1080x24 -screen 1 1920x1200x24' \
24 dh_auto_test
25
26 %:
27 dh $@