Commit b78e83f5 authored by Olivier Crête's avatar Olivier Crête

meson: Make gtkdoc-check work with older gtk-doc

Older gtkdoc versions expect to find a Makefile, so generate
a fake one with the information it wants.
parent 40654b1d
libnice 0.1.17 (2020-05-21)
===========================
Add API to retrieve the underlying BSD sockets
libnice 0.1.16 (2019-05-09) libnice 0.1.16 (2019-05-09)
=========================== ===========================
Add API to make it easier to implement ICE trickle Add API to make it easier to implement ICE trickle
......
...@@ -24,12 +24,25 @@ ignore_headers = [ ...@@ -24,12 +24,25 @@ ignore_headers = [
'win32_common.h', 'win32_common.h',
] ]
if dependency('gtk-doc', version: '<1.30', required: false).found()
prog_python = import('python').find_installation('python3')
fake_makefile = custom_target ('libnice-docs-test-Makefile',
output: 'Makefile',
command: [
prog_python, '-c',
'with open("@OUTPUT@","w") as f: f.writelines(["""DOC_MODULE=libnice\nDOC_MAIN_SGML_FILE=libnice-docs.sgml\n"""])'
])
else
fake_makefile = []
endif
gnome.gtkdoc('libnice', gnome.gtkdoc('libnice',
content_files: [fake_makefile],
main_xml: 'libnice-docs.xml', main_xml: 'libnice-docs.xml',
namespace: 'nice', namespace: 'nice',
mode: 'none', mode: 'none',
src_dir: [agent_include, stun_include], src_dir: [agent_include, stun_include],
dependencies: libnice_dep, dependencies: [libnice_dep, fake_makefile],
scan_args: [ scan_args: [
'--rebuild-types', '--rebuild-types',
#'--deprecated-guards=G_DISABLE_DEPRECATED', #'--deprecated-guards=G_DISABLE_DEPRECATED',
......
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