From 92cee51e2e5e0a22a6f1e754a5954a1c4362dd9f Mon Sep 17 00:00:00 2001 From: Russel Winder Date: Mon, 12 Aug 2013 17:35:23 +0100 Subject: [PATCH] Backout of pull request #2, 12:f443da08d6ef, as per Eric's comments on BitBucket. --- doxygen.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/doxygen.py b/doxygen.py index 6919c8224..02d055af3 100644 --- a/doxygen.py +++ b/doxygen.py @@ -8,7 +8,6 @@ # Copyright © 2007 Christoph Boehme # # Copyright © 2012 Dirk Baechle -# Copyright © 2012 Eric Anderson # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -296,30 +295,8 @@ def DoxyEmitter(target, source, env): tagfile = os.path.join(conf_dir, tagfile) targets.append(env.File(tagfile)) - # don't clobber targets - for node in targets: - env.Precious(node) - - # set up cleaning stuff - for node in targets: - env.Clean(node, node) - return (targets, source) -def generate_doxygen_commands(source, target, env, for_signature): - - """Generate the doxygen command line (easy) and the post-execution - timestamping (harder). The second part requires us to know which - directories are being built, which is why we do this as a Generator - (after the Emitter has run)""" - - dox_cmd = "cd ${SOURCE.dir} && ${DOXYGEN} ${SOURCE.file}" - timestamp_cmds = ["date > %s"%(str(t)) for t in target] - print dox_cmd - print timestamp_cmds - return [dox_cmd] + timestamp_cmds - - def generate(env): """ Add builders and construction variables for the @@ -333,7 +310,7 @@ def generate(env): import SCons.Builder doxyfile_builder = SCons.Builder.Builder( - generator = generate_doxygen_commands, + action = "cd ${SOURCE.dir} && ${DOXYGEN} ${SOURCE.file}", emitter = DoxyEmitter, target_factory = env.fs.Entry, single_source = True,