msvc: Remove directory with generated files when cleaning.

This assures after cleaning all build artefacts (qstr related files,
generated version header) have been removed.
This commit is contained in:
stijn 2017-03-22 10:54:40 +01:00 committed by Damien George
parent c61131380d
commit 3f3df43501
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) {
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
</Target>
<Target Name="RemoveGeneratedFiles" AfterTargets="Clean">
<RemoveDir Directories="$(DestDir)"/>
</Target>
<!--Copies SourceFile to DestFile only if SourceFile's content differs from DestFile's.
We use this to 'touch' the generated files only when they are really newer
so a build is only triggered if the generated content actually changed,