diff --git a/windows/msvc/genhdr.targets b/windows/msvc/genhdr.targets index afe5f5d765..5792d878ec 100644 --- a/windows/msvc/genhdr.targets +++ b/windows/msvc/genhdr.targets @@ -43,8 +43,13 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) { + + + + + - + @@ -56,15 +61,21 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) { $([System.IO.Path]::GetDirectoryName('%(OutFile)')) - $([System.DateTime]::Compare($([System.IO.File]::GetLastWriteTime('%(FullPath)')), $([System.IO.File]::GetLastWriteTime('%(OutFile)')))) + True + + True + + + @(QstrDependencies->AnyHaveMetadataValue('Changed', 'True')) + + Condition="'%(PyQstrSourceFiles.Changed)' == 'True' Or '$(ForceQstrRebuild)' == 'True'"/> + Condition="@(PyQstrSourceFiles->AnyHaveMetadataValue('Changed', 'True')) Or '$(ForceQstrRebuild)' == 'True'"/>