From f65fbb06aabd140ae79f325e79aa98360934b4a0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 27 Mar 2003 18:43:18 +0000 Subject: [PATCH] Now able to set the FILE_PATTERNS and RECURSIVE Doxygen parameters via features [SVN r18109] --- new/doxygen.jam | 18 +++++++++++++++++- v2/doxygen.jam | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/new/doxygen.jam b/new/doxygen.jam index fc6998261..e18c0fa04 100644 --- a/new/doxygen.jam +++ b/new/doxygen.jam @@ -16,6 +16,8 @@ import property ; import generators ; import boostbook ; +feature.feature recursive : off on ; +feature.feature pattern : : free ; type.register DOXYGEN_XML : doxygen ; # Doxygen XML output generators.register-standard doxygen.xml-to-boostbook : DOXYGEN_XML : XML ; @@ -43,6 +45,18 @@ rule name ( ) rule extract-xml ( target : sources * : properties * ) { + local recursive = [ feature.get-values : $(properties) ] ; + + if $(recursive) = "on" + { + RECURSIVE on $(target) = YES ; + } + else + { + RECURSIVE on $(target) = NO ; + } + + PATTERNS on $(target) = [ feature.get-values : $(properties) ] ; NAME on $(target) = [ name ] ; doxygen-action $(<) : $(>) ; } @@ -54,7 +68,9 @@ actions doxygen-action echo "GENERATE_LATEX = NO" >> $(<:S=.doxyfile) echo "GENERATE_XML = YES" >> $(<:S=.doxyfile) echo "INPUT = $(>) " >> $(<:S=.doxyfile) - echo "MONOLITHIC_XML_FILE = $(<)" >> $(<:S=.doxyfile) + echo "MONOLITHIC_XML_FILE = $(<)" >> $(<:S=.doxyfile) + echo "RECURSIVE = $(RECURSIVE) " >> $(<:S=.doxyfile) + echo "FILE_PATTERNS = $(PATTERNS) " >> $(<:S=.doxyfile) $(NAME:E=doxygen) $(<:S=.doxyfile) ; } diff --git a/v2/doxygen.jam b/v2/doxygen.jam index fc6998261..e18c0fa04 100644 --- a/v2/doxygen.jam +++ b/v2/doxygen.jam @@ -16,6 +16,8 @@ import property ; import generators ; import boostbook ; +feature.feature recursive : off on ; +feature.feature pattern : : free ; type.register DOXYGEN_XML : doxygen ; # Doxygen XML output generators.register-standard doxygen.xml-to-boostbook : DOXYGEN_XML : XML ; @@ -43,6 +45,18 @@ rule name ( ) rule extract-xml ( target : sources * : properties * ) { + local recursive = [ feature.get-values : $(properties) ] ; + + if $(recursive) = "on" + { + RECURSIVE on $(target) = YES ; + } + else + { + RECURSIVE on $(target) = NO ; + } + + PATTERNS on $(target) = [ feature.get-values : $(properties) ] ; NAME on $(target) = [ name ] ; doxygen-action $(<) : $(>) ; } @@ -54,7 +68,9 @@ actions doxygen-action echo "GENERATE_LATEX = NO" >> $(<:S=.doxyfile) echo "GENERATE_XML = YES" >> $(<:S=.doxyfile) echo "INPUT = $(>) " >> $(<:S=.doxyfile) - echo "MONOLITHIC_XML_FILE = $(<)" >> $(<:S=.doxyfile) + echo "MONOLITHIC_XML_FILE = $(<)" >> $(<:S=.doxyfile) + echo "RECURSIVE = $(RECURSIVE) " >> $(<:S=.doxyfile) + echo "FILE_PATTERNS = $(PATTERNS) " >> $(<:S=.doxyfile) $(NAME:E=doxygen) $(<:S=.doxyfile) ; }