doxygen: Ensure output directory is created

Ensure the output directory is always created to avoid issues when
trying to install on a clean build.

Change-Id: I64be30348af7862971cbbc1f17bc53213b9998f3
Type: Bug Fix
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
This commit is contained in:
Josh Bartel 2014-06-04 08:51:18 -05:00 committed by Thomas Nagy
parent a7eb3d811b
commit 20112c4556
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 4 additions and 1 deletions

View File

@ -78,9 +78,12 @@ class doxygen(Task.Task):
self.pars = parse_doxy(txt)
if self.pars.get('OUTPUT_DIRECTORY'):
# Use the path parsed from the Doxyfile as an absolute path
self.pars['OUTPUT_DIRECTORY'] = self.inputs[0].parent.get_bld().make_node(self.pars['OUTPUT_DIRECTORY']).abspath()
output_node = self.inputs[0].parent.get_bld().make_node(self.pars['OUTPUT_DIRECTORY'])
output_node.mkdir()
self.pars['OUTPUT_DIRECTORY'] = output_node.abspath()
else:
# If no OUTPUT_PATH was specified in the Doxyfile build path from where the Doxyfile lives
self.inputs[0].parent.get_bld().mkdir()
self.pars['OUTPUT_DIRECTORY'] = self.inputs[0].parent.get_bld().abspath()
# Override with any parameters passed to the task generator