[Scons-users] Listing all dependent headers?
andreas.ames at de.transport.bombardier.com
andreas.ames at de.transport.bombardier.com
Mon Oct 21 06:55:31 EDT 2013
Hi Andrew,
scons-users-bounces at scons.org schrieb am 20.10.2013 19:34:52:
> Is there a better way to approach this problem? It seems pretty clear
> to me that SCons can/does know what headers thing.h depends on, but
> I'm just not sure how to get that information.
I don't know, if this really qualifies as 'better' but it works for me.
I walk the dependency tree 'manually' with a small generator like follows:
def preorder_deptree(node):
yield node
for c in node.all_children():
for n in preorder_deptree(c):
yield n
Calling something like
for node in preorder_deptree(File('your_header')):
pass
would get you all dependencies of 'your_header'.
HTH,
aa
Please consider the environment before you print / Merci de penser à
l'environnement avant d'imprimer / Bitte denken Sie an die Umwelt bevor
Sie drucken
Bombardier Transportation GmbH
Vorsitzender des Aufsichtsrats / Chairman of Supervisory Board: Prof. Dr.
Wilhelm Bender
Geschäftsführung / Executive Board: Michael Clausecker
(Vorsitzender/Chairman), Dr. Susanne Kortendick, David Barry, Matthias
Keller
Sitz der Gesellschaft / Principal Office: Berlin
Registergericht / Registration Court: Amtsgericht Charlottenburg, HRB
64838
_______________________________________________________________________________________________________________
This e-mail communication (and any attachment/s) may contain confidential
or privileged information and is intended only for the individual(s) or
entity named above and to others who have been specifically authorized to
receive it. If you are not the intended recipient, please do not read,
copy, use or disclose the contents of this communication to others. Please
notify the sender that you have received this e-mail in error by reply
e-mail, and delete the e-mail subsequently. Please note that in order to
protect the security of our information systems an AntiSPAM solution is in
use and will browse through incoming emails.
Thank you.
_________________________________________________________________________________________________________________
Ce message (ainsi que le(s) fichier(s)), transmis par courriel, peut
contenir des renseignements confidentiels ou protégés et est destiné à
l?usage exclusif du destinataire ci-dessus. Toute autre personne est, par
les présentes, avisée qu?il est strictement interdit de le diffuser, le
distribuer ou le reproduire. Si vous l?avez reçu par inadvertance,
veuillez nous en aviser et détruire ce message. Veuillez prendre note
qu'une solution antipollupostage (AntiSPAM) est utilisée afin d'assurer la
sécurité de nos systèmes d'information et qu'elle furètera les courriels
entrants.
Merci.
_________________________________________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131021/3a4e0777/attachment.htm
More information about the Scons-users
mailing list