Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 # see FEATURE AREAS in dpkg-buildflags(1)
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
9 export QT_SELECT := 5
10
11 # Force aligned access to fix FTBFS / Bus Error on armhf
12 export DEB_CFLAGS_MAINT_APPEND = -mno-unaligned-access
13
14 %:
15 dh $@
16
17 override_dh_auto_configure:
18 dh_auto_configure --builddirectory=build-qt6 -- \
19 -DBUILD_TESTING=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \
20 -DENABLE_QT6=ON \
21 -DENABLE_WERROR=OFF
22 dh_auto_configure --builddirectory=build-qt5 -- \
23 -DBUILD_TESTING=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \
24 -DENABLE_QT6=OFF \
25 -DENABLE_WERROR=ON
26
27 override_dh_auto_build:
28 dh_auto_build --builddirectory=build-qt6
29 dh_auto_build --builddirectory=build-qt5
30
31 override_dh_auto_test:
32 QT_QPA_PLATFORM=minimal LD_LIBRARY_PATH=../src GSETTINGS_BACKEND=memory GSETTINGS_SCHEMA_DIR=. xvfb-run -a dh_auto_test --builddirectory=build-qt6
33 QT_QPA_PLATFORM=minimal LD_LIBRARY_PATH=../src GSETTINGS_BACKEND=memory GSETTINGS_SCHEMA_DIR=. xvfb-run -a dh_auto_test --builddirectory=build-qt5
34
35 override_dh_auto_install:
36 dh_auto_install --builddirectory=build-qt6
37 dh_auto_install --builddirectory=build-qt5
38
39 execute_before_dh_install:
40 rm -rf debian/*/usr/tests
41
42 override_dh_auto_clean:
43 dh_auto_clean --builddirectory=build-qt6
44 dh_auto_clean --builddirectory=build-qt5
45
46 get-orig-source:
47 uscan --noconf --force-download --rename --download-current-version --destdir=..