debian: Add dependencies and rules for building docs
This commit is contained in:
2
debian/control
vendored
2
debian/control
vendored
@@ -7,10 +7,12 @@ Uploaders:
|
|||||||
Build-Depends:
|
Build-Depends:
|
||||||
debhelper (>= 11),
|
debhelper (>= 11),
|
||||||
desktop-file-utils,
|
desktop-file-utils,
|
||||||
|
gtk-doc-tools <!nodoc>,
|
||||||
libcallaudio-dev,
|
libcallaudio-dev,
|
||||||
libfeedback-dev,
|
libfeedback-dev,
|
||||||
libhandy-1-dev (>= 1.0.0),
|
libhandy-1-dev (>= 1.0.0),
|
||||||
libgtk-3-dev,
|
libgtk-3-dev,
|
||||||
|
libgtk-3-doc <!nodoc>,
|
||||||
modemmanager-dev,
|
modemmanager-dev,
|
||||||
libmm-glib-dev (>= 1.12.0),
|
libmm-glib-dev (>= 1.12.0),
|
||||||
libpeas-dev,
|
libpeas-dev,
|
||||||
|
16
debian/rules
vendored
16
debian/rules
vendored
@@ -2,9 +2,25 @@
|
|||||||
|
|
||||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
|
||||||
|
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
|
||||||
|
CONFIGURE_OPTS+=-Dgtk_doc=true
|
||||||
|
else
|
||||||
|
CONFIGURE_OPTS+=-Dgtk_doc=false
|
||||||
|
endif
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ -- -B_build
|
dh $@ -- -B_build
|
||||||
|
|
||||||
|
override_dh_auto_configure:
|
||||||
|
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/ calls-doc
|
||||||
|
endif
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
|
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
|
||||||
xvfb-run ninja -C _build test
|
xvfb-run ninja -C _build test
|
||||||
|
Reference in New Issue
Block a user