Ticket #2025: doxygen.jam.patch
File doxygen.jam.patch, 2.7 KB (added by , 14 years ago) |
---|
-
doxygen.jam
37 37 import alias ; 38 38 import common ; 39 39 import modules ; 40 import quote ; 40 41 41 42 # Use to specify extra configuration paramters. These get translated 42 43 # into a doxyfile which configures the building of the docs. … … 199 200 for local param in [ feature.get-values <doxygen:param> : $(properties) ] 200 201 { 201 202 local namevalue = [ regex.match ([^=]*)=(.*) : $(param) ] ; 202 text += "$(namevalue[1]) = $(namevalue[2])" ; 203 local value = [ quote.double-quote $(namevalue[2]) ] ; 204 text += "$(namevalue[1]) = $(value)" ; 203 205 if $(namevalue[1]) = OUTPUT_DIRECTORY 204 206 { 205 output-dir = "$(namevalue[2])";207 output-dir = $(value) ; 206 208 } 207 209 } 208 210 209 211 if ! $(output-dir) 210 212 { 211 output-dir = [ on $(target) return $(LOCATE)] ;213 output-dir = [ quote.double-quote [ on $(target) return $(LOCATE) ] ] ; 212 214 text += "OUTPUT_DIRECTORY = $(output-dir)" ; 213 215 } 214 216 215 local headers = "" ; 217 # Doxygen generates LaTex by default. So disable it unconditionally, 218 # or at least until someone needs, and hence writes support for, LaTex 219 # output. 220 text += "GENERATE_LATEX = NO" ; 221 222 local first = true ; 223 224 local current = "" ; 225 216 226 for local source in $(sources:G=) 217 227 { 218 headers = "$(headers) $(source)" ; 228 if $(first) 229 { 230 first = ; 231 local quoted_source = [ quote.double-quote $(source) ] ; 232 current = "INPUT = $(quoted_source)" ; 233 } 234 else 235 { 236 text += "$(current) \\" ; 237 local quoted_source = [ quote.double-quote $(source) ] ; 238 current = " $(quoted_source)" ; 239 } 219 240 } 220 241 221 # Doxygen generates LaTex by default. So disable it unconditionally, 222 # or at least until someone needs, and hence writes support for, LaTex 223 # output. 224 text += "GENERATE_LATEX = NO" ; 225 text += "INPUT = $(headers) " ; 242 text += $(current) ; 243 226 244 print.output $(target) plain ; 227 245 print.text $(text) : true ; 228 246 } … … 278 296 = [ path.join [ path.pwd ] $(source-path) $(source:B) ] ; 279 297 local real-source 280 298 = [ path.native [ path.join [ path.native $(collect-path) ] index.xml ] ] ; 281 xsltproc.xslt $(target) : $(real-source) $(collect-xsl-dir:S=.xsl) 282 : <xsl:param>doxygen.xml.path=$(collect-path) 299 local real-collect-path 300 = [ regex.replace $(collect-path) " " "%%20" ] ; 301 xsltproc.xslt $(target) : "$(real-source)" "$(collect-xsl-dir:S=.xsl)" 302 : <xsl:param>doxygen.xml.path=$(real-collect-path) 283 303 ; 284 304 } 285 305