[Scons-users] Why is clean now building doxygen?

Viktor Dick viktordick86 at gmail.com
Wed Jul 8 07:19:07 EDT 2015


On 2015-07-08 12:52, Ridout, Aaron wrote:
> ... interestingly removing the function and calling doxygen twice with different doxyfiles solves the problem, as in:
> 
> doxygen = Command('Output/doxywarnings.txt', Glob('*.h') + Glob('*.cpp'), ['doxygen Build/doxyfile.html', doxygen Build/doxyfile.warnings])
> 
> So why does the python function get executed before scons outputs:
> 
> scons: done reading SConscript files.
> scons: Cleaning targets ...

I guess you have to remember that a SCons file is a python script that
gets executed while reading the file and building the dependency tree,
and only then Nodes are built as necessary. In your case, when the
function Command() is executed, first each of the arguments is evaluated
before they are passed to the function. One of the arguments is
[doxy('YES'), doxy('NO')], so it calls these functions in order to
create the list that is then passed to the call to Command().



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150708/404f7566/attachment.pgp>


More information about the Scons-users mailing list