Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 include /usr/share/dpkg/architecture.mk
3
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
5
6 # QT_HOST_PATH isn't passed in cross-builds
7 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
8 extra_cmake_args += -DQT_HOST_PATH=/usr
9 endif
10
11 # enable ccache with corresponding build-profile
12 ifneq ($(filter ccache,$(DEB_BUILD_PROFILES)),)
13 extra_cmake_args += -DQT_USE_CCACHE=ON
14 endif
15
16 %:
17 dh $@ --buildsystem=cmake+ninja
18
19 override_dh_auto_configure:
20 dh_auto_configure -- \
21 --log-level=STATUS \
22 -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
23 $(extra_cmake_args)
24
25 override_dh_auto_build-indep:
26 dh_auto_build -- docs
27
28 override_dh_auto_install-indep:
29 DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install_docs
30 # Remove build path from index files.
31 find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
32 sed -i 's@$(CURDIR)/@@g' {} \;
33
34 execute_after_dh_auto_install-arch:
35 # Reproducible builds: remove build paths from .prl files
36 sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt6*.prl
37 # Reproducible builds: remove kernel version from build artifacts
38 sed -i '/^[[:space:]]*"version":.*deb/d' debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/qt6/modules/*.json