From 5bd78907a7ca1e82484430c7e38331ad40a76ae7 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 13 Dec 2019 13:46:00 -0500 Subject: [PATCH] doc: Add gtk-doc subproject fallback Now that we require Meson 0.52 to build the doc, we can also pull gtk-doc as subproject when missing from the system. This requires to pull gtk-doc master because needed changes there haven't been release yet. --- docs/reference/meson.build | 4 +++- subprojects/gtk-doc.wrap | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 subprojects/gtk-doc.wrap diff --git a/docs/reference/meson.build b/docs/reference/meson.build index bdc22a0c3..0dd821ada 100644 --- a/docs/reference/meson.build +++ b/docs/reference/meson.build @@ -50,7 +50,9 @@ if get_option('gtk_doc') endif # Check we have the minimum gtk-doc version required. Older versions won't # generate correct documentation. - dependency('gtk-doc', version : '>=1.32') + dependency('gtk-doc', version : '>=1.32', + fallback : ['gtk-doc', 'dummy_dep'], + default_options : ['tests=false']) endif subdir('gio') diff --git a/subprojects/gtk-doc.wrap b/subprojects/gtk-doc.wrap new file mode 100644 index 000000000..7469d027b --- /dev/null +++ b/subprojects/gtk-doc.wrap @@ -0,0 +1,4 @@ +[wrap-git] +directory=gtk-doc +url=https://gitlab.gnome.org/GNOME/gtk-doc.git +revision=master