summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-07-30 16:42:52 +0100
committerOlivier Crête <olivier.crete@collabora.com>2018-12-14 14:47:01 -0500
commit0e0f89d2b916dc0475787e0970bb692882ee3de2 (patch)
treee63653836a4e07fd0d54c5b2b5b52d7535d37c91 /docs
parented70ea09b6b283b25d3047443c00a14c8cb29e1a (diff)
downloadlibnice-0e0f89d2b916dc0475787e0970bb692882ee3de2.tar.gz
Add support for Meson build system
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/libnice/meson.build61
1 files changed, 61 insertions, 0 deletions
diff --git a/docs/reference/libnice/meson.build b/docs/reference/libnice/meson.build
new file mode 100644
index 0000000..17c5743
--- /dev/null
+++ b/docs/reference/libnice/meson.build
@@ -0,0 +1,61 @@
+docpath = join_paths(nice_datadir, 'gtk-doc', 'html')
+
+ignore_headers = [
+ 'conncheck.h',
+ 'discovery.h',
+ 'stream.h',
+ 'component.h',
+ 'agent-priv.h',
+ 'iostream.h',
+ 'inputstream.h',
+ 'outputstream.h',
+ 'gstnice.h',
+ 'gstnicesrc.h',
+ 'gstnicesink.h',
+ 'md5.h',
+ 'sha1.h',
+ 'stunhmac.h',
+ 'utils.h',
+ 'rand.h',
+ 'stun5389.h',
+ 'stuncrc32.h',
+ 'stund.h',
+ 'agent-signals-marshal.h',
+ 'win32_common.h',
+]
+
+gnome.gtkdoc('libnice',
+ main_xml: 'libnice-docs.xml',
+ namespace: 'nice',
+ mode: 'none',
+ src_dir: ['agent', 'stun'],
+ dependencies: libnice_dep,
+ scan_args: [
+ '--rebuild-types',
+ #'--deprecated-guards=G_DISABLE_DEPRECATED',
+ #'--ignore-decorators=' + '|'.join(ignore_decorators),
+ '--ignore-headers=' + ' '.join(ignore_headers),
+ ],
+ html_assets: [
+ 'states.png',
+ ],
+ fixxref_args:[
+ '--html-dir=' + docpath,
+ ],
+ mkdb_args: [ # not sure if these need to be specified explicitly here
+ '--xml-mode',
+ '--output-format=xml',
+ '--name-space=Nice',
+ ],
+ install: true)
+
+# If we ever need to regenerate this diagram.
+# Since it’s not expected to change much, let’s not depend on GraphViz to
+# build the docs (that's also why we don't use find_program('dot') here)
+run_target('update-states.png',
+ command: ['dot',
+ '-Tpng',
+ '-o', join_paths(meson.current_source_dir(), 'states.png'),
+ '-Gsize=9.6,2.9!',
+ '-Gdpi=200',
+ files('states.gv')])