Re: #include dependency tools?
Re: #include dependency tools?
- Subject: Re: #include dependency tools?
- From: Tommy Nordgren <email@hidden>
- Date: Wed, 5 Jan 2005 23:44:03 +0100
Jan 5, 2005 kl. 10:55 PM skrev Andy Wiese:
I would like to determine exactly what header files are included in my
c++ project. I know that header dependency tools exist, but I've never
used them, and don't know what might be available and usable with
Xcode/gcc/os-x without too much brain damage.
My immediate desire is simple--I just want to figure out exactly what
boost headers are used by my project so I can trim my source tree to
just what is needed. Can I use the gcc preprocessor for this somehow?
In CodeWarrior, I could preprocess the source and then extract the
header include comments with perl script. Primitive, but good enough
for this purpose.
Any suggestions how I could do this in Xcode?
In a broader sense, I would like to get familiar with more
sophisticated header dependency tools if there is something available
that works well with Xcode. Any suggestions?
It is possible to extract this info by opening each source file in the
project, and choosing the preprocess command and then saving the
preprocessor output document. It will be named the same as your source
file, but with another suffix (for dot.m files the suffix will be .i)
It might also be possible to do this via an applescript instead of
interactively.
Then you can use a PERL script on the generated files.
Hope this helps
Tommy Nordgren
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden