Hi,

Thank you for this, I thought I was using the last version on my Linux box, but it was the Windows box (without doxygen) that had it installed...
I will try tomorrow :)

Matthieu

2008/1/2, Robert Norton <rnorton@broadcom.com>:
Hi,

        From: Matthieu Brucher [mailto:matthieu.brucher@gmail.com]
        Sent: 28 December 2007 09:40
        To: users@scons.tigris.org
        Subject: Re: [scons-users] Problems with dependencies of
directory containing no files


        Hi,

        In the same kind of questions, I wondered why the Doxygen
scanner did not add a dependency
      over each file that would be used in the generation of the
documentation.

This is what the code posted on the wiki was intended to do, however it
appears to be broken in scons builds before 0.97.0d20070918. Try
downloading and using the most recent checkpoint release and report back
with your experiences.

Robert

        Each time I want to generate the docs, I have to remove the doc
folder and then call scons.
      Is there a way to add those dependencies easily ? (I'm only a
basic Scons user so there is a
      lot I don't know)

        Matthieu


        2007/12/20, Robert Norton < rnorton@broadcom.com>:

                Hi,

                I tried using the doxygen builder from the wiki and
found that scons
                didn't add the dependencies generated by the Doxygen
scanner to the
                dependency tree, even though I could see that the
scanner was finding
                them correctly. Another user has clearly had the same
problem:


http://scons.tigris.org/servlets/ReadMsg?listName=users&msgNo=10955
<http://scons.tigris.org/servlets/ReadMsg?listName=users&msgNo=10955 >

                After some digging I discovered that the problem is that
the doxygen
                emitter didn't output any File nodes in its targets,
only Dir nodes. By
                adding a fake File node to the list of targets (and
touching it in the
                action) everything worked as expected.

                Is this indented behaviour? I can't see a good reason
why scons should
                ignore the dependencies for the directories. I am using
scons 0.97 (and
                get the same behaviour with recent checkpoint).

                To make this a little more concrete I put together a
small example in
                the attached zip. The following is the output of scons
-n --debug=stree
                before adding the fake target file (see line 162 in
doxygen.py):

                scons: Reading SConscript files ...
                scons: done reading SConscript files.
                scons: Building targets ...
                scons: `.' is up to date.
                E         = exists
                  R        = exists in repository only
                   b       = implicit builder
                   B       = explicit builder
                    S      = side effect
                     P     = precious
                      A    = always build
                       C   = current
                        N  = no clean
                         H = no cache

                [E b   C  ]+-.
                [E        ]  +-SConstruct
                [E b   C  ]  +-docs
                [E B P C  ]  | +-docs/html
                [E        ]  | | +-doxy.cfg
                [E B P C  ]  | +-docs/latex
                [E        ]  |   +-doxy.cfg
                [         ]  +-doxy
                [E        ]  +-doxy.cfg
                scons: done building targets.

                and after:

                scons: Reading SConscript files ...
                scons: done reading SConscript files.
                scons: Building targets ...
                scons: `.' is up to date.
                E         = exists
                  R        = exists in repository only
                   b       = implicit builder
                   B       = explicit builder
                    S      = side effect
                     P     = precious
                      A    = always build
                       C   = current
                        N  = no clean
                         H = no cache

                [E b   C  ]+-.
                [E        ]  +-SConstruct
                [E b   C  ]  +-docs
                [E B P C  ]  | +-docs/foobar
                [E        ]  | | +-doxy.cfg
                [E        ]  | | +-test.h
                [E B P C  ]  | +-docs/html
                [E        ]  | | +-doxy.cfg
                [E        ]  | | +-test.h
                [E B P C  ]  | +-docs/latex
                [E        ]  |   +-doxy.cfg
                [E        ]  |   +-test.h
                [         ]  +-doxy
                [E        ]  +-doxy.cfg
                scons: done building targets.

                Two things to note:

                1) the dependencies for all the directories are now
correct (not just
                the fake file)
                2) there is a spurious file 'doxy' in the tree.

                Is there a way to get rid of the spurious file?

                Thanks,

                Robert


---------------------------------------------------------------------
                To unsubscribe, e-mail:
users-unsubscribe@scons.tigris.org
                For additional commands, e-mail:
users-help@scons.tigris.org






        --
        French PhD student
        Website : http://matthieu-brucher.developpez.com/
< http://matthieu-brucher.developpez.com/>
        Blogs : http://matt.eifelle.com and
http://blog.developpez.com/?blog=92
        LinkedIn : http://www.linkedin.com/in/matthieubrucher


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@scons.tigris.org
For additional commands, e-mail: users-help@scons.tigris.org




--
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher