Saturday 15 March 2014

How to implement dependency checking for C/C++ sources -


I started adding support for a Studio 2005 third-party toolchain (IAR compiler).

So far, I have been successful in implementing the required MSBLUDE functions (compilation, link and assembled) and Visual Studio add-in to support the * .proj file.

The next obstacle is managing the dependency for the header. I'm not sure what the best way is about this.

The IAR compiler provides a command line switch to get a list of header files, depending on the source, but how should I provide this information in Visual Studio / MSBild?

All sources have their source files 'use files in the header' pseudo-folder in a given project You see, when you expand the project node, it defines the source dependency on the header.


No comments:

Post a Comment