From time to time, we are making compilation time optimsations in our C++ project, one of the main issues is optimisation of the include depencencies. It would be nice to have some other measurement than the compile time. What I'm looking for is some easy way to calculate the size of sum of size all of the modules after the preprocessor was applied.
The method can be based on the visual studio solution file in windows or Makefile in linux/osx, but it probably needs to use some of these to resolve the include paths.
It would be also nice, if the calculation could take precompiled headers (list of includes used) into considaration. (Once the include file is in it, it would be counted only once).