From 1b2a5d69f5467a4eede7c53b0f29458649cc499e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 21 Dec 2010 09:21:30 +0900 Subject: [PATCH] Make documentation of static functions configurable. Deek doesn't want docs for static functions, but I do. When two developers disagree on something like this, there's only one thing to do :) --- configure.ac | 9 +++++++++ doc/quakeforge.dox.in | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 194e526e3..f98c2a3e1 100644 --- a/configure.ac +++ b/configure.ac @@ -114,6 +114,15 @@ m4_include(config.d/build_control.m4) m4_include(config.d/qfcc.m4) m4_include(config.d/compiling.m4) +AC_ARG_ENABLE(static-doc, + [ --enable-static-doc Enable generation of doxygen docs for static] + [ functions.]) +STATIC_DOC=NO +if test "x$enable_static_doc" = xyes; then + STATIC_DOC=YES +fi +AC_SUBST(STATIC_DOC) + AC_ARG_ENABLE(typecheck-progs, [ --enable-typecheck-progs Enable type checking on progs field access]) if test "x$enable_typecheck_progs" = xyes; then diff --git a/doc/quakeforge.dox.in b/doc/quakeforge.dox.in index 8da06ab3e..efeb6dab7 100644 --- a/doc/quakeforge.dox.in +++ b/doc/quakeforge.dox.in @@ -308,7 +308,7 @@ EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. -EXTRACT_STATIC = NO +EXTRACT_STATIC = @STATIC_DOC@ # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation.