All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] Add api-doc class
@ 2014-05-16  7:45 b40527
  2014-05-16  9:39 ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: b40527 @ 2014-05-16  7:45 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zongchun Yu

From: Zongchun Yu <Zongchun.Yu@freescale.com>

this class use doxygen to generate api docs from source code

Signed-off-by: Zongchun Yu <Zongchun.Yu@freescale.com>
---
 meta/classes/api-doc.bbclass |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 meta/classes/api-doc.bbclass

diff --git a/meta/classes/api-doc.bbclass b/meta/classes/api-doc.bbclass
new file mode 100644
index 0000000..0879c3e
--- /dev/null
+++ b/meta/classes/api-doc.bbclass
@@ -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
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 2/2] Add api-doc class
@ 2014-05-16  9:01 b40527
  0 siblings, 0 replies; 9+ messages in thread
From: b40527 @ 2014-05-16  9:01 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zongchun Yu

From: Zongchun Yu <Zongchun.Yu@freescale.com>

this class use doxygen to generate api docs from source code

Signed-off-by: Zongchun Yu <Zongchun.Yu@freescale.com>
---
 meta/classes/api-doc.bbclass |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 meta/classes/api-doc.bbclass

diff --git a/meta/classes/api-doc.bbclass b/meta/classes/api-doc.bbclass
new file mode 100644
index 0000000..0879c3e
--- /dev/null
+++ b/meta/classes/api-doc.bbclass
@@ -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
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-23  9:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-16  7:45 [PATCH 2/2] Add api-doc class b40527
2014-05-16  9:39 ` Burton, Ross
2014-05-16 10:18   ` Zongchun YU
2014-05-16 10:34     ` Burton, Ross
2014-05-19  3:18       ` Zongchun YU
2014-05-19  9:46         ` Burton, Ross
2014-05-23  5:45           ` Zongchun YU
2014-05-23  9:37             ` Burton, Ross
  -- strict thread matches above, loose matches on Subject: below --
2014-05-16  9:01 b40527

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.