Files
feedbackd/debian/rules
T
Guido Günther 96d9d82d51 packaging: Add build profile to build with and install media roles
We create an wireplumber-xdg-media-roles package that contains the role configuration.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-12-30 23:10:22 +01:00

41 lines
953 B
Makefile
Executable File

#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CONFIGURE_OPTS=--wrap-mode=default -Dudev=true
ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CONFIGURE_OPTS += -Dtests=false
endif
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
CONFIGURE_OPTS += -Dgtk_doc=true -Dman=true
endif
ifneq (,$(filter pkg.feedbackd.media-roles,$(DEB_BUILD_PROFILES)))
CONFIGURE_OPTS += -Dmedia-roles=true
endif
COMMON_PKG=feedbackd-common
docroot := $(CURDIR)/debian/tmp/usr/share/doc/
%:
dh $@ --builddirectory=_build
override_dh_installdocs:
dh_installdocs -p$(COMMON_PKG) NEWS
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
mkdir -p $(docroot)/libfeedback-dev/libfeedback-0
mv $(docroot)/libfeedback-0 $(docroot)/libfeedback-dev/
endif
dh_installdocs
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_OPTS)
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
dbus-run-session ninja -C _build test
endif