Skip to content
Snippets Groups Projects
Commit f62a63bd authored by Simon McVittie's avatar Simon McVittie
Browse files

Don't build gtk-doc documentation if gtk-doc is too old


The gtk-doc in scout doesn't understand --cflags.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 8ef6e758
Branches
Tags
1 merge request!12Don't build gtk-doc documentation if gtk-doc is too old
...@@ -7,8 +7,20 @@ export LC_ALL=C.UTF-8 ...@@ -7,8 +7,20 @@ export LC_ALL=C.UTF-8
include /usr/share/dpkg/default.mk include /usr/share/dpkg/default.mk
gtk_doc_has_cflags := $(shell \
if gtkdoc-scangobj --help 2>&1 | grep '[-]-cflags' >/dev/null; then \
echo true; \
else \
echo false; \
fi \
)
dh_options :=
ifeq ($(gtk_doc_has_cflags),false)
dh_options += -Nlibsteam-runtime-tools-0-doc
endif
%: %:
dh $@ dh $@ $(dh_options)
# We open-code the Meson clean, configure, build, test, install steps # We open-code the Meson clean, configure, build, test, install steps
# because the debhelper in SteamRT 1 'scout' is too old to have built-in # because the debhelper in SteamRT 1 'scout' is too old to have built-in
...@@ -21,6 +33,7 @@ override_dh_auto_configure: ...@@ -21,6 +33,7 @@ override_dh_auto_configure:
meson builddir \ meson builddir \
--prefix=/usr \ --prefix=/usr \
--libexecdir=/usr/libexec \ --libexecdir=/usr/libexec \
-Dgtk_doc=$(gtk_doc_has_cflags) \
-Dintrospection=false \ -Dintrospection=false \
$(NULL) $(NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment