Debian Codegraph @

debian/rules

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