[Scons-users] Listing all dependent headers?

andreas.ames at de.transport.bombardier.com andreas.ames at de.transport.bombardier.com
Tue Oct 22 04:22:27 EDT 2013


Hi Andrew,

scons-users-bounces at scons.org schrieb am 22.10.2013 00:13:23:


> What is the right way to accomplish this?


I would probably create a C file with no other content than including
client.h.

/* test_client.c */

#include "client.h"

Then I would build a static and/or a shared object (depending on what your
users are allowed to do with it) from test_client.c.

If you define a builder that takes the resulting object file(s) as
input(s) you can walk the dependency tree of the object file(s) and select
your headers. This has the additional advantage of making sure that
client.h compiles standalone.

If you use conditional compilation in client.h or its dependencies (which
may be controlled by the users) you may have to build several flavours of
test_client.o (in the extreme: all permutations of supported compiler
conditions).


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/20131022/ab7482f8/attachment-0001.htm


More information about the Scons-users mailing list