shithub: libvpx

Download patch

ref: 52e1465e995e3173e60e12b20a0feb0ea7fc9c10
parent: 890c8a15d11be3141dff16c2c577622b59abbb66
author: Johann <johann.koenig@duck.com>
date: Thu Dec 13 08:04:09 EST 2018

doxygen: fix --disable-examples

Only include the sample code link when they are built.

BUG=webm:1565

Change-Id: If13126b59953b51a76c964da4a8c58eb367f2dd7

--- a/examples.mk
+++ b/examples.mk
@@ -404,3 +404,4 @@
 DOCS-yes += examples.doxy samples.dox
 examples.doxy: samples.dox $(ALL_EXAMPLES:.c=.dox)
 	@echo "INPUT += $^" > $@
+	@echo "ENABLED_SECTIONS += samples" >> $@
--- a/mainpage.dox
+++ b/mainpage.dox
@@ -25,8 +25,10 @@
     release.
   - The \ref readme contains instructions on recompiling the sample applications.
   - Read the \ref usage "usage" for a narrative on codec usage.
+  \if samples
   - Read the \ref samples "sample code" for examples of how to interact with the
     codec.
+  \endif
   - \ref codec reference
   \if encoder
   - \ref encoder reference
--- a/usage_cx.dox
+++ b/usage_cx.dox
@@ -8,6 +8,8 @@
     \ref usage_deadline.
 
 
+    \if samples
     \ref samples
+    \endif
 
 */
--- a/usage_dx.dox
+++ b/usage_dx.dox
@@ -11,7 +11,9 @@
     \ref usage_postproc based on the amount of free CPU time. For more
     information on the <code>deadline</code> parameter, see \ref usage_deadline.
 
+    \if samples
     \ref samples
+    \endif
 
 
     \section usage_cb Callback Based Decoding