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 export LLVM_INSTALL_DIR := $(shell llvm-config --prefix)
7
8 # enable ccache with corresponding build-profile
9 ifneq ($(filter ccache,$(DEB_BUILD_PROFILES)),)
10 extra_cmake_args += -DQT_USE_CCACHE=ON
11 endif
12
13 %:
14 dh $@ --buildsystem=cmake+ninja
15
16 override_dh_auto_configure:
17 dh_auto_configure -- \
18 --log-level=STATUS \
19 -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
20 -DCMAKE_SKIP_INSTALL_RPATH=ON \
21 -DINSTALL_PUBLICBINDIR=/usr/bin \
22 $(extra_cmake_args)
23
24 override_dh_shlibdeps:
25 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
26
27 override_dh_auto_build-indep:
28 dh_auto_build -- docs
29
30 override_dh_auto_install-indep:
31 DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install_docs
32 # Remove build path from index files.
33 find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
34 sed -i 's@$(CURDIR)/@@g' {} \;
35
36 execute_after_dh_auto_install-arch:
37 # Reproducible builds: remove build paths from .prl files
38 sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt6*.prl
39 # Reproducible builds: remove kernel version from build artifacts
40 sed -i '/^[[:space:]]*"version":.*deb/d' debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/qt6/modules/*.json