Running doxygen as a custom build step in VS2008

I am creating doxygen documentation for my (rather small) project for each build. To do this, I did the following:

  • Added index.html , which creates doxygen, to the project
  • Defined custom build step for this file (not the whole project)
    • Command line: doxygen ../doc/Doxyfile
    • Outputs: ..doc/html/index.html
    • Additional dependencies: '../bin/foo.exe'

The problem is that I need to build twice until VS stops telling me that my project is out of date.
How can i fix this?

+4
source share
1 answer

When developing something, Visual Studio looks to see if the output file is older than the input file.

You added index.html as the input file when it is actually the output file. Adding Doxyfile will not work either, because it will not change often. That's why project recovery works (because it ignores the age of the files and builds anyway).

It modifies the C ++ files you want to catch. If (as I suspect) doxygen does incremental builds anyway, you'd better just add the doxygen step as a Post-build event.

+3
source

All Articles