]> code.ossystems Code Review - openembedded-core.git/commitdiff
change gtk-doc.bbclass to pull in depends and oeconf
authorRoss Burton <ross.burton@intel.com>
Thu, 19 Jul 2012 14:04:06 +0000 (15:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jul 2012 13:27:41 +0000 (14:27 +0100)
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/gtk-doc.bbclass

index 58daaf39e25d800cf35a6dec5250a7965f946516..603b1916a94c1983d2698058ccf0f966713f5c0c 100644 (file)
@@ -1,4 +1,16 @@
-# We don't have gtk-doc so disable it
-do_configure_prepend() {
-       echo "EXTRA_DIST=">> ${S}/gtk-doc.make
-}
+# Helper class to pull in the right gtk-doc dependencies and disable
+# gtk-doc.
+#
+# Long-term it would be great if this class could be toggled between
+# gtk-doc-stub-native and the real gtk-doc-native, which would enable
+# re-generation of documentation.  For now, we'll make do with this which
+# packages up any existing documentation (so from tarball builds).
+
+DEPENDS_append = " gtk-doc-stub-native"
+DEPENDS_virtclass-native_append = " gtk-doc-stub-native"
+
+EXTRA_OECONF_append = "\
+  --disable-gtk-doc \
+  --disable-gtk-doc-html \
+  --disable-gtk-doc-pdf \
+"