Add api-doc class
PATCH 2/2 Add api-doc class
From: Zongchun Yu <[email protected]>
this class use doxygen to generate api docs from source code
Signed-off-by Zongchun Yu <[email protected]>
--- meta/classes/api-doc.bbclass | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 meta/classes/api-doc.bbclass
meta/classes/api-doc.bbclass new file +16 -0
@@ -0,0 +1,16 @@ +# Helper class to pull in the right dependencies and generate +# api documentation from sources code + +DEPENDS += "doxygen-native" + +# Doxygen configuration file +DOXYGEN_CFG ?= "Doxyfile" + +do_generate_doc () { + if [ -e ${S}/${DOXYGEN_CFG} ]; then + doxygen ${S}/${DOXYGEN_CFG} + else + bbfatal "no doxygen configuration file found" + fi +} +addtask generate_doc before do_install after do_patch
Signature · 1 line
1.7.0.4