From cda57d4290dcccbbbb905994252ccd20088780e7 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 27 Jul 2009 07:24:41 +0000 Subject: [PATCH] Prevent doxygen's html (not docbook) generation from using './html'. Now, 'html' directory is created in the build dir of the Jamfile where 'doxygen' target appears. [SVN r55200] --- v2/tools/doxygen.jam | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/v2/tools/doxygen.jam b/v2/tools/doxygen.jam index e3398befe..a3e3a2561 100644 --- a/v2/tools/doxygen.jam +++ b/v2/tools/doxygen.jam @@ -354,9 +354,20 @@ rule doxygen ( target : sources * : requirements * : default-build * : usage-req { # Build an HTML directory from the sources. local html-location = [ feature.get-values : $(requirements) ] ; - local output-dir = [ path.root - [ path.join [ $(project).get build-dir ] $(html-location:E=html) ] - [ path.pwd ] ] ; + local output-dir ; + if [ $(project).get build-dir ] + { + # Explicitly specified build dir. Add html at the end. + output-dir = [ path.join [ $(project).build-dir ] $(html-location:E=html) ] ; + } + else + { + # Trim 'bin' from implicit build dir, for no other reason that backward + # compatibility. + output-dir = [ path.join [ path.parent [ $(project).build-dir ] ] + $(html-location:E=html) ] ; + } + output-dir = [ path.root $(output-dir) [ path.pwd ] ] ; local output-dir-native = [ path.native $(output-dir) ] ; requirements = [ property.change $(requirements) : ] ;