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.
This commit is contained in:
Xavier Claessens 2019-12-13 13:46:00 -05:00
parent ed0e06097c
commit 5bd78907a7
2 changed files with 7 additions and 1 deletions

View File

@ -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')

4
subprojects/gtk-doc.wrap Normal file
View File

@ -0,0 +1,4 @@
[wrap-git]
directory=gtk-doc
url=https://gitlab.gnome.org/GNOME/gtk-doc.git
revision=master