Documentation includes only the externally visible API of the installed headers.
Based on a patch by Anton Khirnov <[email protected]>. --- doc/Makefile | 4 ++++ doc/doxy-wrapper.sh | 14 ++++++++++++++ library.mak | 2 ++ 3 files changed, 20 insertions(+) create mode 100755 doc/doxy-wrapper.sh diff --git a/doc/Makefile b/doc/Makefile index 6353034..a8ccb25 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -14,6 +14,7 @@ DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES) all-$(CONFIG_DOC): documentation +apidoc: doc/doxy/html documentation: $(DOCS) TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d) @@ -41,6 +42,9 @@ doc/%.1: doc/%.pod $(GENTEXI) $(DOCS): | doc/ +doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS) | doc/ + $(Q)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^ + install-progs-$(CONFIG_DOC): install-man install-man: $(MANPAGES) diff --git a/doc/doxy-wrapper.sh b/doc/doxy-wrapper.sh new file mode 100755 index 0000000..6650e38 --- /dev/null +++ b/doc/doxy-wrapper.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +SRC_PATH="${1}" +DOXYFILE="${2}" + +shift 2 + +doxygen - <<EOF +@INCLUDE = ${DOXYFILE} +INPUT = $@ +HTML_HEADER = ${SRC_PATH}/doc/doxy/header.html +HTML_FOOTER = ${SRC_PATH}/doc/doxy/footer.html +HTML_STYLESHEET = ${SRC_PATH}/doc/doxy/doxy_stylesheet.css +EOF diff --git a/library.mak b/library.mak index cbfa0d4..6b6fc62 100644 --- a/library.mak +++ b/library.mak @@ -6,6 +6,8 @@ LIBVERSION := $(lib$(NAME)_VERSION) LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) INCINSTDIR := $(INCDIR)/lib$(NAME) +INSTHEADERS += $(HEADERS:%=$(SUBDIR)%) + all-$(CONFIG_STATIC): $(SUBDIR)$(LIBNAME) all-$(CONFIG_SHARED): $(SUBDIR)$(SLIBNAME) -- 1.7.12.4 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
