Imported Upstream version 0.1.17
[platform/upstream/libnice.git] / docs / reference / libnice / meson.build
index 17c5743..6a20000 100644 (file)
@@ -24,11 +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', 'stun'],
+             src_dir: [agent_include, stun_include],
+             content_files: fake_makefile,
              dependencies: libnice_dep,
              scan_args: [
                '--rebuild-types',
@@ -47,7 +61,8 @@ gnome.gtkdoc('libnice',
                '--output-format=xml',
                '--name-space=Nice',
              ],
-             install: true)
+             install: true,
+             check: true)
 
 # If we ever need to regenerate this diagram.
 # Since it’s not expected to change much, let’s not depend on GraphViz to