Commit 58cdc85b authored by Guido Gunther's avatar Guido Gunther
Browse files

debian: Support nodoc build profile



The doc build takes ages and it's often not needed on the device
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent b8e666b3
Pipeline #59867 passed with stages
in 43 minutes and 11 seconds
......@@ -4,14 +4,14 @@ Priority: optional
Maintainer: Guido Günther <agx@sigxcpu.org>
Build-Depends:
debhelper (>= 12),
gtk-doc-tools,
gtk-doc-tools <!nodoc>,
libsecret-1-dev,
libfeedback-dev,
libgcr-3-dev,
libglib2.0-doc,
libglib2.0-doc <!nodoc>,
libgnome-desktop-3-dev,
libgtk-3-dev,
libgtk-3-doc,
libgtk-3-doc <!nodoc>,
libhandy-1-dev (>= 1.0.0),
libnm-dev,
libpam0g-dev,
......@@ -20,7 +20,7 @@ Build-Depends:
libupower-glib-dev,
libwayland-dev,
meson,
pandoc,
pandoc <!nodoc>,
# to run the tests
at-spi2-core,
gnome-themes-extra-data,
......@@ -74,6 +74,7 @@ Description: OSK stub to fulfil session dependencies
Package: phosh-doc
Architecture: all
Build-Profiles: <!nodoc>
Depends:
${misc:Depends},
Description: Pure Wayland shell for mobile devices - development documentation
......
......@@ -2,19 +2,26 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Can be turned on bullseye upwards
PHOC_TESTS="disabled"
CONFIGURE_OPTS=-Dphoc_tests=disabled
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
CONFIGURE_OPTS+=-Dgtk_doc=true
else
CONFIGURE_OPTS+=-Dgtk_doc=false
endif
%:
dh $@ --builddirectory=_build
override_dh_auto_configure:
dh_auto_configure -- -Dgtk_doc=true -Dphoc_tests=${PHOC_TESTS}
dh_auto_configure -- $(CONFIGURE_OPTS)
override_dh_auto_build:
dh_auto_build
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
# https://github.com/mesonbuild/meson/pull/2862
ninja -C _build/ phosh-doc
endif
override_dh_installsystemd:
dh_installsystemd --no-start --no-enable --no-restart-on-upgrade --no-restart-after-upgrade
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment