mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-27 06:59:51 -05:00
doc: Add auto-generated Wayland Library chapter
For now only Wayland Client API is described on that chapter, which is extracted via doxygen on ./src/wayland-client.h. We apply a stylesheet (doxygen-to-publican) on doxygen output so it becomes docbook valid. Now all we need to do is populate that header while developing in order to grow a decent documentation. So please use it! Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
parent
29c20e2eb6
commit
e2db4cf26f
8 changed files with 1863 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ publican_sources = \
|
|||
$(srcdir)/en_US/Book_Info.xml \
|
||||
$(srcdir)/en_US/Wayland.xml \
|
||||
$(srcdir)/en_US/Protocol.xml \
|
||||
$(srcdir)/en_US/Library.xml \
|
||||
$(srcdir)/en_US/Compositors.xml \
|
||||
$(srcdir)/en_US/Overview.xml \
|
||||
$(srcdir)/en_US/images/icon.svg \
|
||||
|
|
@ -17,7 +18,8 @@ noinst_DATA = Wayland $(publican_targets)
|
|||
pubdir = $(docdir)/Wayland/en-US
|
||||
|
||||
publican_targets = $(publican_sources:$(srcdir)/en_US%=$(builddir)/en-US%) \
|
||||
en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml
|
||||
en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml \
|
||||
en-US/WaylandClientAPI.xml
|
||||
|
||||
# The Protocol.xml is purely generated and required before running publican
|
||||
en-US/ProtocolSpec.xml: $(top_srcdir)/protocol/wayland.xml $(srcdir)/protocol-to-docbook.xsl
|
||||
|
|
@ -30,11 +32,15 @@ en-US/ProtocolInterfaces.xml: $(top_srcdir)/protocol/wayland.xml $(srcdir)/proto
|
|||
$(AM_V_GEN)$(XSLTPROC) $(srcdir)/protocol-interfaces-to-docbook.xsl \
|
||||
$(top_srcdir)/protocol/wayland.xml > en-US/ProtocolInterfaces.xml
|
||||
|
||||
en-US/WaylandClientAPI.xml: $(top_srcdir)/doc/doxygen/xml/wayland-client_8h.xml $(srcdir)/doxygen-to-publican.xsl
|
||||
$(AM_V_GEN)$(MKDIR_P) en-US/images
|
||||
$(AM_V_GEN)$(XSLTPROC) $(srcdir)/doxygen-to-publican.xsl \
|
||||
$(top_srcdir)/doc/doxygen/xml/wayland-client_8h.xml > en-US/WaylandClientAPI.xml
|
||||
|
||||
# Copy the en_US source files into en-US destination
|
||||
# This is required for out-of-source-tree build as publican does not allow us
|
||||
# to specify the location of the source code.
|
||||
$(builddir)/en-US/%: $(srcdir)/en_US/% en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml $(publican_sources)
|
||||
$(builddir)/en-US/%: $(srcdir)/en_US/% en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml en-US/WaylandClientAPI.xml $(publican_sources)
|
||||
$(AM_V_GEN)cp -f $< $@
|
||||
|
||||
# Run publican for the builddir on the generated (or copied) source
|
||||
|
|
@ -49,7 +55,7 @@ Wayland: $(publican_targets)
|
|||
--config $(srcdir)/publican.cfg
|
||||
@touch Wayland
|
||||
|
||||
CLEANFILES = en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml $(publican_targets)
|
||||
CLEANFILES = en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml en-US/WaylandClientAPI.xml $(publican_targets)
|
||||
|
||||
clean-local:
|
||||
$(AM_V_at)rm -fr en-US
|
||||
|
|
@ -79,4 +85,4 @@ uninstall-local:
|
|||
|
||||
endif
|
||||
|
||||
EXTRA_DIST = $(publican_sources) publican.cfg protocol-to-docbook.xsl
|
||||
EXTRA_DIST = $(publican_sources) publican.cfg protocol-to-docbook.xsl protocol-interfaces-to-docbook.xsl doxygen-to-publican.xsl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue