Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4
5 # export DH_VERBOSE = 1
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all
7 # export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
8 # export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O2
9
10 EXTRA_CMAKE_ARGS = \
11 -DBUILD_TESTING=OFF \
12 -DBUILD_HYPRTESTER=OFF \
13 -DCMAKE_INSTALL_INCLUDEDIR=include/${DEB_HOST_MULTIARCH}
14
15 include /usr/share/dpkg/buildflags.mk
16
17 builddir = build
18
19
20 %:
21 dh $@ --buildsystem=cmake --builddirectory=$(builddir)
22
23 override_dh_auto_configure:
24 dh_auto_configure -- $(EXTRA_CMAKE_ARGS)
25
26 override_dh_dwz:
27 dh_dwz -XHyprland # Skipping dwz, compression not beneficial on Hyprland
28
29 override_dh_gencontrol:
30 . debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/hyprland/debian-abi-helper && \
31 dh_gencontrol -- \
32 "-Vhyprland:Provides=$${HYPRLAND_ABI}, $${HYPRLAND_API}"