Skip to content

Instantly share code, notes, and snippets.

@simon-brooke
Created August 24, 2017 16:38
Show Gist options
  • Save simon-brooke/d50f42231a674da18bf93b905d992912 to your computer and use it in GitHub Desktop.
Save simon-brooke/d50f42231a674da18bf93b905d992912 to your computer and use it in GitHub Desktop.
How to build documentation with Doxygen from an msbuild script
<PropertyGroup>
<DocDirectory>..\Documentation\</DocDirectory>
<Doxyfile>..\Doxyfile</Doxyfile>
</PropertyGroup>
<Target Name="Doxygen">
<MakeDir Directories="$(DocDirectory)" />
<Exec Command="doxygen.exe $(Doxyfile)" />
</Target>
<Target Name="DoxyClean">
<RemoveDir Directories="$(DocDirectory)\html" />
<RemoveDir Directories="$(DocDirectory)\latex" />
<Delete Files="$(DocDirectory)\*.tmp" />
</Target>
<PropertyGroup>
<BuildDependsOn>
$(BuildDependsOn);
Doxygen
</BuildDependsOn>
</PropertyGroup>
<PropertyGroup>
<CleanDependsOn>
$(CleanDependsOn);
DoxyClean
</CleanDependsOn>
</PropertyGroup>
@simon-brooke
Copy link
Author

Yes, I loathe the Microsoft toolchain. But if one has to use it one might as well get good at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment