doc: generate doxygen html output from the scanner
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 29 Feb 2016 23:26:21 +0000 (09:26 +1000)
committerBryce Harrington <bryce@osg.samsung.com>
Mon, 7 Mar 2016 19:55:43 +0000 (11:55 -0800)
commit2b5310a367a81a6132207c398d188edc9e34c15f
tree624905add9e8ec1d3ffc011b08b8ce3413a4e0fc
parentf8f3e54aa7bc15871ca4296cbc16ae065b07de4e
doc: generate doxygen html output from the scanner

This switches the scanner to generate doxygen-compatible tags for the
generated protocol headers, and hooks up the doxygen build to generate server
and client-side API documentation. That documentation is now in
Client/ and Server/, respectively.

GENERATE_HTML is on by default and must be disabled for the xml/man targets to
avoid messing up the new documentation. We disable all three three targets in
the doxyfile (xml and man default to NO anyway) to make it obvious that they
need to be set in the per-target instructions.

Each protocol is a separate doxygen @page, with each interface a @subpage.
Wayland only has one protocol, wayland-protocols will have these nested.
Each protocol page has a list of interfaces and the copyright and description
where available.
All interfaces are grouped by doxygen @defgroup and @ingroups and appear in
"Modules" in the generated output. Each interface subpage has the description
and a link to the actual API doc.
Function, struct and #defines are documented in doxygen style and associated
with the matching interface.

Note that pages and groups have fixed HTML file names and are directly
linkable/bookmark-able.

The @mainpage is a separate file that's included at build time. It doesn't
contain much other than links to where the interesting bits are. It's a static
file though that supports markdown, so we can extend it easily in the future.

For doxygen we need the new options EXTRACT_ALL and OPTIMIZE_OUTPUT_FOR_C so
it scans C code properly. EXTRACT_STATIC is needed since most of the protocol
hooks are static.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
doc/doxygen/Makefile.am
doc/doxygen/mainpage.dox [new file with mode: 0644]
doc/doxygen/wayland.doxygen.in
src/scanner.c