diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-05-22 10:36:52 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-05-22 14:36:08 -0400 |
commit | b78e83f518965328d5af528477fc680f38518a13 (patch) | |
tree | fd136755c632843a5b2b6eff8774b75d08faa967 | |
parent | 40654b1de0c81d54691a10d1266bc945f3088e8b (diff) | |
download | libnice-b78e83f518965328d5af528477fc680f38518a13.tar.gz |
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.
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | docs/reference/libnice/meson.build | 15 |
2 files changed, 19 insertions, 1 deletions
@@ -1,3 +1,8 @@ +libnice 0.1.17 (2020-05-21) +=========================== +Add API to retrieve the underlying BSD sockets + + libnice 0.1.16 (2019-05-09) =========================== Add API to make it easier to implement ICE trickle diff --git a/docs/reference/libnice/meson.build b/docs/reference/libnice/meson.build index 9e1a717..43021cd 100644 --- a/docs/reference/libnice/meson.build +++ b/docs/reference/libnice/meson.build @@ -24,12 +24,25 @@ ignore_headers = [ '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', + content_files: [fake_makefile], main_xml: 'libnice-docs.xml', namespace: 'nice', mode: 'none', src_dir: [agent_include, stun_include], - dependencies: libnice_dep, + dependencies: [libnice_dep, fake_makefile], scan_args: [ '--rebuild-types', #'--deprecated-guards=G_DISABLE_DEPRECATED', |