|
Boost : |
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2005-07-26 20:03:12
Pavel Vozenilek wrote:
> Wave executable could have feature for use in makefiles or
> makefile generators.
>
>
> Often the header dependencies are generated by compiler
> running in special mode outputting only dependency information.
>
> For example:
> ---------------------------------
> cc -M -I... -D... foo.c
>
> generates output like:
>
> foo.o : foo.c foo.h stdlib.h
>
> This output is then fed into makefile
> to correctly deal with rebuilts.
> ---------------------------------
>
> Wave could get this functionality too:
> invoking wave.exe may be faster or more
> convenient than running full compiler
> or a makedepend utility.
>
>
> Most likely output consisting from only
> space separated dependent headers
> (no *.obj, no foo.c itself) is the best ouput as the text is
> futher manipulated.
>
>
> Other possible options could be:
>
> * ignore system headers
> (some compilers have -MM option for this)
> * ignore STL/Boost headers
> * ignore the <windows.h> and other MS specific headers
> * ignore specified directories or names fitting certain pattern
> * ignore read only headers
It should be fairly simple to write a tool based on the Wave library
implementing all or some of your suggestions. All of the required
information is available from the library by having appropriate callbacks.
Do think it's better to implement these in aseparate tool or is it beter to
add them as additional options to the wave driver executable?
Do you have a concrete use case for your suggestions?
Regards Hartmut
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk