Re: Can't generate dependencies in VS 2005?
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Sat, 22 Jul 2006 14:57:11 -0700
jpetrang@xxxxxxxxxx wrote:
We use VS6.0 to support our automated build environment, and we'd like
to move to something that is currently supported. One aspect of VS6.0
is part of the "Generate Makefile" feature, which it seems was removed
in VS 2003. Specifically, that feature creates dependency (.dep) files
useful for the automated build environment.
I saw a post that suggested using cl.exe flags (/showincludes,
together with /E or /P) and then write a script to parse that info to
get what we want, but we would like to use the same compiler options
for all our compiles without having this dump happen all the time.
Is there another way to get the dependency information?
Nothing built into the product that I know of.
In the past when I needed this information, I wrote a Perl script that would
figure out all the dependencies and write it out as a makefile fragment.
That's a bit of work, but it may be an option.
You can also build the project by simply invoking devenv.exe from the
command line just as you would nmake. For a lighter weight solution,
there's vcbuild.exe (included in VC2005 - I'm not sure about 2003 or 2002).
vcbuild.exe builds a single .vcproj project and is strictly a command-line
tool.
-cd
.
- Follow-Ups:
- Re: Can't generate dependencies in VS 2005?
- From: jpetrang
- Re: Can't generate dependencies in VS 2005?
- From: Carl Daniel [VC++ MVP]
- Re: Can't generate dependencies in VS 2005?
- References:
- Can't generate dependencies in VS 2005?
- From: jpetrang
- Can't generate dependencies in VS 2005?
- Prev by Date: Re: Cyrcle reference problem...
- Next by Date: Re: Problem about the project sln
- Previous by thread: Can't generate dependencies in VS 2005?
- Next by thread: Re: Can't generate dependencies in VS 2005?
- Index(es):
Relevant Pages
|